[2025-01-11 00:00:05] Production.INFO: next invoice date [2025-01-11 00:00:05] Production.INFO: 2025-02-11 [2025-01-11 00:00:05] Production.INFO: getdaysdiff [2025-01-11 00:00:05] Production.INFO: +31 [2025-01-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,31,31,'RMScheduler',2025-01-11 00:00:05,1,0,,,0) [2025-01-11 00:00:05] Production.INFO: next invoice date [2025-01-11 00:00:05] Production.INFO: 2025-02-11 [2025-01-11 00:00:05] Production.INFO: getdaysdiff [2025-01-11 00:00:05] Production.INFO: +31 [2025-01-11 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,31,31,'RMScheduler',2025-01-11 00:00:05,1,0,,,0) [2025-01-11 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:00:06 [end_date_ymd] => 2025-01-11 00:00:06 [RateCDR] => 1 ) [2025-01-11 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-10 21:00:06' and `end` < '2025-01-11 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-11 00:00:19] Production.INFO: count ==1052 [2025-01-11 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-10 21:00:06 - End Time 2025-01-11 00:00:06 [2025-01-11 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220443', 'tblTempUsageDetail_20' ) start [2025-01-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220443', 'tblTempUsageDetail_20' ) end [2025-01-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220443', 'tblTempVendorCDR_20' ) start [2025-01-11 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220443', 'tblTempVendorCDR_20' ) end [2025-01-11 00:00:20] Production.INFO: ProcessCDR(1,14220443,1,1,2) [2025-01-11 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220443', 'tblTempUsageDetail_20' ) start [2025-01-11 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220443', 'tblTempUsageDetail_20' ) end [2025-01-11 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:00:25] Production.INFO: ==11472== Releasing lock... [2025-01-11 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:00:25] Production.INFO: 37.25 MB #Memory Used# [2025-01-11 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:01:04 [end_date_ymd] => 2025-01-11 00:01:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:01:04' and `end` < '2025-01-11 00: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-11 00:01:18] Production.INFO: count ==1032 [2025-01-11 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:01:04 - End Time 2025-01-11 00:01:04 [2025-01-11 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220448', 'tblTempUsageDetail_20' ) start [2025-01-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220448', 'tblTempUsageDetail_20' ) end [2025-01-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220448', 'tblTempVendorCDR_20' ) start [2025-01-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220448', 'tblTempVendorCDR_20' ) end [2025-01-11 00:01:18] Production.INFO: ProcessCDR(1,14220448,1,1,2) [2025-01-11 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220448', 'tblTempUsageDetail_20' ) start [2025-01-11 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220448', 'tblTempUsageDetail_20' ) end [2025-01-11 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:01:21] Production.INFO: ==11586== Releasing lock... [2025-01-11 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:01:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:02:05 [end_date_ymd] => 2025-01-11 00:02:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:02:05' and `end` < '2025-01-11 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-11 00:02:36] Production.INFO: count ==280 [2025-01-11 00:02:36] Production.ERROR: pbx CDR StartTime 2025-01-10 21:02:05 - End Time 2025-01-11 00:02:05 [2025-01-11 00:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220453', 'tblTempUsageDetail_20' ) start [2025-01-11 00:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220453', 'tblTempUsageDetail_20' ) end [2025-01-11 00:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220453', 'tblTempVendorCDR_20' ) start [2025-01-11 00:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220453', 'tblTempVendorCDR_20' ) end [2025-01-11 00:02:36] Production.INFO: ProcessCDR(1,14220453,1,1,2) [2025-01-11 00:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220453', 'tblTempUsageDetail_20' ) start [2025-01-11 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220453', 'tblTempUsageDetail_20' ) end [2025-01-11 00:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:02:39] Production.INFO: ==11684== Releasing lock... [2025-01-11 00:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:02:39] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:03:05 [end_date_ymd] => 2025-01-11 00:03:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:03:05' and `end` < '2025-01-11 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-11 00:03:24] Production.INFO: count ==280 [2025-01-11 00:03:25] Production.ERROR: pbx CDR StartTime 2025-01-10 21:03:05 - End Time 2025-01-11 00:03:05 [2025-01-11 00:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220458', 'tblTempUsageDetail_20' ) start [2025-01-11 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220458', 'tblTempUsageDetail_20' ) end [2025-01-11 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220458', 'tblTempVendorCDR_20' ) start [2025-01-11 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220458', 'tblTempVendorCDR_20' ) end [2025-01-11 00:03:25] Production.INFO: ProcessCDR(1,14220458,1,1,2) [2025-01-11 00:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220458', 'tblTempUsageDetail_20' ) start [2025-01-11 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220458', 'tblTempUsageDetail_20' ) end [2025-01-11 00:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:03:28] Production.INFO: ==11777== Releasing lock... [2025-01-11 00:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:03:28] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:04:05 [end_date_ymd] => 2025-01-11 00:04:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:04:05' and `end` < '2025-01-11 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-11 00:04:29] Production.INFO: count ==280 [2025-01-11 00:04:29] Production.ERROR: pbx CDR StartTime 2025-01-10 21:04:05 - End Time 2025-01-11 00:04:05 [2025-01-11 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220463', 'tblTempUsageDetail_20' ) start [2025-01-11 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220463', 'tblTempUsageDetail_20' ) end [2025-01-11 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220463', 'tblTempVendorCDR_20' ) start [2025-01-11 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220463', 'tblTempVendorCDR_20' ) end [2025-01-11 00:04:29] Production.INFO: ProcessCDR(1,14220463,1,1,2) [2025-01-11 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220463', 'tblTempUsageDetail_20' ) start [2025-01-11 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220463', 'tblTempUsageDetail_20' ) end [2025-01-11 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:04:32] Production.INFO: ==11871== Releasing lock... [2025-01-11 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:04:32] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:05:05 [end_date_ymd] => 2025-01-11 00:05:05 [RateCDR] => 1 ) [2025-01-11 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:05:05' and `end` < '2025-01-11 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:05:25] Production.INFO: count ==281 [2025-01-11 00:05:25] Production.ERROR: pbx CDR StartTime 2025-01-10 21:05:05 - End Time 2025-01-11 00:05:05 [2025-01-11 00:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220468', 'tblTempUsageDetail_20' ) start [2025-01-11 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220468', 'tblTempUsageDetail_20' ) end [2025-01-11 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220468', 'tblTempVendorCDR_20' ) start [2025-01-11 00:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220468', 'tblTempVendorCDR_20' ) end [2025-01-11 00:05:25] Production.INFO: ProcessCDR(1,14220468,1,1,2) [2025-01-11 00:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220468', 'tblTempUsageDetail_20' ) start [2025-01-11 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220468', 'tblTempUsageDetail_20' ) end [2025-01-11 00:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:05:30] Production.INFO: ==11969== Releasing lock... [2025-01-11 00:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:05:30] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:06:05 [end_date_ymd] => 2025-01-11 00:06:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:06:05' and `end` < '2025-01-11 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-11 00:06:21] Production.INFO: count ==281 [2025-01-11 00:06:21] Production.ERROR: pbx CDR StartTime 2025-01-10 21:06:05 - End Time 2025-01-11 00:06:05 [2025-01-11 00:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220473', 'tblTempUsageDetail_20' ) start [2025-01-11 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220473', 'tblTempUsageDetail_20' ) end [2025-01-11 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220473', 'tblTempVendorCDR_20' ) start [2025-01-11 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220473', 'tblTempVendorCDR_20' ) end [2025-01-11 00:06:21] Production.INFO: ProcessCDR(1,14220473,1,1,2) [2025-01-11 00:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220473', 'tblTempUsageDetail_20' ) start [2025-01-11 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220473', 'tblTempUsageDetail_20' ) end [2025-01-11 00:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:06:24] Production.INFO: ==12068== Releasing lock... [2025-01-11 00:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:06:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:07:05 [end_date_ymd] => 2025-01-11 00:07:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:07:05' and `end` < '2025-01-11 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-11 00:07:18] Production.INFO: count ==280 [2025-01-11 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:07:05 - End Time 2025-01-11 00:07:05 [2025-01-11 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220478', 'tblTempUsageDetail_20' ) start [2025-01-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220478', 'tblTempUsageDetail_20' ) end [2025-01-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220478', 'tblTempVendorCDR_20' ) start [2025-01-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220478', 'tblTempVendorCDR_20' ) end [2025-01-11 00:07:18] Production.INFO: ProcessCDR(1,14220478,1,1,2) [2025-01-11 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220478', 'tblTempUsageDetail_20' ) start [2025-01-11 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220478', 'tblTempUsageDetail_20' ) end [2025-01-11 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:07:21] Production.INFO: ==12169== Releasing lock... [2025-01-11 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:08:04 [end_date_ymd] => 2025-01-11 00:08:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:08:04' and `end` < '2025-01-11 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-11 00:08:18] Production.INFO: count ==279 [2025-01-11 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:08:04 - End Time 2025-01-11 00:08:04 [2025-01-11 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220483', 'tblTempUsageDetail_20' ) start [2025-01-11 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220483', 'tblTempUsageDetail_20' ) end [2025-01-11 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220483', 'tblTempVendorCDR_20' ) start [2025-01-11 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220483', 'tblTempVendorCDR_20' ) end [2025-01-11 00:08:18] Production.INFO: ProcessCDR(1,14220483,1,1,2) [2025-01-11 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220483', 'tblTempUsageDetail_20' ) start [2025-01-11 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220483', 'tblTempUsageDetail_20' ) end [2025-01-11 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:08:22] Production.INFO: ==12268== Releasing lock... [2025-01-11 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:09:05 [end_date_ymd] => 2025-01-11 00:09:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:09:05' and `end` < '2025-01-11 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-11 00:09:18] Production.INFO: count ==279 [2025-01-11 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:09:05 - End Time 2025-01-11 00:09:05 [2025-01-11 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220488', 'tblTempUsageDetail_20' ) start [2025-01-11 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220488', 'tblTempUsageDetail_20' ) end [2025-01-11 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220488', 'tblTempVendorCDR_20' ) start [2025-01-11 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220488', 'tblTempVendorCDR_20' ) end [2025-01-11 00:09:18] Production.INFO: ProcessCDR(1,14220488,1,1,2) [2025-01-11 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220488', 'tblTempUsageDetail_20' ) start [2025-01-11 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220488', 'tblTempUsageDetail_20' ) end [2025-01-11 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:09:21] Production.INFO: ==12361== Releasing lock... [2025-01-11 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 00:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:10:04 [end_date_ymd] => 2025-01-11 00:10:04 [RateCDR] => 1 ) [2025-01-11 00:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:10:04' and `end` < '2025-01-11 00:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:10:17] Production.INFO: count ==284 [2025-01-11 00:10:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:10:04 - End Time 2025-01-11 00:10:04 [2025-01-11 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220493', 'tblTempUsageDetail_20' ) start [2025-01-11 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220493', 'tblTempUsageDetail_20' ) end [2025-01-11 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220493', 'tblTempVendorCDR_20' ) start [2025-01-11 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220493', 'tblTempVendorCDR_20' ) end [2025-01-11 00:10:17] Production.INFO: ProcessCDR(1,14220493,1,1,2) [2025-01-11 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220493', 'tblTempUsageDetail_20' ) start [2025-01-11 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220493', 'tblTempUsageDetail_20' ) end [2025-01-11 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:10:22] Production.INFO: ==12433== Releasing lock... [2025-01-11 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:11:05 [end_date_ymd] => 2025-01-11 00:11:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:11:05' and `end` < '2025-01-11 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-11 00:11:18] Production.INFO: count ==300 [2025-01-11 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:11:05 - End Time 2025-01-11 00:11:05 [2025-01-11 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220499', 'tblTempUsageDetail_20' ) start [2025-01-11 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220499', 'tblTempUsageDetail_20' ) end [2025-01-11 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220499', 'tblTempVendorCDR_20' ) start [2025-01-11 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220499', 'tblTempVendorCDR_20' ) end [2025-01-11 00:11:18] Production.INFO: ProcessCDR(1,14220499,1,1,2) [2025-01-11 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220499', 'tblTempUsageDetail_20' ) start [2025-01-11 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220499', 'tblTempUsageDetail_20' ) end [2025-01-11 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:11:21] Production.INFO: ==12506== Releasing lock... [2025-01-11 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:11:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:12:05 [end_date_ymd] => 2025-01-11 00:12:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:12:05' and `end` < '2025-01-11 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-11 00:12:18] Production.INFO: count ==299 [2025-01-11 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:12:05 - End Time 2025-01-11 00:12:05 [2025-01-11 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220504', 'tblTempUsageDetail_20' ) start [2025-01-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220504', 'tblTempUsageDetail_20' ) end [2025-01-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220504', 'tblTempVendorCDR_20' ) start [2025-01-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220504', 'tblTempVendorCDR_20' ) end [2025-01-11 00:12:18] Production.INFO: ProcessCDR(1,14220504,1,1,2) [2025-01-11 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220504', 'tblTempUsageDetail_20' ) start [2025-01-11 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220504', 'tblTempUsageDetail_20' ) end [2025-01-11 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:12:21] Production.INFO: ==12580== Releasing lock... [2025-01-11 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:13:05 [end_date_ymd] => 2025-01-11 00:13:05 [RateCDR] => 1 ) [2025-01-11 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:13:05' and `end` < '2025-01-11 00: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-11 00:13:18] Production.INFO: count ==299 [2025-01-11 00:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:13:05 - End Time 2025-01-11 00:13:05 [2025-01-11 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220509', 'tblTempUsageDetail_20' ) start [2025-01-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220509', 'tblTempUsageDetail_20' ) end [2025-01-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220509', 'tblTempVendorCDR_20' ) start [2025-01-11 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220509', 'tblTempVendorCDR_20' ) end [2025-01-11 00:13:19] Production.INFO: ProcessCDR(1,14220509,1,1,2) [2025-01-11 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220509', 'tblTempUsageDetail_20' ) start [2025-01-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220509', 'tblTempUsageDetail_20' ) end [2025-01-11 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:13:22] Production.INFO: ==12692== Releasing lock... [2025-01-11 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:14:05 [end_date_ymd] => 2025-01-11 00:14:05 [RateCDR] => 1 ) [2025-01-11 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:14:05' and `end` < '2025-01-11 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:14:18] Production.INFO: count ==299 [2025-01-11 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:14:05 - End Time 2025-01-11 00:14:05 [2025-01-11 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220514', 'tblTempUsageDetail_20' ) start [2025-01-11 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220514', 'tblTempUsageDetail_20' ) end [2025-01-11 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220514', 'tblTempVendorCDR_20' ) start [2025-01-11 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220514', 'tblTempVendorCDR_20' ) end [2025-01-11 00:14:18] Production.INFO: ProcessCDR(1,14220514,1,1,2) [2025-01-11 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220514', 'tblTempUsageDetail_20' ) start [2025-01-11 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220514', 'tblTempUsageDetail_20' ) end [2025-01-11 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:14:21] Production.INFO: ==12764== Releasing lock... [2025-01-11 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:15:05 [end_date_ymd] => 2025-01-11 00:15:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:15:05' and `end` < '2025-01-11 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-11 00:15:18] Production.INFO: count ==298 [2025-01-11 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:15:05 - End Time 2025-01-11 00:15:05 [2025-01-11 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220519', 'tblTempUsageDetail_20' ) start [2025-01-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220519', 'tblTempUsageDetail_20' ) end [2025-01-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220519', 'tblTempVendorCDR_20' ) start [2025-01-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220519', 'tblTempVendorCDR_20' ) end [2025-01-11 00:15:18] Production.INFO: ProcessCDR(1,14220519,1,1,2) [2025-01-11 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220519', 'tblTempUsageDetail_20' ) start [2025-01-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220519', 'tblTempUsageDetail_20' ) end [2025-01-11 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:15:21] Production.INFO: ==12840== Releasing lock... [2025-01-11 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:15:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:16:05 [end_date_ymd] => 2025-01-11 00:16:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:16:05' and `end` < '2025-01-11 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-11 00:16:18] Production.INFO: count ==298 [2025-01-11 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:16:05 - End Time 2025-01-11 00:16:05 [2025-01-11 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220524', 'tblTempUsageDetail_20' ) start [2025-01-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220524', 'tblTempUsageDetail_20' ) end [2025-01-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220524', 'tblTempVendorCDR_20' ) start [2025-01-11 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220524', 'tblTempVendorCDR_20' ) end [2025-01-11 00:16:18] Production.INFO: ProcessCDR(1,14220524,1,1,2) [2025-01-11 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220524', 'tblTempUsageDetail_20' ) start [2025-01-11 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220524', 'tblTempUsageDetail_20' ) end [2025-01-11 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:16:23] Production.INFO: ==12912== Releasing lock... [2025-01-11 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:17:05 [end_date_ymd] => 2025-01-11 00:17:05 [RateCDR] => 1 ) [2025-01-11 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:17:05' and `end` < '2025-01-11 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:17:18] Production.INFO: count ==293 [2025-01-11 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:17:05 - End Time 2025-01-11 00:17:05 [2025-01-11 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220529', 'tblTempUsageDetail_20' ) start [2025-01-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220529', 'tblTempUsageDetail_20' ) end [2025-01-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220529', 'tblTempVendorCDR_20' ) start [2025-01-11 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220529', 'tblTempVendorCDR_20' ) end [2025-01-11 00:17:18] Production.INFO: ProcessCDR(1,14220529,1,1,2) [2025-01-11 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220529', 'tblTempUsageDetail_20' ) start [2025-01-11 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220529', 'tblTempUsageDetail_20' ) end [2025-01-11 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:17:21] Production.INFO: ==12985== Releasing lock... [2025-01-11 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:18:04 [end_date_ymd] => 2025-01-11 00:18:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:18:04' and `end` < '2025-01-11 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-11 00:18:17] Production.INFO: count ==293 [2025-01-11 00:18:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:18:04 - End Time 2025-01-11 00:18:04 [2025-01-11 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220534', 'tblTempUsageDetail_20' ) start [2025-01-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220534', 'tblTempUsageDetail_20' ) end [2025-01-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220534', 'tblTempVendorCDR_20' ) start [2025-01-11 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220534', 'tblTempVendorCDR_20' ) end [2025-01-11 00:18:17] Production.INFO: ProcessCDR(1,14220534,1,1,2) [2025-01-11 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220534', 'tblTempUsageDetail_20' ) start [2025-01-11 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220534', 'tblTempUsageDetail_20' ) end [2025-01-11 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:18:21] Production.INFO: ==13067== Releasing lock... [2025-01-11 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:19:05 [end_date_ymd] => 2025-01-11 00:19:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:19:05' and `end` < '2025-01-11 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-11 00:19:18] Production.INFO: count ==295 [2025-01-11 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:19:05 - End Time 2025-01-11 00:19:05 [2025-01-11 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220539', 'tblTempUsageDetail_20' ) start [2025-01-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220539', 'tblTempUsageDetail_20' ) end [2025-01-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220539', 'tblTempVendorCDR_20' ) start [2025-01-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220539', 'tblTempVendorCDR_20' ) end [2025-01-11 00:19:18] Production.INFO: ProcessCDR(1,14220539,1,1,2) [2025-01-11 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220539', 'tblTempUsageDetail_20' ) start [2025-01-11 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220539', 'tblTempUsageDetail_20' ) end [2025-01-11 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:19:23] Production.INFO: ==13155== Releasing lock... [2025-01-11 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:19:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:20:05 [end_date_ymd] => 2025-01-11 00:20:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:20:05' and `end` < '2025-01-11 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-11 00:20:19] Production.INFO: count ==299 [2025-01-11 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:20:05 - End Time 2025-01-11 00:20:05 [2025-01-11 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220545', 'tblTempUsageDetail_20' ) start [2025-01-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220545', 'tblTempUsageDetail_20' ) end [2025-01-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220545', 'tblTempVendorCDR_20' ) start [2025-01-11 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220545', 'tblTempVendorCDR_20' ) end [2025-01-11 00:20:19] Production.INFO: ProcessCDR(1,14220545,1,1,2) [2025-01-11 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220545', 'tblTempUsageDetail_20' ) start [2025-01-11 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220545', 'tblTempUsageDetail_20' ) end [2025-01-11 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:20:23] Production.INFO: ==13269== Releasing lock... [2025-01-11 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:21:04 [end_date_ymd] => 2025-01-11 00:21:04 [RateCDR] => 1 ) [2025-01-11 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:21:04' and `end` < '2025-01-11 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:21:17] Production.INFO: count ==331 [2025-01-11 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:21:04 - End Time 2025-01-11 00:21:04 [2025-01-11 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220550', 'tblTempUsageDetail_20' ) start [2025-01-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220550', 'tblTempUsageDetail_20' ) end [2025-01-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220550', 'tblTempVendorCDR_20' ) start [2025-01-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220550', 'tblTempVendorCDR_20' ) end [2025-01-11 00:21:18] Production.INFO: ProcessCDR(1,14220550,1,1,2) [2025-01-11 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220550', 'tblTempUsageDetail_20' ) start [2025-01-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220550', 'tblTempUsageDetail_20' ) end [2025-01-11 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:21:21] Production.INFO: ==13369== Releasing lock... [2025-01-11 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:22:05 [end_date_ymd] => 2025-01-11 00:22:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:22:05' and `end` < '2025-01-11 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-11 00:22:18] Production.INFO: count ==330 [2025-01-11 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:22:05 - End Time 2025-01-11 00:22:05 [2025-01-11 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220555', 'tblTempUsageDetail_20' ) start [2025-01-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220555', 'tblTempUsageDetail_20' ) end [2025-01-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220555', 'tblTempVendorCDR_20' ) start [2025-01-11 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220555', 'tblTempVendorCDR_20' ) end [2025-01-11 00:22:18] Production.INFO: ProcessCDR(1,14220555,1,1,2) [2025-01-11 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220555', 'tblTempUsageDetail_20' ) start [2025-01-11 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220555', 'tblTempUsageDetail_20' ) end [2025-01-11 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:22:21] Production.INFO: ==13439== Releasing lock... [2025-01-11 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:23:04 [end_date_ymd] => 2025-01-11 00:23:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:23:04' and `end` < '2025-01-11 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-11 00:23:18] Production.INFO: count ==330 [2025-01-11 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:23:04 - End Time 2025-01-11 00:23:04 [2025-01-11 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220560', 'tblTempUsageDetail_20' ) start [2025-01-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220560', 'tblTempUsageDetail_20' ) end [2025-01-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220560', 'tblTempVendorCDR_20' ) start [2025-01-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220560', 'tblTempVendorCDR_20' ) end [2025-01-11 00:23:18] Production.INFO: ProcessCDR(1,14220560,1,1,2) [2025-01-11 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220560', 'tblTempUsageDetail_20' ) start [2025-01-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220560', 'tblTempUsageDetail_20' ) end [2025-01-11 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:23:21] Production.INFO: ==13510== Releasing lock... [2025-01-11 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:24:04 [end_date_ymd] => 2025-01-11 00:24:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:24:04' and `end` < '2025-01-11 00: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-11 00:24:18] Production.INFO: count ==332 [2025-01-11 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:24:04 - End Time 2025-01-11 00:24:04 [2025-01-11 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220565', 'tblTempUsageDetail_20' ) start [2025-01-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220565', 'tblTempUsageDetail_20' ) end [2025-01-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220565', 'tblTempVendorCDR_20' ) start [2025-01-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220565', 'tblTempVendorCDR_20' ) end [2025-01-11 00:24:18] Production.INFO: ProcessCDR(1,14220565,1,1,2) [2025-01-11 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220565', 'tblTempUsageDetail_20' ) start [2025-01-11 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220565', 'tblTempUsageDetail_20' ) end [2025-01-11 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:24:21] Production.INFO: ==13585== Releasing lock... [2025-01-11 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:25:04 [end_date_ymd] => 2025-01-11 00:25:04 [RateCDR] => 1 ) [2025-01-11 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:25:04' and `end` < '2025-01-11 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:25:18] Production.INFO: count ==335 [2025-01-11 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:25:04 - End Time 2025-01-11 00:25:04 [2025-01-11 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220570', 'tblTempUsageDetail_20' ) start [2025-01-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220570', 'tblTempUsageDetail_20' ) end [2025-01-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220570', 'tblTempVendorCDR_20' ) start [2025-01-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220570', 'tblTempVendorCDR_20' ) end [2025-01-11 00:25:18] Production.INFO: ProcessCDR(1,14220570,1,1,2) [2025-01-11 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220570', 'tblTempUsageDetail_20' ) start [2025-01-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220570', 'tblTempUsageDetail_20' ) end [2025-01-11 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:25:21] Production.INFO: ==13658== Releasing lock... [2025-01-11 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:26:05 [end_date_ymd] => 2025-01-11 00:26:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:26:05' and `end` < '2025-01-11 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-11 00:26:18] Production.INFO: count ==336 [2025-01-11 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:26:05 - End Time 2025-01-11 00:26:05 [2025-01-11 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220575', 'tblTempUsageDetail_20' ) start [2025-01-11 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220575', 'tblTempUsageDetail_20' ) end [2025-01-11 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220575', 'tblTempVendorCDR_20' ) start [2025-01-11 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220575', 'tblTempVendorCDR_20' ) end [2025-01-11 00:26:18] Production.INFO: ProcessCDR(1,14220575,1,1,2) [2025-01-11 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220575', 'tblTempUsageDetail_20' ) start [2025-01-11 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220575', 'tblTempUsageDetail_20' ) end [2025-01-11 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:26:23] Production.INFO: ==13735== Releasing lock... [2025-01-11 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:26:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:27:05 [end_date_ymd] => 2025-01-11 00:27:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:27:05' and `end` < '2025-01-11 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-11 00:27:18] Production.INFO: count ==336 [2025-01-11 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:27:05 - End Time 2025-01-11 00:27:05 [2025-01-11 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220580', 'tblTempUsageDetail_20' ) start [2025-01-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220580', 'tblTempUsageDetail_20' ) end [2025-01-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220580', 'tblTempVendorCDR_20' ) start [2025-01-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220580', 'tblTempVendorCDR_20' ) end [2025-01-11 00:27:18] Production.INFO: ProcessCDR(1,14220580,1,1,2) [2025-01-11 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220580', 'tblTempUsageDetail_20' ) start [2025-01-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220580', 'tblTempUsageDetail_20' ) end [2025-01-11 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:27:21] Production.INFO: ==13813== Releasing lock... [2025-01-11 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:28:04 [end_date_ymd] => 2025-01-11 00:28:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:28:04' and `end` < '2025-01-11 00: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-11 00:28:18] Production.INFO: count ==336 [2025-01-11 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:28:04 - End Time 2025-01-11 00:28:04 [2025-01-11 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220585', 'tblTempUsageDetail_20' ) start [2025-01-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220585', 'tblTempUsageDetail_20' ) end [2025-01-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220585', 'tblTempVendorCDR_20' ) start [2025-01-11 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220585', 'tblTempVendorCDR_20' ) end [2025-01-11 00:28:18] Production.INFO: ProcessCDR(1,14220585,1,1,2) [2025-01-11 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220585', 'tblTempUsageDetail_20' ) start [2025-01-11 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220585', 'tblTempUsageDetail_20' ) end [2025-01-11 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:28:21] Production.INFO: ==13894== Releasing lock... [2025-01-11 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:29:05 [end_date_ymd] => 2025-01-11 00:29:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:29:05' and `end` < '2025-01-11 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-11 00:29:18] Production.INFO: count ==332 [2025-01-11 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:29:05 - End Time 2025-01-11 00:29:05 [2025-01-11 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220590', 'tblTempUsageDetail_20' ) start [2025-01-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220590', 'tblTempUsageDetail_20' ) end [2025-01-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220590', 'tblTempVendorCDR_20' ) start [2025-01-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220590', 'tblTempVendorCDR_20' ) end [2025-01-11 00:29:18] Production.INFO: ProcessCDR(1,14220590,1,1,2) [2025-01-11 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220590', 'tblTempUsageDetail_20' ) start [2025-01-11 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220590', 'tblTempUsageDetail_20' ) end [2025-01-11 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:29:21] Production.INFO: ==14005== Releasing lock... [2025-01-11 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:30:05 [end_date_ymd] => 2025-01-11 00:30:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:30:05' and `end` < '2025-01-11 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-11 00:30:18] Production.INFO: count ==338 [2025-01-11 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:30:05 - End Time 2025-01-11 00:30:05 [2025-01-11 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220596', 'tblTempUsageDetail_20' ) start [2025-01-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220596', 'tblTempUsageDetail_20' ) end [2025-01-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220596', 'tblTempVendorCDR_20' ) start [2025-01-11 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220596', 'tblTempVendorCDR_20' ) end [2025-01-11 00:30:18] Production.INFO: ProcessCDR(1,14220596,1,1,2) [2025-01-11 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220596', 'tblTempUsageDetail_20' ) start [2025-01-11 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220596', 'tblTempUsageDetail_20' ) end [2025-01-11 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:30:21] Production.INFO: ==14081== Releasing lock... [2025-01-11 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:31:05 [end_date_ymd] => 2025-01-11 00:31:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:31:05' and `end` < '2025-01-11 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-11 00:31:18] Production.INFO: count ==340 [2025-01-11 00:31:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:31:05 - End Time 2025-01-11 00:31:05 [2025-01-11 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220601', 'tblTempUsageDetail_20' ) start [2025-01-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220601', 'tblTempUsageDetail_20' ) end [2025-01-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220601', 'tblTempVendorCDR_20' ) start [2025-01-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220601', 'tblTempVendorCDR_20' ) end [2025-01-11 00:31:19] Production.INFO: ProcessCDR(1,14220601,1,1,2) [2025-01-11 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220601', 'tblTempUsageDetail_20' ) start [2025-01-11 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220601', 'tblTempUsageDetail_20' ) end [2025-01-11 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:31:22] Production.INFO: ==14158== Releasing lock... [2025-01-11 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:31:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:32:04 [end_date_ymd] => 2025-01-11 00:32:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:32:04' and `end` < '2025-01-11 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-11 00:32:17] Production.INFO: count ==340 [2025-01-11 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:32:04 - End Time 2025-01-11 00:32:04 [2025-01-11 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220606', 'tblTempUsageDetail_20' ) start [2025-01-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220606', 'tblTempUsageDetail_20' ) end [2025-01-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220606', 'tblTempVendorCDR_20' ) start [2025-01-11 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220606', 'tblTempVendorCDR_20' ) end [2025-01-11 00:32:18] Production.INFO: ProcessCDR(1,14220606,1,1,2) [2025-01-11 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220606', 'tblTempUsageDetail_20' ) start [2025-01-11 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220606', 'tblTempUsageDetail_20' ) end [2025-01-11 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:32:21] Production.INFO: ==14232== Releasing lock... [2025-01-11 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:32:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:33:05 [end_date_ymd] => 2025-01-11 00:33:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:33:05' and `end` < '2025-01-11 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-11 00:33:18] Production.INFO: count ==338 [2025-01-11 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:33:05 - End Time 2025-01-11 00:33:05 [2025-01-11 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220611', 'tblTempUsageDetail_20' ) start [2025-01-11 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220611', 'tblTempUsageDetail_20' ) end [2025-01-11 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220611', 'tblTempVendorCDR_20' ) start [2025-01-11 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220611', 'tblTempVendorCDR_20' ) end [2025-01-11 00:33:18] Production.INFO: ProcessCDR(1,14220611,1,1,2) [2025-01-11 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220611', 'tblTempUsageDetail_20' ) start [2025-01-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220611', 'tblTempUsageDetail_20' ) end [2025-01-11 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:33:21] Production.INFO: ==14306== Releasing lock... [2025-01-11 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:34:05 [end_date_ymd] => 2025-01-11 00:34:05 [RateCDR] => 1 ) [2025-01-11 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:34:05' and `end` < '2025-01-11 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:34:18] Production.INFO: count ==337 [2025-01-11 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:34:05 - End Time 2025-01-11 00:34:05 [2025-01-11 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220616', 'tblTempUsageDetail_20' ) start [2025-01-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220616', 'tblTempUsageDetail_20' ) end [2025-01-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220616', 'tblTempVendorCDR_20' ) start [2025-01-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220616', 'tblTempVendorCDR_20' ) end [2025-01-11 00:34:18] Production.INFO: ProcessCDR(1,14220616,1,1,2) [2025-01-11 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220616', 'tblTempUsageDetail_20' ) start [2025-01-11 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220616', 'tblTempUsageDetail_20' ) end [2025-01-11 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:34:21] Production.INFO: ==14380== Releasing lock... [2025-01-11 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:35:04 [end_date_ymd] => 2025-01-11 00:35:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:35:04' and `end` < '2025-01-11 00: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-11 00:35:17] Production.INFO: count ==341 [2025-01-11 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:35:04 - End Time 2025-01-11 00:35:04 [2025-01-11 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220621', 'tblTempUsageDetail_20' ) start [2025-01-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220621', 'tblTempUsageDetail_20' ) end [2025-01-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220621', 'tblTempVendorCDR_20' ) start [2025-01-11 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220621', 'tblTempVendorCDR_20' ) end [2025-01-11 00:35:17] Production.INFO: ProcessCDR(1,14220621,1,1,2) [2025-01-11 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220621', 'tblTempUsageDetail_20' ) start [2025-01-11 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220621', 'tblTempUsageDetail_20' ) end [2025-01-11 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:35:22] Production.INFO: ==14452== Releasing lock... [2025-01-11 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:35:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:36:05 [end_date_ymd] => 2025-01-11 00:36:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:36:05' and `end` < '2025-01-11 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-11 00:36:18] Production.INFO: count ==338 [2025-01-11 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:36:05 - End Time 2025-01-11 00:36:05 [2025-01-11 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220626', 'tblTempUsageDetail_20' ) start [2025-01-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220626', 'tblTempUsageDetail_20' ) end [2025-01-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220626', 'tblTempVendorCDR_20' ) start [2025-01-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220626', 'tblTempVendorCDR_20' ) end [2025-01-11 00:36:18] Production.INFO: ProcessCDR(1,14220626,1,1,2) [2025-01-11 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220626', 'tblTempUsageDetail_20' ) start [2025-01-11 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220626', 'tblTempUsageDetail_20' ) end [2025-01-11 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:36:22] Production.INFO: ==14524== Releasing lock... [2025-01-11 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:37:04 [end_date_ymd] => 2025-01-11 00:37:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:37:04' and `end` < '2025-01-11 00: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-11 00:37:18] Production.INFO: count ==338 [2025-01-11 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:37:04 - End Time 2025-01-11 00:37:04 [2025-01-11 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220631', 'tblTempUsageDetail_20' ) start [2025-01-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220631', 'tblTempUsageDetail_20' ) end [2025-01-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220631', 'tblTempVendorCDR_20' ) start [2025-01-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220631', 'tblTempVendorCDR_20' ) end [2025-01-11 00:37:18] Production.INFO: ProcessCDR(1,14220631,1,1,2) [2025-01-11 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220631', 'tblTempUsageDetail_20' ) start [2025-01-11 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220631', 'tblTempUsageDetail_20' ) end [2025-01-11 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:37:21] Production.INFO: ==14600== Releasing lock... [2025-01-11 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:37:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:38:05 [end_date_ymd] => 2025-01-11 00:38:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:38:05' and `end` < '2025-01-11 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-11 00:38:18] Production.INFO: count ==338 [2025-01-11 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:38:05 - End Time 2025-01-11 00:38:05 [2025-01-11 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220636', 'tblTempUsageDetail_20' ) start [2025-01-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220636', 'tblTempUsageDetail_20' ) end [2025-01-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220636', 'tblTempVendorCDR_20' ) start [2025-01-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220636', 'tblTempVendorCDR_20' ) end [2025-01-11 00:38:18] Production.INFO: ProcessCDR(1,14220636,1,1,2) [2025-01-11 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220636', 'tblTempUsageDetail_20' ) start [2025-01-11 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220636', 'tblTempUsageDetail_20' ) end [2025-01-11 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:38:22] Production.INFO: ==14672== Releasing lock... [2025-01-11 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:38:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:39:06 [end_date_ymd] => 2025-01-11 00:39:06 [RateCDR] => 1 ) [2025-01-11 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:39:06' and `end` < '2025-01-11 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:39:19] Production.INFO: count ==337 [2025-01-11 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:39:06 - End Time 2025-01-11 00:39:06 [2025-01-11 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220641', 'tblTempUsageDetail_20' ) start [2025-01-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220641', 'tblTempUsageDetail_20' ) end [2025-01-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220641', 'tblTempVendorCDR_20' ) start [2025-01-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220641', 'tblTempVendorCDR_20' ) end [2025-01-11 00:39:19] Production.INFO: ProcessCDR(1,14220641,1,1,2) [2025-01-11 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220641', 'tblTempUsageDetail_20' ) start [2025-01-11 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220641', 'tblTempUsageDetail_20' ) end [2025-01-11 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:39:22] Production.INFO: ==14748== Releasing lock... [2025-01-11 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:39:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:40:05 [end_date_ymd] => 2025-01-11 00:40:05 [RateCDR] => 1 ) [2025-01-11 00: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 21:40:05' and `end` < '2025-01-11 00: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-11 00:40:18] Production.INFO: count ==341 [2025-01-11 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:40:05 - End Time 2025-01-11 00:40:05 [2025-01-11 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220647', 'tblTempUsageDetail_20' ) start [2025-01-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220647', 'tblTempUsageDetail_20' ) end [2025-01-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220647', 'tblTempVendorCDR_20' ) start [2025-01-11 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220647', 'tblTempVendorCDR_20' ) end [2025-01-11 00:40:18] Production.INFO: ProcessCDR(1,14220647,1,1,2) [2025-01-11 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220647', 'tblTempUsageDetail_20' ) start [2025-01-11 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220647', 'tblTempUsageDetail_20' ) end [2025-01-11 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:40:21] Production.INFO: ==14822== Releasing lock... [2025-01-11 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:41:05 [end_date_ymd] => 2025-01-11 00:41:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:41:05' and `end` < '2025-01-11 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-11 00:41:18] Production.INFO: count ==351 [2025-01-11 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:41:05 - End Time 2025-01-11 00:41:05 [2025-01-11 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220652', 'tblTempUsageDetail_20' ) start [2025-01-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220652', 'tblTempUsageDetail_20' ) end [2025-01-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220652', 'tblTempVendorCDR_20' ) start [2025-01-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220652', 'tblTempVendorCDR_20' ) end [2025-01-11 00:41:18] Production.INFO: ProcessCDR(1,14220652,1,1,2) [2025-01-11 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220652', 'tblTempUsageDetail_20' ) start [2025-01-11 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220652', 'tblTempUsageDetail_20' ) end [2025-01-11 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:41:21] Production.INFO: ==14900== Releasing lock... [2025-01-11 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:41:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:42:04 [end_date_ymd] => 2025-01-11 00:42:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:42:04' and `end` < '2025-01-11 00: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-11 00:42:18] Production.INFO: count ==350 [2025-01-11 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:42:04 - End Time 2025-01-11 00:42:04 [2025-01-11 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220657', 'tblTempUsageDetail_20' ) start [2025-01-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220657', 'tblTempUsageDetail_20' ) end [2025-01-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220657', 'tblTempVendorCDR_20' ) start [2025-01-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220657', 'tblTempVendorCDR_20' ) end [2025-01-11 00:42:18] Production.INFO: ProcessCDR(1,14220657,1,1,2) [2025-01-11 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220657', 'tblTempUsageDetail_20' ) start [2025-01-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220657', 'tblTempUsageDetail_20' ) end [2025-01-11 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:42:21] Production.INFO: ==14977== Releasing lock... [2025-01-11 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:42:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:43:05 [end_date_ymd] => 2025-01-11 00:43:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:43:05' and `end` < '2025-01-11 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-11 00:43:19] Production.INFO: count ==354 [2025-01-11 00:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:43:05 - End Time 2025-01-11 00:43:05 [2025-01-11 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220662', 'tblTempUsageDetail_20' ) start [2025-01-11 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220662', 'tblTempUsageDetail_20' ) end [2025-01-11 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220662', 'tblTempVendorCDR_20' ) start [2025-01-11 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220662', 'tblTempVendorCDR_20' ) end [2025-01-11 00:43:19] Production.INFO: ProcessCDR(1,14220662,1,1,2) [2025-01-11 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220662', 'tblTempUsageDetail_20' ) start [2025-01-11 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220662', 'tblTempUsageDetail_20' ) end [2025-01-11 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:43:22] Production.INFO: ==15053== Releasing lock... [2025-01-11 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:44:05 [end_date_ymd] => 2025-01-11 00:44:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:44:05' and `end` < '2025-01-11 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-11 00:44:19] Production.INFO: count ==354 [2025-01-11 00:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:44:05 - End Time 2025-01-11 00:44:05 [2025-01-11 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220667', 'tblTempUsageDetail_20' ) start [2025-01-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220667', 'tblTempUsageDetail_20' ) end [2025-01-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220667', 'tblTempVendorCDR_20' ) start [2025-01-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220667', 'tblTempVendorCDR_20' ) end [2025-01-11 00:44:19] Production.INFO: ProcessCDR(1,14220667,1,1,2) [2025-01-11 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220667', 'tblTempUsageDetail_20' ) start [2025-01-11 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220667', 'tblTempUsageDetail_20' ) end [2025-01-11 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:44:22] Production.INFO: ==15166== Releasing lock... [2025-01-11 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:45:05 [end_date_ymd] => 2025-01-11 00:45:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:45:05' and `end` < '2025-01-11 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-11 00:45:18] Production.INFO: count ==353 [2025-01-11 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:45:05 - End Time 2025-01-11 00:45:05 [2025-01-11 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220672', 'tblTempUsageDetail_20' ) start [2025-01-11 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220672', 'tblTempUsageDetail_20' ) end [2025-01-11 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220672', 'tblTempVendorCDR_20' ) start [2025-01-11 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220672', 'tblTempVendorCDR_20' ) end [2025-01-11 00:45:18] Production.INFO: ProcessCDR(1,14220672,1,1,2) [2025-01-11 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220672', 'tblTempUsageDetail_20' ) start [2025-01-11 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220672', 'tblTempUsageDetail_20' ) end [2025-01-11 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:45:21] Production.INFO: ==15237== Releasing lock... [2025-01-11 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:45:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:46:04 [end_date_ymd] => 2025-01-11 00:46:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:46:04' and `end` < '2025-01-11 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-11 00:46:18] Production.INFO: count ==353 [2025-01-11 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:46:04 - End Time 2025-01-11 00:46:04 [2025-01-11 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220677', 'tblTempUsageDetail_20' ) start [2025-01-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220677', 'tblTempUsageDetail_20' ) end [2025-01-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220677', 'tblTempVendorCDR_20' ) start [2025-01-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220677', 'tblTempVendorCDR_20' ) end [2025-01-11 00:46:18] Production.INFO: ProcessCDR(1,14220677,1,1,2) [2025-01-11 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220677', 'tblTempUsageDetail_20' ) start [2025-01-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220677', 'tblTempUsageDetail_20' ) end [2025-01-11 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:46:21] Production.INFO: ==15307== Releasing lock... [2025-01-11 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:46:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:47:05 [end_date_ymd] => 2025-01-11 00:47:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:47:05' and `end` < '2025-01-11 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-11 00:47:18] Production.INFO: count ==351 [2025-01-11 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:47:05 - End Time 2025-01-11 00:47:05 [2025-01-11 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220682', 'tblTempUsageDetail_20' ) start [2025-01-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220682', 'tblTempUsageDetail_20' ) end [2025-01-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220682', 'tblTempVendorCDR_20' ) start [2025-01-11 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220682', 'tblTempVendorCDR_20' ) end [2025-01-11 00:47:18] Production.INFO: ProcessCDR(1,14220682,1,1,2) [2025-01-11 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220682', 'tblTempUsageDetail_20' ) start [2025-01-11 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220682', 'tblTempUsageDetail_20' ) end [2025-01-11 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:47:21] Production.INFO: ==15379== Releasing lock... [2025-01-11 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:47:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:48:04 [end_date_ymd] => 2025-01-11 00:48:04 [RateCDR] => 1 ) [2025-01-11 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-10 21:48:04' and `end` < '2025-01-11 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-11 00:48:17] Production.INFO: count ==351 [2025-01-11 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-10 21:48:04 - End Time 2025-01-11 00:48:04 [2025-01-11 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220687', 'tblTempUsageDetail_20' ) start [2025-01-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220687', 'tblTempUsageDetail_20' ) end [2025-01-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220687', 'tblTempVendorCDR_20' ) start [2025-01-11 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220687', 'tblTempVendorCDR_20' ) end [2025-01-11 00:48:17] Production.INFO: ProcessCDR(1,14220687,1,1,2) [2025-01-11 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220687', 'tblTempUsageDetail_20' ) start [2025-01-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220687', 'tblTempUsageDetail_20' ) end [2025-01-11 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:48:21] Production.INFO: ==15450== Releasing lock... [2025-01-11 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:48:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:49:05 [end_date_ymd] => 2025-01-11 00:49:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:49:05' and `end` < '2025-01-11 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-11 00:49:18] Production.INFO: count ==351 [2025-01-11 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:49:05 - End Time 2025-01-11 00:49:05 [2025-01-11 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220692', 'tblTempUsageDetail_20' ) start [2025-01-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220692', 'tblTempUsageDetail_20' ) end [2025-01-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220692', 'tblTempVendorCDR_20' ) start [2025-01-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220692', 'tblTempVendorCDR_20' ) end [2025-01-11 00:49:18] Production.INFO: ProcessCDR(1,14220692,1,1,2) [2025-01-11 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220692', 'tblTempUsageDetail_20' ) start [2025-01-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220692', 'tblTempUsageDetail_20' ) end [2025-01-11 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:49:21] Production.INFO: ==15523== Releasing lock... [2025-01-11 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:49:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:50:06 [end_date_ymd] => 2025-01-11 00:50:06 [RateCDR] => 1 ) [2025-01-11 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:50:06' and `end` < '2025-01-11 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:50:19] Production.INFO: count ==359 [2025-01-11 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:50:06 - End Time 2025-01-11 00:50:06 [2025-01-11 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220698', 'tblTempUsageDetail_20' ) start [2025-01-11 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220698', 'tblTempUsageDetail_20' ) end [2025-01-11 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220698', 'tblTempVendorCDR_20' ) start [2025-01-11 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220698', 'tblTempVendorCDR_20' ) end [2025-01-11 00:50:19] Production.INFO: ProcessCDR(1,14220698,1,1,2) [2025-01-11 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220698', 'tblTempUsageDetail_20' ) start [2025-01-11 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220698', 'tblTempUsageDetail_20' ) end [2025-01-11 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:50:23] Production.INFO: ==15597== Releasing lock... [2025-01-11 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:50:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:51:04 [end_date_ymd] => 2025-01-11 00:51:04 [RateCDR] => 1 ) [2025-01-11 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:51:04' and `end` < '2025-01-11 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:51:18] Production.INFO: count ==379 [2025-01-11 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:51:04 - End Time 2025-01-11 00:51:04 [2025-01-11 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220703', 'tblTempUsageDetail_20' ) start [2025-01-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220703', 'tblTempUsageDetail_20' ) end [2025-01-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220703', 'tblTempVendorCDR_20' ) start [2025-01-11 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220703', 'tblTempVendorCDR_20' ) end [2025-01-11 00:51:18] Production.INFO: ProcessCDR(1,14220703,1,1,2) [2025-01-11 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220703', 'tblTempUsageDetail_20' ) start [2025-01-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220703', 'tblTempUsageDetail_20' ) end [2025-01-11 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:51:22] Production.INFO: ==15670== Releasing lock... [2025-01-11 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:52:05 [end_date_ymd] => 2025-01-11 00:52:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:52:05' and `end` < '2025-01-11 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-11 00:52:18] Production.INFO: count ==376 [2025-01-11 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:52:05 - End Time 2025-01-11 00:52:05 [2025-01-11 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220708', 'tblTempUsageDetail_20' ) start [2025-01-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220708', 'tblTempUsageDetail_20' ) end [2025-01-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220708', 'tblTempVendorCDR_20' ) start [2025-01-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220708', 'tblTempVendorCDR_20' ) end [2025-01-11 00:52:19] Production.INFO: ProcessCDR(1,14220708,1,1,2) [2025-01-11 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220708', 'tblTempUsageDetail_20' ) start [2025-01-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220708', 'tblTempUsageDetail_20' ) end [2025-01-11 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:52:22] Production.INFO: ==15739== Releasing lock... [2025-01-11 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:53:04 [end_date_ymd] => 2025-01-11 00:53:04 [RateCDR] => 1 ) [2025-01-11 00: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 21:53:04' and `end` < '2025-01-11 00: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-11 00:53:20] Production.INFO: count ==371 [2025-01-11 00:53:20] Production.ERROR: pbx CDR StartTime 2025-01-10 21:53:04 - End Time 2025-01-11 00:53:04 [2025-01-11 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220713', 'tblTempUsageDetail_20' ) start [2025-01-11 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220713', 'tblTempUsageDetail_20' ) end [2025-01-11 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220713', 'tblTempVendorCDR_20' ) start [2025-01-11 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220713', 'tblTempVendorCDR_20' ) end [2025-01-11 00:53:20] Production.INFO: ProcessCDR(1,14220713,1,1,2) [2025-01-11 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220713', 'tblTempUsageDetail_20' ) start [2025-01-11 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220713', 'tblTempUsageDetail_20' ) end [2025-01-11 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:53:23] Production.INFO: ==15810== Releasing lock... [2025-01-11 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:53:23] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:54:05 [end_date_ymd] => 2025-01-11 00:54:05 [RateCDR] => 1 ) [2025-01-11 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:54:05' and `end` < '2025-01-11 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:54:18] Production.INFO: count ==362 [2025-01-11 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 21:54:05 - End Time 2025-01-11 00:54:05 [2025-01-11 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220718', 'tblTempUsageDetail_20' ) start [2025-01-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220718', 'tblTempUsageDetail_20' ) end [2025-01-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220718', 'tblTempVendorCDR_20' ) start [2025-01-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220718', 'tblTempVendorCDR_20' ) end [2025-01-11 00:54:18] Production.INFO: ProcessCDR(1,14220718,1,1,2) [2025-01-11 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220718', 'tblTempUsageDetail_20' ) start [2025-01-11 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220718', 'tblTempUsageDetail_20' ) end [2025-01-11 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:54:21] Production.INFO: ==15882== Releasing lock... [2025-01-11 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:55:04 [end_date_ymd] => 2025-01-11 00:55:04 [RateCDR] => 1 ) [2025-01-11 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:55:04' and `end` < '2025-01-11 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:55:19] Production.INFO: count ==356 [2025-01-11 00:55:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:55:04 - End Time 2025-01-11 00:55:04 [2025-01-11 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220723', 'tblTempUsageDetail_20' ) start [2025-01-11 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220723', 'tblTempUsageDetail_20' ) end [2025-01-11 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220723', 'tblTempVendorCDR_20' ) start [2025-01-11 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220723', 'tblTempVendorCDR_20' ) end [2025-01-11 00:55:19] Production.INFO: ProcessCDR(1,14220723,1,1,2) [2025-01-11 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220723', 'tblTempUsageDetail_20' ) start [2025-01-11 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220723', 'tblTempUsageDetail_20' ) end [2025-01-11 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:55:22] Production.INFO: ==15956== Releasing lock... [2025-01-11 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:55:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:56:04 [end_date_ymd] => 2025-01-11 00:56:04 [RateCDR] => 1 ) [2025-01-11 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:56:04' and `end` < '2025-01-11 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-11 00:56:19] Production.INFO: count ==350 [2025-01-11 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:56:04 - End Time 2025-01-11 00:56:04 [2025-01-11 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220728', 'tblTempUsageDetail_20' ) start [2025-01-11 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220728', 'tblTempUsageDetail_20' ) end [2025-01-11 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220728', 'tblTempVendorCDR_20' ) start [2025-01-11 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220728', 'tblTempVendorCDR_20' ) end [2025-01-11 00:56:19] Production.INFO: ProcessCDR(1,14220728,1,1,2) [2025-01-11 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220728', 'tblTempUsageDetail_20' ) start [2025-01-11 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220728', 'tblTempUsageDetail_20' ) end [2025-01-11 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:56:22] Production.INFO: ==16028== Releasing lock... [2025-01-11 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:57:05 [end_date_ymd] => 2025-01-11 00:57:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:57:05' and `end` < '2025-01-11 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-11 00:57:19] Production.INFO: count ==344 [2025-01-11 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:57:05 - End Time 2025-01-11 00:57:05 [2025-01-11 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220733', 'tblTempUsageDetail_20' ) start [2025-01-11 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220733', 'tblTempUsageDetail_20' ) end [2025-01-11 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220733', 'tblTempVendorCDR_20' ) start [2025-01-11 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220733', 'tblTempVendorCDR_20' ) end [2025-01-11 00:57:19] Production.INFO: ProcessCDR(1,14220733,1,1,2) [2025-01-11 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220733', 'tblTempUsageDetail_20' ) start [2025-01-11 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220733', 'tblTempUsageDetail_20' ) end [2025-01-11 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:57:23] Production.INFO: ==16099== Releasing lock... [2025-01-11 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:57:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:58:04 [end_date_ymd] => 2025-01-11 00:58:04 [RateCDR] => 1 ) [2025-01-11 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 21:58:04' and `end` < '2025-01-11 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 00:58:19] Production.INFO: count ==344 [2025-01-11 00:58:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:58:04 - End Time 2025-01-11 00:58:04 [2025-01-11 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220738', 'tblTempUsageDetail_20' ) start [2025-01-11 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220738', 'tblTempUsageDetail_20' ) end [2025-01-11 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220738', 'tblTempVendorCDR_20' ) start [2025-01-11 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220738', 'tblTempVendorCDR_20' ) end [2025-01-11 00:58:19] Production.INFO: ProcessCDR(1,14220738,1,1,2) [2025-01-11 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220738', 'tblTempUsageDetail_20' ) start [2025-01-11 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220738', 'tblTempUsageDetail_20' ) end [2025-01-11 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:58:22] Production.INFO: ==16169== Releasing lock... [2025-01-11 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 21:59:05 [end_date_ymd] => 2025-01-11 00:59:05 [RateCDR] => 1 ) [2025-01-11 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-10 21:59:05' and `end` < '2025-01-11 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-11 00:59:19] Production.INFO: count ==343 [2025-01-11 00:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 21:59:05 - End Time 2025-01-11 00:59:05 [2025-01-11 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220743', 'tblTempUsageDetail_20' ) start [2025-01-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220743', 'tblTempUsageDetail_20' ) end [2025-01-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220743', 'tblTempVendorCDR_20' ) start [2025-01-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220743', 'tblTempVendorCDR_20' ) end [2025-01-11 00:59:19] Production.INFO: ProcessCDR(1,14220743,1,1,2) [2025-01-11 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220743', 'tblTempUsageDetail_20' ) start [2025-01-11 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220743', 'tblTempUsageDetail_20' ) end [2025-01-11 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 00:59:23] Production.INFO: ==16240== Releasing lock... [2025-01-11 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 00:59:23] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:00:05 [end_date_ymd] => 2025-01-11 01:00:05 [RateCDR] => 1 ) [2025-01-11 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:00:05' and `end` < '2025-01-11 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:00:18] Production.INFO: count ==348 [2025-01-11 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:00:05 - End Time 2025-01-11 01:00:05 [2025-01-11 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220749', 'tblTempUsageDetail_20' ) start [2025-01-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220749', 'tblTempUsageDetail_20' ) end [2025-01-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220749', 'tblTempVendorCDR_20' ) start [2025-01-11 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220749', 'tblTempVendorCDR_20' ) end [2025-01-11 01:00:18] Production.INFO: ProcessCDR(1,14220749,1,1,2) [2025-01-11 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220749', 'tblTempUsageDetail_20' ) start [2025-01-11 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220749', 'tblTempUsageDetail_20' ) end [2025-01-11 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:00:21] Production.INFO: ==16350== Releasing lock... [2025-01-11 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:00:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:01:05 [end_date_ymd] => 2025-01-11 01:01:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:01:05' and `end` < '2025-01-11 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-11 01:01:18] Production.INFO: count ==366 [2025-01-11 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:01:05 - End Time 2025-01-11 01:01:05 [2025-01-11 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220754', 'tblTempUsageDetail_20' ) start [2025-01-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220754', 'tblTempUsageDetail_20' ) end [2025-01-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220754', 'tblTempVendorCDR_20' ) start [2025-01-11 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220754', 'tblTempVendorCDR_20' ) end [2025-01-11 01:01:18] Production.INFO: ProcessCDR(1,14220754,1,1,2) [2025-01-11 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220754', 'tblTempUsageDetail_20' ) start [2025-01-11 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220754', 'tblTempUsageDetail_20' ) end [2025-01-11 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:01:21] Production.INFO: ==16437== Releasing lock... [2025-01-11 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:02:05 [end_date_ymd] => 2025-01-11 01:02:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:02:05' and `end` < '2025-01-11 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-11 01:02:18] Production.INFO: count ==365 [2025-01-11 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:02:05 - End Time 2025-01-11 01:02:05 [2025-01-11 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220759', 'tblTempUsageDetail_20' ) start [2025-01-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220759', 'tblTempUsageDetail_20' ) end [2025-01-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220759', 'tblTempVendorCDR_20' ) start [2025-01-11 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220759', 'tblTempVendorCDR_20' ) end [2025-01-11 01:02:18] Production.INFO: ProcessCDR(1,14220759,1,1,2) [2025-01-11 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220759', 'tblTempUsageDetail_20' ) start [2025-01-11 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220759', 'tblTempUsageDetail_20' ) end [2025-01-11 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:02:22] Production.INFO: ==16508== Releasing lock... [2025-01-11 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:03:05 [end_date_ymd] => 2025-01-11 01:03:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:03:05' and `end` < '2025-01-11 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-11 01:03:18] Production.INFO: count ==365 [2025-01-11 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:03:05 - End Time 2025-01-11 01:03:05 [2025-01-11 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220764', 'tblTempUsageDetail_20' ) start [2025-01-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220764', 'tblTempUsageDetail_20' ) end [2025-01-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220764', 'tblTempVendorCDR_20' ) start [2025-01-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220764', 'tblTempVendorCDR_20' ) end [2025-01-11 01:03:18] Production.INFO: ProcessCDR(1,14220764,1,1,2) [2025-01-11 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220764', 'tblTempUsageDetail_20' ) start [2025-01-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220764', 'tblTempUsageDetail_20' ) end [2025-01-11 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:03:21] Production.INFO: ==16578== Releasing lock... [2025-01-11 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:04:05 [end_date_ymd] => 2025-01-11 01:04:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:04:05' and `end` < '2025-01-11 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-11 01:04:18] Production.INFO: count ==363 [2025-01-11 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:04:05 - End Time 2025-01-11 01:04:05 [2025-01-11 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220769', 'tblTempUsageDetail_20' ) start [2025-01-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220769', 'tblTempUsageDetail_20' ) end [2025-01-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220769', 'tblTempVendorCDR_20' ) start [2025-01-11 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220769', 'tblTempVendorCDR_20' ) end [2025-01-11 01:04:18] Production.INFO: ProcessCDR(1,14220769,1,1,2) [2025-01-11 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220769', 'tblTempUsageDetail_20' ) start [2025-01-11 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220769', 'tblTempUsageDetail_20' ) end [2025-01-11 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:04:21] Production.INFO: ==16650== Releasing lock... [2025-01-11 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:05:05 [end_date_ymd] => 2025-01-11 01:05:05 [RateCDR] => 1 ) [2025-01-11 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:05:05' and `end` < '2025-01-11 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:05:18] Production.INFO: count ==362 [2025-01-11 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:05:05 - End Time 2025-01-11 01:05:05 [2025-01-11 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220774', 'tblTempUsageDetail_20' ) start [2025-01-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220774', 'tblTempUsageDetail_20' ) end [2025-01-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220774', 'tblTempVendorCDR_20' ) start [2025-01-11 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220774', 'tblTempVendorCDR_20' ) end [2025-01-11 01:05:18] Production.INFO: ProcessCDR(1,14220774,1,1,2) [2025-01-11 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220774', 'tblTempUsageDetail_20' ) start [2025-01-11 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220774', 'tblTempUsageDetail_20' ) end [2025-01-11 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:05:21] Production.INFO: ==16720== Releasing lock... [2025-01-11 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:05:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:06:05 [end_date_ymd] => 2025-01-11 01:06:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:06:05' and `end` < '2025-01-11 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-11 01:06:20] Production.INFO: count ==362 [2025-01-11 01:06:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:06:05 - End Time 2025-01-11 01:06:05 [2025-01-11 01:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220779', 'tblTempUsageDetail_20' ) start [2025-01-11 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220779', 'tblTempUsageDetail_20' ) end [2025-01-11 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220779', 'tblTempVendorCDR_20' ) start [2025-01-11 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220779', 'tblTempVendorCDR_20' ) end [2025-01-11 01:06:20] Production.INFO: ProcessCDR(1,14220779,1,1,2) [2025-01-11 01:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220779', 'tblTempUsageDetail_20' ) start [2025-01-11 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220779', 'tblTempUsageDetail_20' ) end [2025-01-11 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:06:23] Production.INFO: ==16789== Releasing lock... [2025-01-11 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:06:23] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:07:04 [end_date_ymd] => 2025-01-11 01:07:04 [RateCDR] => 1 ) [2025-01-11 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-10 22:07:04' and `end` < '2025-01-11 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-11 01:07:18] Production.INFO: count ==362 [2025-01-11 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:07:04 - End Time 2025-01-11 01:07:04 [2025-01-11 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220784', 'tblTempUsageDetail_20' ) start [2025-01-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220784', 'tblTempUsageDetail_20' ) end [2025-01-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220784', 'tblTempVendorCDR_20' ) start [2025-01-11 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220784', 'tblTempVendorCDR_20' ) end [2025-01-11 01:07:18] Production.INFO: ProcessCDR(1,14220784,1,1,2) [2025-01-11 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220784', 'tblTempUsageDetail_20' ) start [2025-01-11 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220784', 'tblTempUsageDetail_20' ) end [2025-01-11 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:07:21] Production.INFO: ==16861== Releasing lock... [2025-01-11 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:07:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:08:05 [end_date_ymd] => 2025-01-11 01:08:05 [RateCDR] => 1 ) [2025-01-11 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:08:05' and `end` < '2025-01-11 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:08:19] Production.INFO: count ==362 [2025-01-11 01:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:08:05 - End Time 2025-01-11 01:08:05 [2025-01-11 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220789', 'tblTempUsageDetail_20' ) start [2025-01-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220789', 'tblTempUsageDetail_20' ) end [2025-01-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220789', 'tblTempVendorCDR_20' ) start [2025-01-11 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220789', 'tblTempVendorCDR_20' ) end [2025-01-11 01:08:19] Production.INFO: ProcessCDR(1,14220789,1,1,2) [2025-01-11 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220789', 'tblTempUsageDetail_20' ) start [2025-01-11 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220789', 'tblTempUsageDetail_20' ) end [2025-01-11 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:08:22] Production.INFO: ==16940== Releasing lock... [2025-01-11 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:08:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:09:04 [end_date_ymd] => 2025-01-11 01:09:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:09:04' and `end` < '2025-01-11 01: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-11 01:09:17] Production.INFO: count ==359 [2025-01-11 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-10 22:09:04 - End Time 2025-01-11 01:09:04 [2025-01-11 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220794', 'tblTempUsageDetail_20' ) start [2025-01-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220794', 'tblTempUsageDetail_20' ) end [2025-01-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220794', 'tblTempVendorCDR_20' ) start [2025-01-11 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220794', 'tblTempVendorCDR_20' ) end [2025-01-11 01:09:17] Production.INFO: ProcessCDR(1,14220794,1,1,2) [2025-01-11 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220794', 'tblTempUsageDetail_20' ) start [2025-01-11 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220794', 'tblTempUsageDetail_20' ) end [2025-01-11 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:09:20] Production.INFO: ==17009== Releasing lock... [2025-01-11 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:09:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:10:05 [end_date_ymd] => 2025-01-11 01:10:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:10:05' and `end` < '2025-01-11 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-11 01:10:19] Production.INFO: count ==365 [2025-01-11 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:10:05 - End Time 2025-01-11 01:10:05 [2025-01-11 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220800', 'tblTempUsageDetail_20' ) start [2025-01-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220800', 'tblTempUsageDetail_20' ) end [2025-01-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220800', 'tblTempVendorCDR_20' ) start [2025-01-11 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220800', 'tblTempVendorCDR_20' ) end [2025-01-11 01:10:19] Production.INFO: ProcessCDR(1,14220800,1,1,2) [2025-01-11 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220800', 'tblTempUsageDetail_20' ) start [2025-01-11 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220800', 'tblTempUsageDetail_20' ) end [2025-01-11 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:10:22] Production.INFO: ==17082== Releasing lock... [2025-01-11 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:10:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:11:05 [end_date_ymd] => 2025-01-11 01:11:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:11:05' and `end` < '2025-01-11 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-11 01:11:18] Production.INFO: count ==388 [2025-01-11 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:11:05 - End Time 2025-01-11 01:11:05 [2025-01-11 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220805', 'tblTempUsageDetail_20' ) start [2025-01-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220805', 'tblTempUsageDetail_20' ) end [2025-01-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220805', 'tblTempVendorCDR_20' ) start [2025-01-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220805', 'tblTempVendorCDR_20' ) end [2025-01-11 01:11:18] Production.INFO: ProcessCDR(1,14220805,1,1,2) [2025-01-11 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220805', 'tblTempUsageDetail_20' ) start [2025-01-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220805', 'tblTempUsageDetail_20' ) end [2025-01-11 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:11:21] Production.INFO: ==17156== Releasing lock... [2025-01-11 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:12:05 [end_date_ymd] => 2025-01-11 01:12:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:12:05' and `end` < '2025-01-11 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-11 01:12:20] Production.INFO: count ==388 [2025-01-11 01:12:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:12:05 - End Time 2025-01-11 01:12:05 [2025-01-11 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220810', 'tblTempUsageDetail_20' ) start [2025-01-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220810', 'tblTempUsageDetail_20' ) end [2025-01-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220810', 'tblTempVendorCDR_20' ) start [2025-01-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220810', 'tblTempVendorCDR_20' ) end [2025-01-11 01:12:20] Production.INFO: ProcessCDR(1,14220810,1,1,2) [2025-01-11 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220810', 'tblTempUsageDetail_20' ) start [2025-01-11 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220810', 'tblTempUsageDetail_20' ) end [2025-01-11 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:12:23] Production.INFO: ==17233== Releasing lock... [2025-01-11 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:12:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:13:05 [end_date_ymd] => 2025-01-11 01:13:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:13:05' and `end` < '2025-01-11 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-11 01:13:19] Production.INFO: count ==386 [2025-01-11 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:13:05 - End Time 2025-01-11 01:13:05 [2025-01-11 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220815', 'tblTempUsageDetail_20' ) start [2025-01-11 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220815', 'tblTempUsageDetail_20' ) end [2025-01-11 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220815', 'tblTempVendorCDR_20' ) start [2025-01-11 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220815', 'tblTempVendorCDR_20' ) end [2025-01-11 01:13:19] Production.INFO: ProcessCDR(1,14220815,1,1,2) [2025-01-11 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220815', 'tblTempUsageDetail_20' ) start [2025-01-11 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220815', 'tblTempUsageDetail_20' ) end [2025-01-11 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:13:22] Production.INFO: ==17309== Releasing lock... [2025-01-11 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:14:04 [end_date_ymd] => 2025-01-11 01:14:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:14:04' and `end` < '2025-01-11 01: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-11 01:14:17] Production.INFO: count ==385 [2025-01-11 01:14:17] Production.ERROR: pbx CDR StartTime 2025-01-10 22:14:04 - End Time 2025-01-11 01:14:04 [2025-01-11 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220820', 'tblTempUsageDetail_20' ) start [2025-01-11 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220820', 'tblTempUsageDetail_20' ) end [2025-01-11 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220820', 'tblTempVendorCDR_20' ) start [2025-01-11 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220820', 'tblTempVendorCDR_20' ) end [2025-01-11 01:14:17] Production.INFO: ProcessCDR(1,14220820,1,1,2) [2025-01-11 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220820', 'tblTempUsageDetail_20' ) start [2025-01-11 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220820', 'tblTempUsageDetail_20' ) end [2025-01-11 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:14:22] Production.INFO: ==17387== Releasing lock... [2025-01-11 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:15:05 [end_date_ymd] => 2025-01-11 01:15:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:15:05' and `end` < '2025-01-11 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-11 01:15:18] Production.INFO: count ==385 [2025-01-11 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:15:05 - End Time 2025-01-11 01:15:05 [2025-01-11 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220825', 'tblTempUsageDetail_20' ) start [2025-01-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220825', 'tblTempUsageDetail_20' ) end [2025-01-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220825', 'tblTempVendorCDR_20' ) start [2025-01-11 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220825', 'tblTempVendorCDR_20' ) end [2025-01-11 01:15:18] Production.INFO: ProcessCDR(1,14220825,1,1,2) [2025-01-11 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220825', 'tblTempUsageDetail_20' ) start [2025-01-11 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220825', 'tblTempUsageDetail_20' ) end [2025-01-11 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:15:21] Production.INFO: ==17463== Releasing lock... [2025-01-11 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:16:05 [end_date_ymd] => 2025-01-11 01:16:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:16:05' and `end` < '2025-01-11 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-11 01:16:19] Production.INFO: count ==387 [2025-01-11 01:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:16:05 - End Time 2025-01-11 01:16:05 [2025-01-11 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220830', 'tblTempUsageDetail_20' ) start [2025-01-11 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220830', 'tblTempUsageDetail_20' ) end [2025-01-11 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220830', 'tblTempVendorCDR_20' ) start [2025-01-11 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220830', 'tblTempVendorCDR_20' ) end [2025-01-11 01:16:19] Production.INFO: ProcessCDR(1,14220830,1,1,2) [2025-01-11 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220830', 'tblTempUsageDetail_20' ) start [2025-01-11 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220830', 'tblTempUsageDetail_20' ) end [2025-01-11 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:16:22] Production.INFO: ==17583== Releasing lock... [2025-01-11 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:17:04 [end_date_ymd] => 2025-01-11 01:17:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:17:04' and `end` < '2025-01-11 01: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-11 01:17:19] Production.INFO: count ==381 [2025-01-11 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:17:04 - End Time 2025-01-11 01:17:04 [2025-01-11 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220835', 'tblTempUsageDetail_20' ) start [2025-01-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220835', 'tblTempUsageDetail_20' ) end [2025-01-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220835', 'tblTempVendorCDR_20' ) start [2025-01-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220835', 'tblTempVendorCDR_20' ) end [2025-01-11 01:17:19] Production.INFO: ProcessCDR(1,14220835,1,1,2) [2025-01-11 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220835', 'tblTempUsageDetail_20' ) start [2025-01-11 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220835', 'tblTempUsageDetail_20' ) end [2025-01-11 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:17:22] Production.INFO: ==17658== Releasing lock... [2025-01-11 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:18:04 [end_date_ymd] => 2025-01-11 01:18:04 [RateCDR] => 1 ) [2025-01-11 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-10 22:18:04' and `end` < '2025-01-11 01: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-11 01:18:19] Production.INFO: count ==378 [2025-01-11 01:18:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:18:04 - End Time 2025-01-11 01:18:04 [2025-01-11 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220840', 'tblTempUsageDetail_20' ) start [2025-01-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220840', 'tblTempUsageDetail_20' ) end [2025-01-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220840', 'tblTempVendorCDR_20' ) start [2025-01-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220840', 'tblTempVendorCDR_20' ) end [2025-01-11 01:18:19] Production.INFO: ProcessCDR(1,14220840,1,1,2) [2025-01-11 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220840', 'tblTempUsageDetail_20' ) start [2025-01-11 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220840', 'tblTempUsageDetail_20' ) end [2025-01-11 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:18:23] Production.INFO: ==17734== Releasing lock... [2025-01-11 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:18:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:19:04 [end_date_ymd] => 2025-01-11 01:19:04 [RateCDR] => 1 ) [2025-01-11 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-10 22:19:04' and `end` < '2025-01-11 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-11 01:19:18] Production.INFO: count ==377 [2025-01-11 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:19:04 - End Time 2025-01-11 01:19:04 [2025-01-11 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220845', 'tblTempUsageDetail_20' ) start [2025-01-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220845', 'tblTempUsageDetail_20' ) end [2025-01-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220845', 'tblTempVendorCDR_20' ) start [2025-01-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220845', 'tblTempVendorCDR_20' ) end [2025-01-11 01:19:18] Production.INFO: ProcessCDR(1,14220845,1,1,2) [2025-01-11 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220845', 'tblTempUsageDetail_20' ) start [2025-01-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220845', 'tblTempUsageDetail_20' ) end [2025-01-11 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:19:21] Production.INFO: ==17810== Releasing lock... [2025-01-11 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:20:05 [end_date_ymd] => 2025-01-11 01:20:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:20:05' and `end` < '2025-01-11 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-11 01:20:18] Production.INFO: count ==381 [2025-01-11 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:20:05 - End Time 2025-01-11 01:20:05 [2025-01-11 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220851', 'tblTempUsageDetail_20' ) start [2025-01-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220851', 'tblTempUsageDetail_20' ) end [2025-01-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220851', 'tblTempVendorCDR_20' ) start [2025-01-11 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220851', 'tblTempVendorCDR_20' ) end [2025-01-11 01:20:18] Production.INFO: ProcessCDR(1,14220851,1,1,2) [2025-01-11 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220851', 'tblTempUsageDetail_20' ) start [2025-01-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220851', 'tblTempUsageDetail_20' ) end [2025-01-11 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:20:22] Production.INFO: ==17889== Releasing lock... [2025-01-11 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:20:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:21:05 [end_date_ymd] => 2025-01-11 01:21:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:21:05' and `end` < '2025-01-11 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-11 01:21:18] Production.INFO: count ==394 [2025-01-11 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:21:05 - End Time 2025-01-11 01:21:05 [2025-01-11 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220856', 'tblTempUsageDetail_20' ) start [2025-01-11 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220856', 'tblTempUsageDetail_20' ) end [2025-01-11 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220856', 'tblTempVendorCDR_20' ) start [2025-01-11 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220856', 'tblTempVendorCDR_20' ) end [2025-01-11 01:21:19] Production.INFO: ProcessCDR(1,14220856,1,1,2) [2025-01-11 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220856', 'tblTempUsageDetail_20' ) start [2025-01-11 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220856', 'tblTempUsageDetail_20' ) end [2025-01-11 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:21:22] Production.INFO: ==17978== Releasing lock... [2025-01-11 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:22:04 [end_date_ymd] => 2025-01-11 01:22:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:22:04' and `end` < '2025-01-11 01: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-11 01:22:19] Production.INFO: count ==394 [2025-01-11 01:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:22:04 - End Time 2025-01-11 01:22:04 [2025-01-11 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220861', 'tblTempUsageDetail_20' ) start [2025-01-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220861', 'tblTempUsageDetail_20' ) end [2025-01-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220861', 'tblTempVendorCDR_20' ) start [2025-01-11 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220861', 'tblTempVendorCDR_20' ) end [2025-01-11 01:22:19] Production.INFO: ProcessCDR(1,14220861,1,1,2) [2025-01-11 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220861', 'tblTempUsageDetail_20' ) start [2025-01-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220861', 'tblTempUsageDetail_20' ) end [2025-01-11 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:22:22] Production.INFO: ==18057== Releasing lock... [2025-01-11 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:23:05 [end_date_ymd] => 2025-01-11 01:23:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:23:05' and `end` < '2025-01-11 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-11 01:23:19] Production.INFO: count ==395 [2025-01-11 01:23:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:23:05 - End Time 2025-01-11 01:23:05 [2025-01-11 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220866', 'tblTempUsageDetail_20' ) start [2025-01-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220866', 'tblTempUsageDetail_20' ) end [2025-01-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220866', 'tblTempVendorCDR_20' ) start [2025-01-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220866', 'tblTempVendorCDR_20' ) end [2025-01-11 01:23:19] Production.INFO: ProcessCDR(1,14220866,1,1,2) [2025-01-11 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220866', 'tblTempUsageDetail_20' ) start [2025-01-11 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220866', 'tblTempUsageDetail_20' ) end [2025-01-11 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:23:23] Production.INFO: ==18127== Releasing lock... [2025-01-11 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:23:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:24:04 [end_date_ymd] => 2025-01-11 01:24:04 [RateCDR] => 1 ) [2025-01-11 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-10 22:24:04' and `end` < '2025-01-11 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-11 01:24:19] Production.INFO: count ==396 [2025-01-11 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:24:04 - End Time 2025-01-11 01:24:04 [2025-01-11 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220871', 'tblTempUsageDetail_20' ) start [2025-01-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220871', 'tblTempUsageDetail_20' ) end [2025-01-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220871', 'tblTempVendorCDR_20' ) start [2025-01-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220871', 'tblTempVendorCDR_20' ) end [2025-01-11 01:24:19] Production.INFO: ProcessCDR(1,14220871,1,1,2) [2025-01-11 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220871', 'tblTempUsageDetail_20' ) start [2025-01-11 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220871', 'tblTempUsageDetail_20' ) end [2025-01-11 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:24:23] Production.INFO: ==18199== Releasing lock... [2025-01-11 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:25:05 [end_date_ymd] => 2025-01-11 01:25:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:25:05' and `end` < '2025-01-11 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-11 01:25:18] Production.INFO: count ==394 [2025-01-11 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:25:05 - End Time 2025-01-11 01:25:05 [2025-01-11 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220876', 'tblTempUsageDetail_20' ) start [2025-01-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220876', 'tblTempUsageDetail_20' ) end [2025-01-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220876', 'tblTempVendorCDR_20' ) start [2025-01-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220876', 'tblTempVendorCDR_20' ) end [2025-01-11 01:25:18] Production.INFO: ProcessCDR(1,14220876,1,1,2) [2025-01-11 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220876', 'tblTempUsageDetail_20' ) start [2025-01-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220876', 'tblTempUsageDetail_20' ) end [2025-01-11 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:25:21] Production.INFO: ==18272== Releasing lock... [2025-01-11 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:26:05 [end_date_ymd] => 2025-01-11 01:26:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:26:05' and `end` < '2025-01-11 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-11 01:26:20] Production.INFO: count ==393 [2025-01-11 01:26:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:26:05 - End Time 2025-01-11 01:26:05 [2025-01-11 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220881', 'tblTempUsageDetail_20' ) start [2025-01-11 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220881', 'tblTempUsageDetail_20' ) end [2025-01-11 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220881', 'tblTempVendorCDR_20' ) start [2025-01-11 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220881', 'tblTempVendorCDR_20' ) end [2025-01-11 01:26:20] Production.INFO: ProcessCDR(1,14220881,1,1,2) [2025-01-11 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220881', 'tblTempUsageDetail_20' ) start [2025-01-11 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220881', 'tblTempUsageDetail_20' ) end [2025-01-11 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:26:23] Production.INFO: ==18364== Releasing lock... [2025-01-11 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:27:05 [end_date_ymd] => 2025-01-11 01:27:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:27:05' and `end` < '2025-01-11 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-11 01:27:18] Production.INFO: count ==392 [2025-01-11 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:27:05 - End Time 2025-01-11 01:27:05 [2025-01-11 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220886', 'tblTempUsageDetail_20' ) start [2025-01-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220886', 'tblTempUsageDetail_20' ) end [2025-01-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220886', 'tblTempVendorCDR_20' ) start [2025-01-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220886', 'tblTempVendorCDR_20' ) end [2025-01-11 01:27:18] Production.INFO: ProcessCDR(1,14220886,1,1,2) [2025-01-11 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220886', 'tblTempUsageDetail_20' ) start [2025-01-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220886', 'tblTempUsageDetail_20' ) end [2025-01-11 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:27:21] Production.INFO: ==18434== Releasing lock... [2025-01-11 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:28:05 [end_date_ymd] => 2025-01-11 01:28:05 [RateCDR] => 1 ) [2025-01-11 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:28:05' and `end` < '2025-01-11 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:28:19] Production.INFO: count ==391 [2025-01-11 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:28:05 - End Time 2025-01-11 01:28:05 [2025-01-11 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220891', 'tblTempUsageDetail_20' ) start [2025-01-11 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220891', 'tblTempUsageDetail_20' ) end [2025-01-11 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220891', 'tblTempVendorCDR_20' ) start [2025-01-11 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220891', 'tblTempVendorCDR_20' ) end [2025-01-11 01:28:19] Production.INFO: ProcessCDR(1,14220891,1,1,2) [2025-01-11 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220891', 'tblTempUsageDetail_20' ) start [2025-01-11 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220891', 'tblTempUsageDetail_20' ) end [2025-01-11 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:28:23] Production.INFO: ==18505== Releasing lock... [2025-01-11 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:29:05 [end_date_ymd] => 2025-01-11 01:29:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:29:05' and `end` < '2025-01-11 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-11 01:29:19] Production.INFO: count ==390 [2025-01-11 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:29:05 - End Time 2025-01-11 01:29:05 [2025-01-11 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220896', 'tblTempUsageDetail_20' ) start [2025-01-11 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220896', 'tblTempUsageDetail_20' ) end [2025-01-11 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220896', 'tblTempVendorCDR_20' ) start [2025-01-11 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220896', 'tblTempVendorCDR_20' ) end [2025-01-11 01:29:19] Production.INFO: ProcessCDR(1,14220896,1,1,2) [2025-01-11 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220896', 'tblTempUsageDetail_20' ) start [2025-01-11 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220896', 'tblTempUsageDetail_20' ) end [2025-01-11 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:29:22] Production.INFO: ==18578== Releasing lock... [2025-01-11 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:30:05 [end_date_ymd] => 2025-01-11 01:30:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:30:05' and `end` < '2025-01-11 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-11 01:30:18] Production.INFO: count ==394 [2025-01-11 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:30:05 - End Time 2025-01-11 01:30:05 [2025-01-11 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220902', 'tblTempUsageDetail_20' ) start [2025-01-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220902', 'tblTempUsageDetail_20' ) end [2025-01-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220902', 'tblTempVendorCDR_20' ) start [2025-01-11 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220902', 'tblTempVendorCDR_20' ) end [2025-01-11 01:30:18] Production.INFO: ProcessCDR(1,14220902,1,1,2) [2025-01-11 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220902', 'tblTempUsageDetail_20' ) start [2025-01-11 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220902', 'tblTempUsageDetail_20' ) end [2025-01-11 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:30:22] Production.INFO: ==18650== Releasing lock... [2025-01-11 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:31:04 [end_date_ymd] => 2025-01-11 01:31:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:31:04' and `end` < '2025-01-11 01: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-11 01:31:18] Production.INFO: count ==418 [2025-01-11 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:31:04 - End Time 2025-01-11 01:31:04 [2025-01-11 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220907', 'tblTempUsageDetail_20' ) start [2025-01-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220907', 'tblTempUsageDetail_20' ) end [2025-01-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220907', 'tblTempVendorCDR_20' ) start [2025-01-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220907', 'tblTempVendorCDR_20' ) end [2025-01-11 01:31:18] Production.INFO: ProcessCDR(1,14220907,1,1,2) [2025-01-11 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220907', 'tblTempUsageDetail_20' ) start [2025-01-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220907', 'tblTempUsageDetail_20' ) end [2025-01-11 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:31:21] Production.INFO: ==18761== Releasing lock... [2025-01-11 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:32:05 [end_date_ymd] => 2025-01-11 01:32:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:32:05' and `end` < '2025-01-11 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-11 01:32:19] Production.INFO: count ==418 [2025-01-11 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:32:05 - End Time 2025-01-11 01:32:05 [2025-01-11 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220912', 'tblTempUsageDetail_20' ) start [2025-01-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220912', 'tblTempUsageDetail_20' ) end [2025-01-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220912', 'tblTempVendorCDR_20' ) start [2025-01-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220912', 'tblTempVendorCDR_20' ) end [2025-01-11 01:32:19] Production.INFO: ProcessCDR(1,14220912,1,1,2) [2025-01-11 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220912', 'tblTempUsageDetail_20' ) start [2025-01-11 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220912', 'tblTempUsageDetail_20' ) end [2025-01-11 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:32:22] Production.INFO: ==18830== Releasing lock... [2025-01-11 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:33:05 [end_date_ymd] => 2025-01-11 01:33:05 [RateCDR] => 1 ) [2025-01-11 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:33:05' and `end` < '2025-01-11 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:33:18] Production.INFO: count ==418 [2025-01-11 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:33:05 - End Time 2025-01-11 01:33:05 [2025-01-11 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220917', 'tblTempUsageDetail_20' ) start [2025-01-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220917', 'tblTempUsageDetail_20' ) end [2025-01-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220917', 'tblTempVendorCDR_20' ) start [2025-01-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220917', 'tblTempVendorCDR_20' ) end [2025-01-11 01:33:18] Production.INFO: ProcessCDR(1,14220917,1,1,2) [2025-01-11 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220917', 'tblTempUsageDetail_20' ) start [2025-01-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220917', 'tblTempUsageDetail_20' ) end [2025-01-11 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:33:21] Production.INFO: ==18901== Releasing lock... [2025-01-11 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:34:05 [end_date_ymd] => 2025-01-11 01:34:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:34:05' and `end` < '2025-01-11 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-11 01:34:18] Production.INFO: count ==416 [2025-01-11 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:34:05 - End Time 2025-01-11 01:34:05 [2025-01-11 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220922', 'tblTempUsageDetail_20' ) start [2025-01-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220922', 'tblTempUsageDetail_20' ) end [2025-01-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220922', 'tblTempVendorCDR_20' ) start [2025-01-11 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220922', 'tblTempVendorCDR_20' ) end [2025-01-11 01:34:18] Production.INFO: ProcessCDR(1,14220922,1,1,2) [2025-01-11 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220922', 'tblTempUsageDetail_20' ) start [2025-01-11 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220922', 'tblTempUsageDetail_20' ) end [2025-01-11 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:34:21] Production.INFO: ==18979== Releasing lock... [2025-01-11 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:35:05 [end_date_ymd] => 2025-01-11 01:35:05 [RateCDR] => 1 ) [2025-01-11 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:35:05' and `end` < '2025-01-11 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:35:20] Production.INFO: count ==416 [2025-01-11 01:35:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:35:05 - End Time 2025-01-11 01:35:05 [2025-01-11 01:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220927', 'tblTempUsageDetail_20' ) start [2025-01-11 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220927', 'tblTempUsageDetail_20' ) end [2025-01-11 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220927', 'tblTempVendorCDR_20' ) start [2025-01-11 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220927', 'tblTempVendorCDR_20' ) end [2025-01-11 01:35:20] Production.INFO: ProcessCDR(1,14220927,1,1,2) [2025-01-11 01:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220927', 'tblTempUsageDetail_20' ) start [2025-01-11 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220927', 'tblTempUsageDetail_20' ) end [2025-01-11 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:35:23] Production.INFO: ==19049== Releasing lock... [2025-01-11 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:35:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:36:05 [end_date_ymd] => 2025-01-11 01:36:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:36:05' and `end` < '2025-01-11 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-11 01:36:18] Production.INFO: count ==414 [2025-01-11 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:36:05 - End Time 2025-01-11 01:36:05 [2025-01-11 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220932', 'tblTempUsageDetail_20' ) start [2025-01-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220932', 'tblTempUsageDetail_20' ) end [2025-01-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220932', 'tblTempVendorCDR_20' ) start [2025-01-11 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220932', 'tblTempVendorCDR_20' ) end [2025-01-11 01:36:18] Production.INFO: ProcessCDR(1,14220932,1,1,2) [2025-01-11 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220932', 'tblTempUsageDetail_20' ) start [2025-01-11 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220932', 'tblTempUsageDetail_20' ) end [2025-01-11 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:36:21] Production.INFO: ==19120== Releasing lock... [2025-01-11 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:37:05 [end_date_ymd] => 2025-01-11 01:37:05 [RateCDR] => 1 ) [2025-01-11 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:37:05' and `end` < '2025-01-11 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:37:18] Production.INFO: count ==412 [2025-01-11 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:37:05 - End Time 2025-01-11 01:37:05 [2025-01-11 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220937', 'tblTempUsageDetail_20' ) start [2025-01-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220937', 'tblTempUsageDetail_20' ) end [2025-01-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220937', 'tblTempVendorCDR_20' ) start [2025-01-11 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220937', 'tblTempVendorCDR_20' ) end [2025-01-11 01:37:18] Production.INFO: ProcessCDR(1,14220937,1,1,2) [2025-01-11 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220937', 'tblTempUsageDetail_20' ) start [2025-01-11 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220937', 'tblTempUsageDetail_20' ) end [2025-01-11 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:37:21] Production.INFO: ==19190== Releasing lock... [2025-01-11 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:38:04 [end_date_ymd] => 2025-01-11 01:38:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:38:04' and `end` < '2025-01-11 01: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-11 01:38:20] Production.INFO: count ==411 [2025-01-11 01:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:38:04 - End Time 2025-01-11 01:38:04 [2025-01-11 01:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220942', 'tblTempUsageDetail_20' ) start [2025-01-11 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220942', 'tblTempUsageDetail_20' ) end [2025-01-11 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220942', 'tblTempVendorCDR_20' ) start [2025-01-11 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220942', 'tblTempVendorCDR_20' ) end [2025-01-11 01:38:20] Production.INFO: ProcessCDR(1,14220942,1,1,2) [2025-01-11 01:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220942', 'tblTempUsageDetail_20' ) start [2025-01-11 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220942', 'tblTempUsageDetail_20' ) end [2025-01-11 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:38:23] Production.INFO: ==19266== Releasing lock... [2025-01-11 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:38:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:39:04 [end_date_ymd] => 2025-01-11 01:39:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:39:04' and `end` < '2025-01-11 01: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-11 01:39:18] Production.INFO: count ==410 [2025-01-11 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:39:04 - End Time 2025-01-11 01:39:04 [2025-01-11 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220947', 'tblTempUsageDetail_20' ) start [2025-01-11 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220947', 'tblTempUsageDetail_20' ) end [2025-01-11 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220947', 'tblTempVendorCDR_20' ) start [2025-01-11 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220947', 'tblTempVendorCDR_20' ) end [2025-01-11 01:39:19] Production.INFO: ProcessCDR(1,14220947,1,1,2) [2025-01-11 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220947', 'tblTempUsageDetail_20' ) start [2025-01-11 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220947', 'tblTempUsageDetail_20' ) end [2025-01-11 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:39:22] Production.INFO: ==19342== Releasing lock... [2025-01-11 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:40:05 [end_date_ymd] => 2025-01-11 01:40:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:40:05' and `end` < '2025-01-11 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-11 01:40:19] Production.INFO: count ==414 [2025-01-11 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:40:05 - End Time 2025-01-11 01:40:05 [2025-01-11 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220952', 'tblTempUsageDetail_20' ) start [2025-01-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220952', 'tblTempUsageDetail_20' ) end [2025-01-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220952', 'tblTempVendorCDR_20' ) start [2025-01-11 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220952', 'tblTempVendorCDR_20' ) end [2025-01-11 01:40:19] Production.INFO: ProcessCDR(1,14220952,1,1,2) [2025-01-11 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220952', 'tblTempUsageDetail_20' ) start [2025-01-11 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220952', 'tblTempUsageDetail_20' ) end [2025-01-11 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:40:22] Production.INFO: ==19416== Releasing lock... [2025-01-11 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:41:04 [end_date_ymd] => 2025-01-11 01:41:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:41:04' and `end` < '2025-01-11 01: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-11 01:41:18] Production.INFO: count ==416 [2025-01-11 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:41:04 - End Time 2025-01-11 01:41:04 [2025-01-11 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220958', 'tblTempUsageDetail_20' ) start [2025-01-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220958', 'tblTempUsageDetail_20' ) end [2025-01-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220958', 'tblTempVendorCDR_20' ) start [2025-01-11 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220958', 'tblTempVendorCDR_20' ) end [2025-01-11 01:41:18] Production.INFO: ProcessCDR(1,14220958,1,1,2) [2025-01-11 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220958', 'tblTempUsageDetail_20' ) start [2025-01-11 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220958', 'tblTempUsageDetail_20' ) end [2025-01-11 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:41:21] Production.INFO: ==19487== Releasing lock... [2025-01-11 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:42:05 [end_date_ymd] => 2025-01-11 01:42:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:42:05' and `end` < '2025-01-11 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-11 01:42:18] Production.INFO: count ==416 [2025-01-11 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:42:05 - End Time 2025-01-11 01:42:05 [2025-01-11 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220963', 'tblTempUsageDetail_20' ) start [2025-01-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220963', 'tblTempUsageDetail_20' ) end [2025-01-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220963', 'tblTempVendorCDR_20' ) start [2025-01-11 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220963', 'tblTempVendorCDR_20' ) end [2025-01-11 01:42:18] Production.INFO: ProcessCDR(1,14220963,1,1,2) [2025-01-11 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220963', 'tblTempUsageDetail_20' ) start [2025-01-11 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220963', 'tblTempUsageDetail_20' ) end [2025-01-11 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:42:21] Production.INFO: ==19560== Releasing lock... [2025-01-11 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:43:04 [end_date_ymd] => 2025-01-11 01:43:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:43:04' and `end` < '2025-01-11 01: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-11 01:43:18] Production.INFO: count ==416 [2025-01-11 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:43:04 - End Time 2025-01-11 01:43:04 [2025-01-11 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220968', 'tblTempUsageDetail_20' ) start [2025-01-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220968', 'tblTempUsageDetail_20' ) end [2025-01-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220968', 'tblTempVendorCDR_20' ) start [2025-01-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220968', 'tblTempVendorCDR_20' ) end [2025-01-11 01:43:19] Production.INFO: ProcessCDR(1,14220968,1,1,2) [2025-01-11 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220968', 'tblTempUsageDetail_20' ) start [2025-01-11 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220968', 'tblTempUsageDetail_20' ) end [2025-01-11 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:43:22] Production.INFO: ==19630== Releasing lock... [2025-01-11 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:44:05 [end_date_ymd] => 2025-01-11 01:44:05 [RateCDR] => 1 ) [2025-01-11 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:44:05' and `end` < '2025-01-11 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:44:19] Production.INFO: count ==416 [2025-01-11 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:44:05 - End Time 2025-01-11 01:44:05 [2025-01-11 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220973', 'tblTempUsageDetail_20' ) start [2025-01-11 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220973', 'tblTempUsageDetail_20' ) end [2025-01-11 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220973', 'tblTempVendorCDR_20' ) start [2025-01-11 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220973', 'tblTempVendorCDR_20' ) end [2025-01-11 01:44:19] Production.INFO: ProcessCDR(1,14220973,1,1,2) [2025-01-11 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220973', 'tblTempUsageDetail_20' ) start [2025-01-11 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220973', 'tblTempUsageDetail_20' ) end [2025-01-11 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:44:22] Production.INFO: ==19701== Releasing lock... [2025-01-11 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:44:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:45:04 [end_date_ymd] => 2025-01-11 01:45:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:45:04' and `end` < '2025-01-11 01: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-11 01:45:17] Production.INFO: count ==416 [2025-01-11 01:45:17] Production.ERROR: pbx CDR StartTime 2025-01-10 22:45:04 - End Time 2025-01-11 01:45:04 [2025-01-11 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220978', 'tblTempUsageDetail_20' ) start [2025-01-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220978', 'tblTempUsageDetail_20' ) end [2025-01-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220978', 'tblTempVendorCDR_20' ) start [2025-01-11 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220978', 'tblTempVendorCDR_20' ) end [2025-01-11 01:45:17] Production.INFO: ProcessCDR(1,14220978,1,1,2) [2025-01-11 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220978', 'tblTempUsageDetail_20' ) start [2025-01-11 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220978', 'tblTempUsageDetail_20' ) end [2025-01-11 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:45:20] Production.INFO: ==19772== Releasing lock... [2025-01-11 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:45:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:46:05 [end_date_ymd] => 2025-01-11 01:46:05 [RateCDR] => 1 ) [2025-01-11 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:46:05' and `end` < '2025-01-11 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:46:18] Production.INFO: count ==411 [2025-01-11 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:46:05 - End Time 2025-01-11 01:46:05 [2025-01-11 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220983', 'tblTempUsageDetail_20' ) start [2025-01-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220983', 'tblTempUsageDetail_20' ) end [2025-01-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220983', 'tblTempVendorCDR_20' ) start [2025-01-11 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220983', 'tblTempVendorCDR_20' ) end [2025-01-11 01:46:18] Production.INFO: ProcessCDR(1,14220983,1,1,2) [2025-01-11 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220983', 'tblTempUsageDetail_20' ) start [2025-01-11 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220983', 'tblTempUsageDetail_20' ) end [2025-01-11 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:46:21] Production.INFO: ==19843== Releasing lock... [2025-01-11 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:46:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:47:05 [end_date_ymd] => 2025-01-11 01:47:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:47:05' and `end` < '2025-01-11 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-11 01:47:20] Production.INFO: count ==401 [2025-01-11 01:47:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:47:05 - End Time 2025-01-11 01:47:05 [2025-01-11 01:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220988', 'tblTempUsageDetail_20' ) start [2025-01-11 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220988', 'tblTempUsageDetail_20' ) end [2025-01-11 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220988', 'tblTempVendorCDR_20' ) start [2025-01-11 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220988', 'tblTempVendorCDR_20' ) end [2025-01-11 01:47:20] Production.INFO: ProcessCDR(1,14220988,1,1,2) [2025-01-11 01:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220988', 'tblTempUsageDetail_20' ) start [2025-01-11 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220988', 'tblTempUsageDetail_20' ) end [2025-01-11 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:47:23] Production.INFO: ==19958== Releasing lock... [2025-01-11 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:47:23] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:48:04 [end_date_ymd] => 2025-01-11 01:48:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:48:04' and `end` < '2025-01-11 01: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-11 01:48:18] Production.INFO: count ==389 [2025-01-11 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:48:04 - End Time 2025-01-11 01:48:04 [2025-01-11 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220993', 'tblTempUsageDetail_20' ) start [2025-01-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220993', 'tblTempUsageDetail_20' ) end [2025-01-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220993', 'tblTempVendorCDR_20' ) start [2025-01-11 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220993', 'tblTempVendorCDR_20' ) end [2025-01-11 01:48:18] Production.INFO: ProcessCDR(1,14220993,1,1,2) [2025-01-11 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220993', 'tblTempUsageDetail_20' ) start [2025-01-11 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220993', 'tblTempUsageDetail_20' ) end [2025-01-11 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:48:21] Production.INFO: ==20032== Releasing lock... [2025-01-11 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:48:21] Production.INFO: 31 MB #Memory Used# [2025-01-11 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:49:05 [end_date_ymd] => 2025-01-11 01:49:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:49:05' and `end` < '2025-01-11 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-11 01:49:19] Production.INFO: count ==379 [2025-01-11 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:49:05 - End Time 2025-01-11 01:49:05 [2025-01-11 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220998', 'tblTempUsageDetail_20' ) start [2025-01-11 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220998', 'tblTempUsageDetail_20' ) end [2025-01-11 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220998', 'tblTempVendorCDR_20' ) start [2025-01-11 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220998', 'tblTempVendorCDR_20' ) end [2025-01-11 01:49:19] Production.INFO: ProcessCDR(1,14220998,1,1,2) [2025-01-11 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220998', 'tblTempUsageDetail_20' ) start [2025-01-11 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220998', 'tblTempUsageDetail_20' ) end [2025-01-11 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:49:22] Production.INFO: ==20101== Releasing lock... [2025-01-11 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:50:05 [end_date_ymd] => 2025-01-11 01:50:05 [RateCDR] => 1 ) [2025-01-11 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:50:05' and `end` < '2025-01-11 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:50:18] Production.INFO: count ==385 [2025-01-11 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:50:05 - End Time 2025-01-11 01:50:05 [2025-01-11 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221004', 'tblTempUsageDetail_20' ) start [2025-01-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221004', 'tblTempUsageDetail_20' ) end [2025-01-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221004', 'tblTempVendorCDR_20' ) start [2025-01-11 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221004', 'tblTempVendorCDR_20' ) end [2025-01-11 01:50:18] Production.INFO: ProcessCDR(1,14221004,1,1,2) [2025-01-11 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221004', 'tblTempUsageDetail_20' ) start [2025-01-11 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221004', 'tblTempUsageDetail_20' ) end [2025-01-11 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:50:22] Production.INFO: ==20193== Releasing lock... [2025-01-11 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:51:05 [end_date_ymd] => 2025-01-11 01:51:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:51:05' and `end` < '2025-01-11 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-11 01:51:18] Production.INFO: count ==403 [2025-01-11 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:51:05 - End Time 2025-01-11 01:51:05 [2025-01-11 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221009', 'tblTempUsageDetail_20' ) start [2025-01-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221009', 'tblTempUsageDetail_20' ) end [2025-01-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221009', 'tblTempVendorCDR_20' ) start [2025-01-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221009', 'tblTempVendorCDR_20' ) end [2025-01-11 01:51:18] Production.INFO: ProcessCDR(1,14221009,1,1,2) [2025-01-11 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221009', 'tblTempUsageDetail_20' ) start [2025-01-11 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221009', 'tblTempUsageDetail_20' ) end [2025-01-11 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:51:21] Production.INFO: ==20315== Releasing lock... [2025-01-11 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:52:06 [end_date_ymd] => 2025-01-11 01:52:06 [RateCDR] => 1 ) [2025-01-11 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:52:06' and `end` < '2025-01-11 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:52:19] Production.INFO: count ==403 [2025-01-11 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:52:06 - End Time 2025-01-11 01:52:06 [2025-01-11 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221014', 'tblTempUsageDetail_20' ) start [2025-01-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221014', 'tblTempUsageDetail_20' ) end [2025-01-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221014', 'tblTempVendorCDR_20' ) start [2025-01-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221014', 'tblTempVendorCDR_20' ) end [2025-01-11 01:52:19] Production.INFO: ProcessCDR(1,14221014,1,1,2) [2025-01-11 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221014', 'tblTempUsageDetail_20' ) start [2025-01-11 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221014', 'tblTempUsageDetail_20' ) end [2025-01-11 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:52:23] Production.INFO: ==20403== Releasing lock... [2025-01-11 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:53:04 [end_date_ymd] => 2025-01-11 01:53:04 [RateCDR] => 1 ) [2025-01-11 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-10 22:53:04' and `end` < '2025-01-11 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-11 01:53:19] Production.INFO: count ==405 [2025-01-11 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 22:53:04 - End Time 2025-01-11 01:53:04 [2025-01-11 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221019', 'tblTempUsageDetail_20' ) start [2025-01-11 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221019', 'tblTempUsageDetail_20' ) end [2025-01-11 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221019', 'tblTempVendorCDR_20' ) start [2025-01-11 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221019', 'tblTempVendorCDR_20' ) end [2025-01-11 01:53:19] Production.INFO: ProcessCDR(1,14221019,1,1,2) [2025-01-11 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221019', 'tblTempUsageDetail_20' ) start [2025-01-11 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221019', 'tblTempUsageDetail_20' ) end [2025-01-11 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:53:24] Production.INFO: ==20473== Releasing lock... [2025-01-11 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:53:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:54:05 [end_date_ymd] => 2025-01-11 01:54:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:54:05' and `end` < '2025-01-11 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-11 01:54:18] Production.INFO: count ==405 [2025-01-11 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:54:05 - End Time 2025-01-11 01:54:05 [2025-01-11 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221024', 'tblTempUsageDetail_20' ) start [2025-01-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221024', 'tblTempUsageDetail_20' ) end [2025-01-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221024', 'tblTempVendorCDR_20' ) start [2025-01-11 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221024', 'tblTempVendorCDR_20' ) end [2025-01-11 01:54:18] Production.INFO: ProcessCDR(1,14221024,1,1,2) [2025-01-11 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221024', 'tblTempUsageDetail_20' ) start [2025-01-11 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221024', 'tblTempUsageDetail_20' ) end [2025-01-11 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:54:23] Production.INFO: ==20545== Releasing lock... [2025-01-11 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:55:05 [end_date_ymd] => 2025-01-11 01:55:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:55:05' and `end` < '2025-01-11 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-11 01:55:18] Production.INFO: count ==404 [2025-01-11 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:55:05 - End Time 2025-01-11 01:55:05 [2025-01-11 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221029', 'tblTempUsageDetail_20' ) start [2025-01-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221029', 'tblTempUsageDetail_20' ) end [2025-01-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221029', 'tblTempVendorCDR_20' ) start [2025-01-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221029', 'tblTempVendorCDR_20' ) end [2025-01-11 01:55:18] Production.INFO: ProcessCDR(1,14221029,1,1,2) [2025-01-11 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221029', 'tblTempUsageDetail_20' ) start [2025-01-11 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221029', 'tblTempUsageDetail_20' ) end [2025-01-11 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:55:21] Production.INFO: ==20616== Releasing lock... [2025-01-11 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:56:04 [end_date_ymd] => 2025-01-11 01:56:04 [RateCDR] => 1 ) [2025-01-11 01: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 22:56:04' and `end` < '2025-01-11 01: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-11 01:56:18] Production.INFO: count ==404 [2025-01-11 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:56:04 - End Time 2025-01-11 01:56:04 [2025-01-11 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221034', 'tblTempUsageDetail_20' ) start [2025-01-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221034', 'tblTempUsageDetail_20' ) end [2025-01-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221034', 'tblTempVendorCDR_20' ) start [2025-01-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221034', 'tblTempVendorCDR_20' ) end [2025-01-11 01:56:18] Production.INFO: ProcessCDR(1,14221034,1,1,2) [2025-01-11 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221034', 'tblTempUsageDetail_20' ) start [2025-01-11 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221034', 'tblTempUsageDetail_20' ) end [2025-01-11 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:56:21] Production.INFO: ==20689== Releasing lock... [2025-01-11 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:57:05 [end_date_ymd] => 2025-01-11 01:57:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:57:05' and `end` < '2025-01-11 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-11 01:57:18] Production.INFO: count ==404 [2025-01-11 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:57:05 - End Time 2025-01-11 01:57:05 [2025-01-11 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221039', 'tblTempUsageDetail_20' ) start [2025-01-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221039', 'tblTempUsageDetail_20' ) end [2025-01-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221039', 'tblTempVendorCDR_20' ) start [2025-01-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221039', 'tblTempVendorCDR_20' ) end [2025-01-11 01:57:18] Production.INFO: ProcessCDR(1,14221039,1,1,2) [2025-01-11 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221039', 'tblTempUsageDetail_20' ) start [2025-01-11 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221039', 'tblTempUsageDetail_20' ) end [2025-01-11 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:57:21] Production.INFO: ==20762== Releasing lock... [2025-01-11 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:58:05 [end_date_ymd] => 2025-01-11 01:58:05 [RateCDR] => 1 ) [2025-01-11 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-10 22:58:05' and `end` < '2025-01-11 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-11 01:58:18] Production.INFO: count ==404 [2025-01-11 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 22:58:05 - End Time 2025-01-11 01:58:05 [2025-01-11 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221044', 'tblTempUsageDetail_20' ) start [2025-01-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221044', 'tblTempUsageDetail_20' ) end [2025-01-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221044', 'tblTempVendorCDR_20' ) start [2025-01-11 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221044', 'tblTempVendorCDR_20' ) end [2025-01-11 01:58:18] Production.INFO: ProcessCDR(1,14221044,1,1,2) [2025-01-11 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221044', 'tblTempUsageDetail_20' ) start [2025-01-11 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221044', 'tblTempUsageDetail_20' ) end [2025-01-11 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:58:21] Production.INFO: ==20834== Releasing lock... [2025-01-11 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 22:59:05 [end_date_ymd] => 2025-01-11 01:59:05 [RateCDR] => 1 ) [2025-01-11 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 22:59:05' and `end` < '2025-01-11 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 01:59:19] Production.INFO: count ==404 [2025-01-11 01:59:20] Production.ERROR: pbx CDR StartTime 2025-01-10 22:59:05 - End Time 2025-01-11 01:59:05 [2025-01-11 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221049', 'tblTempUsageDetail_20' ) start [2025-01-11 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221049', 'tblTempUsageDetail_20' ) end [2025-01-11 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221049', 'tblTempVendorCDR_20' ) start [2025-01-11 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221049', 'tblTempVendorCDR_20' ) end [2025-01-11 01:59:20] Production.INFO: ProcessCDR(1,14221049,1,1,2) [2025-01-11 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221049', 'tblTempUsageDetail_20' ) start [2025-01-11 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221049', 'tblTempUsageDetail_20' ) end [2025-01-11 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 01:59:23] Production.INFO: ==20905== Releasing lock... [2025-01-11 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 01:59:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:00:06 [end_date_ymd] => 2025-01-11 02:00:06 [RateCDR] => 1 ) [2025-01-11 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-10 23:00:06' and `end` < '2025-01-11 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-11 02:00:19] Production.INFO: count ==413 [2025-01-11 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-10 23:00:06 - End Time 2025-01-11 02:00:06 [2025-01-11 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221055', 'tblTempUsageDetail_20' ) start [2025-01-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221055', 'tblTempUsageDetail_20' ) end [2025-01-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221055', 'tblTempVendorCDR_20' ) start [2025-01-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221055', 'tblTempVendorCDR_20' ) end [2025-01-11 02:00:20] Production.INFO: ProcessCDR(1,14221055,1,1,2) [2025-01-11 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221055', 'tblTempUsageDetail_20' ) start [2025-01-11 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221055', 'tblTempUsageDetail_20' ) end [2025-01-11 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:00:23] Production.INFO: ==20983== Releasing lock... [2025-01-11 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:01:04 [end_date_ymd] => 2025-01-11 02:01:04 [RateCDR] => 1 ) [2025-01-11 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-10 23:01:04' and `end` < '2025-01-11 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-11 02:01:17] Production.INFO: count ==425 [2025-01-11 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-10 23:01:04 - End Time 2025-01-11 02:01:04 [2025-01-11 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221060', 'tblTempUsageDetail_20' ) start [2025-01-11 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221060', 'tblTempUsageDetail_20' ) end [2025-01-11 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221060', 'tblTempVendorCDR_20' ) start [2025-01-11 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221060', 'tblTempVendorCDR_20' ) end [2025-01-11 02:01:17] Production.INFO: ProcessCDR(1,14221060,1,1,2) [2025-01-11 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221060', 'tblTempUsageDetail_20' ) start [2025-01-11 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221060', 'tblTempUsageDetail_20' ) end [2025-01-11 02:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:01:20] Production.INFO: ==21164== Releasing lock... [2025-01-11 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:02:05 [end_date_ymd] => 2025-01-11 02:02:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:02:05' and `end` < '2025-01-11 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-11 02:02:19] Production.INFO: count ==425 [2025-01-11 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:02:05 - End Time 2025-01-11 02:02:05 [2025-01-11 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221065', 'tblTempUsageDetail_20' ) start [2025-01-11 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221065', 'tblTempUsageDetail_20' ) end [2025-01-11 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221065', 'tblTempVendorCDR_20' ) start [2025-01-11 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221065', 'tblTempVendorCDR_20' ) end [2025-01-11 02:02:19] Production.INFO: ProcessCDR(1,14221065,1,1,2) [2025-01-11 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221065', 'tblTempUsageDetail_20' ) start [2025-01-11 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221065', 'tblTempUsageDetail_20' ) end [2025-01-11 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:02:23] Production.INFO: ==21276== Releasing lock... [2025-01-11 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:03:04 [end_date_ymd] => 2025-01-11 02:03:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:03:04' and `end` < '2025-01-11 02: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-11 02:03:19] Production.INFO: count ==426 [2025-01-11 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:03:04 - End Time 2025-01-11 02:03:04 [2025-01-11 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221070', 'tblTempUsageDetail_20' ) start [2025-01-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221070', 'tblTempUsageDetail_20' ) end [2025-01-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221070', 'tblTempVendorCDR_20' ) start [2025-01-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221070', 'tblTempVendorCDR_20' ) end [2025-01-11 02:03:19] Production.INFO: ProcessCDR(1,14221070,1,1,2) [2025-01-11 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221070', 'tblTempUsageDetail_20' ) start [2025-01-11 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221070', 'tblTempUsageDetail_20' ) end [2025-01-11 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:03:24] Production.INFO: ==21351== Releasing lock... [2025-01-11 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:03:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:04:05 [end_date_ymd] => 2025-01-11 02:04:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:04:05' and `end` < '2025-01-11 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-11 02:04:19] Production.INFO: count ==428 [2025-01-11 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:04:05 - End Time 2025-01-11 02:04:05 [2025-01-11 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221075', 'tblTempUsageDetail_20' ) start [2025-01-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221075', 'tblTempUsageDetail_20' ) end [2025-01-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221075', 'tblTempVendorCDR_20' ) start [2025-01-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221075', 'tblTempVendorCDR_20' ) end [2025-01-11 02:04:19] Production.INFO: ProcessCDR(1,14221075,1,1,2) [2025-01-11 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221075', 'tblTempUsageDetail_20' ) start [2025-01-11 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221075', 'tblTempUsageDetail_20' ) end [2025-01-11 02:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:04:24] Production.INFO: ==21422== Releasing lock... [2025-01-11 02:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:04:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:05:05 [end_date_ymd] => 2025-01-11 02:05:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:05:05' and `end` < '2025-01-11 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-11 02:05:18] Production.INFO: count ==430 [2025-01-11 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:05:05 - End Time 2025-01-11 02:05:05 [2025-01-11 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221080', 'tblTempUsageDetail_20' ) start [2025-01-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221080', 'tblTempUsageDetail_20' ) end [2025-01-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221080', 'tblTempVendorCDR_20' ) start [2025-01-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221080', 'tblTempVendorCDR_20' ) end [2025-01-11 02:05:18] Production.INFO: ProcessCDR(1,14221080,1,1,2) [2025-01-11 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221080', 'tblTempUsageDetail_20' ) start [2025-01-11 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221080', 'tblTempUsageDetail_20' ) end [2025-01-11 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:05:23] Production.INFO: ==21492== Releasing lock... [2025-01-11 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:06:05 [end_date_ymd] => 2025-01-11 02:06:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:06:05' and `end` < '2025-01-11 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-11 02:06:18] Production.INFO: count ==430 [2025-01-11 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:06:05 - End Time 2025-01-11 02:06:05 [2025-01-11 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221085', 'tblTempUsageDetail_20' ) start [2025-01-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221085', 'tblTempUsageDetail_20' ) end [2025-01-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221085', 'tblTempVendorCDR_20' ) start [2025-01-11 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221085', 'tblTempVendorCDR_20' ) end [2025-01-11 02:06:18] Production.INFO: ProcessCDR(1,14221085,1,1,2) [2025-01-11 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221085', 'tblTempUsageDetail_20' ) start [2025-01-11 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221085', 'tblTempUsageDetail_20' ) end [2025-01-11 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:06:22] Production.INFO: ==21562== Releasing lock... [2025-01-11 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:06:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:07:05 [end_date_ymd] => 2025-01-11 02:07:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:07:05' and `end` < '2025-01-11 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-11 02:07:18] Production.INFO: count ==433 [2025-01-11 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:07:05 - End Time 2025-01-11 02:07:05 [2025-01-11 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221090', 'tblTempUsageDetail_20' ) start [2025-01-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221090', 'tblTempUsageDetail_20' ) end [2025-01-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221090', 'tblTempVendorCDR_20' ) start [2025-01-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221090', 'tblTempVendorCDR_20' ) end [2025-01-11 02:07:18] Production.INFO: ProcessCDR(1,14221090,1,1,2) [2025-01-11 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221090', 'tblTempUsageDetail_20' ) start [2025-01-11 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221090', 'tblTempUsageDetail_20' ) end [2025-01-11 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:07:21] Production.INFO: ==21632== Releasing lock... [2025-01-11 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:08:05 [end_date_ymd] => 2025-01-11 02:08:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:08:05' and `end` < '2025-01-11 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-11 02:08:19] Production.INFO: count ==429 [2025-01-11 02:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:08:05 - End Time 2025-01-11 02:08:05 [2025-01-11 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221095', 'tblTempUsageDetail_20' ) start [2025-01-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221095', 'tblTempUsageDetail_20' ) end [2025-01-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221095', 'tblTempVendorCDR_20' ) start [2025-01-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221095', 'tblTempVendorCDR_20' ) end [2025-01-11 02:08:19] Production.INFO: ProcessCDR(1,14221095,1,1,2) [2025-01-11 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221095', 'tblTempUsageDetail_20' ) start [2025-01-11 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221095', 'tblTempUsageDetail_20' ) end [2025-01-11 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:08:22] Production.INFO: ==21702== Releasing lock... [2025-01-11 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:09:06 [end_date_ymd] => 2025-01-11 02:09:06 [RateCDR] => 1 ) [2025-01-11 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:09:06' and `end` < '2025-01-11 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:09:19] Production.INFO: count ==428 [2025-01-11 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:09:06 - End Time 2025-01-11 02:09:06 [2025-01-11 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221100', 'tblTempUsageDetail_20' ) start [2025-01-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221100', 'tblTempUsageDetail_20' ) end [2025-01-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221100', 'tblTempVendorCDR_20' ) start [2025-01-11 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221100', 'tblTempVendorCDR_20' ) end [2025-01-11 02:09:19] Production.INFO: ProcessCDR(1,14221100,1,1,2) [2025-01-11 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221100', 'tblTempUsageDetail_20' ) start [2025-01-11 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221100', 'tblTempUsageDetail_20' ) end [2025-01-11 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:09:23] Production.INFO: ==21776== Releasing lock... [2025-01-11 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:09:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:10:05 [end_date_ymd] => 2025-01-11 02:10:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:10:05' and `end` < '2025-01-11 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-11 02:10:19] Production.INFO: count ==428 [2025-01-11 02:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:10:05 - End Time 2025-01-11 02:10:05 [2025-01-11 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221106', 'tblTempUsageDetail_20' ) start [2025-01-11 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221106', 'tblTempUsageDetail_20' ) end [2025-01-11 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221106', 'tblTempVendorCDR_20' ) start [2025-01-11 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221106', 'tblTempVendorCDR_20' ) end [2025-01-11 02:10:19] Production.INFO: ProcessCDR(1,14221106,1,1,2) [2025-01-11 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221106', 'tblTempUsageDetail_20' ) start [2025-01-11 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221106', 'tblTempUsageDetail_20' ) end [2025-01-11 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:10:22] Production.INFO: ==21848== Releasing lock... [2025-01-11 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:11:05 [end_date_ymd] => 2025-01-11 02:11:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:11:05' and `end` < '2025-01-11 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-11 02:11:18] Production.INFO: count ==427 [2025-01-11 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:11:05 - End Time 2025-01-11 02:11:05 [2025-01-11 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221111', 'tblTempUsageDetail_20' ) start [2025-01-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221111', 'tblTempUsageDetail_20' ) end [2025-01-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221111', 'tblTempVendorCDR_20' ) start [2025-01-11 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221111', 'tblTempVendorCDR_20' ) end [2025-01-11 02:11:18] Production.INFO: ProcessCDR(1,14221111,1,1,2) [2025-01-11 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221111', 'tblTempUsageDetail_20' ) start [2025-01-11 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221111', 'tblTempUsageDetail_20' ) end [2025-01-11 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:11:22] Production.INFO: ==21922== Releasing lock... [2025-01-11 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:12:04 [end_date_ymd] => 2025-01-11 02:12:04 [RateCDR] => 1 ) [2025-01-11 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-10 23:12:04' and `end` < '2025-01-11 02: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-11 02:12:18] Production.INFO: count ==427 [2025-01-11 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:12:04 - End Time 2025-01-11 02:12:04 [2025-01-11 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221116', 'tblTempUsageDetail_20' ) start [2025-01-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221116', 'tblTempUsageDetail_20' ) end [2025-01-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221116', 'tblTempVendorCDR_20' ) start [2025-01-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221116', 'tblTempVendorCDR_20' ) end [2025-01-11 02:12:18] Production.INFO: ProcessCDR(1,14221116,1,1,2) [2025-01-11 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221116', 'tblTempUsageDetail_20' ) start [2025-01-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221116', 'tblTempUsageDetail_20' ) end [2025-01-11 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:12:21] Production.INFO: ==21992== Releasing lock... [2025-01-11 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:13:05 [end_date_ymd] => 2025-01-11 02:13:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:13:05' and `end` < '2025-01-11 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-11 02:13:18] Production.INFO: count ==428 [2025-01-11 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:13:05 - End Time 2025-01-11 02:13:05 [2025-01-11 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221121', 'tblTempUsageDetail_20' ) start [2025-01-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221121', 'tblTempUsageDetail_20' ) end [2025-01-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221121', 'tblTempVendorCDR_20' ) start [2025-01-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221121', 'tblTempVendorCDR_20' ) end [2025-01-11 02:13:18] Production.INFO: ProcessCDR(1,14221121,1,1,2) [2025-01-11 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221121', 'tblTempUsageDetail_20' ) start [2025-01-11 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221121', 'tblTempUsageDetail_20' ) end [2025-01-11 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:13:23] Production.INFO: ==22065== Releasing lock... [2025-01-11 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:14:05 [end_date_ymd] => 2025-01-11 02:14:05 [RateCDR] => 1 ) [2025-01-11 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:14:05' and `end` < '2025-01-11 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:14:19] Production.INFO: count ==428 [2025-01-11 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:14:05 - End Time 2025-01-11 02:14:05 [2025-01-11 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221126', 'tblTempUsageDetail_20' ) start [2025-01-11 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221126', 'tblTempUsageDetail_20' ) end [2025-01-11 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221126', 'tblTempVendorCDR_20' ) start [2025-01-11 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221126', 'tblTempVendorCDR_20' ) end [2025-01-11 02:14:19] Production.INFO: ProcessCDR(1,14221126,1,1,2) [2025-01-11 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221126', 'tblTempUsageDetail_20' ) start [2025-01-11 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221126', 'tblTempUsageDetail_20' ) end [2025-01-11 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:14:22] Production.INFO: ==22135== Releasing lock... [2025-01-11 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:15:05 [end_date_ymd] => 2025-01-11 02:15:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:15:05' and `end` < '2025-01-11 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-11 02:15:18] Production.INFO: count ==428 [2025-01-11 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:15:05 - End Time 2025-01-11 02:15:05 [2025-01-11 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221131', 'tblTempUsageDetail_20' ) start [2025-01-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221131', 'tblTempUsageDetail_20' ) end [2025-01-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221131', 'tblTempVendorCDR_20' ) start [2025-01-11 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221131', 'tblTempVendorCDR_20' ) end [2025-01-11 02:15:18] Production.INFO: ProcessCDR(1,14221131,1,1,2) [2025-01-11 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221131', 'tblTempUsageDetail_20' ) start [2025-01-11 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221131', 'tblTempUsageDetail_20' ) end [2025-01-11 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:15:21] Production.INFO: ==22206== Releasing lock... [2025-01-11 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:16:05 [end_date_ymd] => 2025-01-11 02:16:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:16:05' and `end` < '2025-01-11 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-11 02:16:19] Production.INFO: count ==428 [2025-01-11 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:16:05 - End Time 2025-01-11 02:16:05 [2025-01-11 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221136', 'tblTempUsageDetail_20' ) start [2025-01-11 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221136', 'tblTempUsageDetail_20' ) end [2025-01-11 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221136', 'tblTempVendorCDR_20' ) start [2025-01-11 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221136', 'tblTempVendorCDR_20' ) end [2025-01-11 02:16:19] Production.INFO: ProcessCDR(1,14221136,1,1,2) [2025-01-11 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221136', 'tblTempUsageDetail_20' ) start [2025-01-11 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221136', 'tblTempUsageDetail_20' ) end [2025-01-11 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:16:22] Production.INFO: ==22276== Releasing lock... [2025-01-11 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:17:04 [end_date_ymd] => 2025-01-11 02:17:04 [RateCDR] => 1 ) [2025-01-11 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-10 23:17:04' and `end` < '2025-01-11 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-11 02:17:19] Production.INFO: count ==428 [2025-01-11 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:17:04 - End Time 2025-01-11 02:17:04 [2025-01-11 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221141', 'tblTempUsageDetail_20' ) start [2025-01-11 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221141', 'tblTempUsageDetail_20' ) end [2025-01-11 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221141', 'tblTempVendorCDR_20' ) start [2025-01-11 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221141', 'tblTempVendorCDR_20' ) end [2025-01-11 02:17:19] Production.INFO: ProcessCDR(1,14221141,1,1,2) [2025-01-11 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221141', 'tblTempUsageDetail_20' ) start [2025-01-11 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221141', 'tblTempUsageDetail_20' ) end [2025-01-11 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:17:23] Production.INFO: ==22346== Releasing lock... [2025-01-11 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:18:05 [end_date_ymd] => 2025-01-11 02:18:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:18:05' and `end` < '2025-01-11 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-11 02:18:20] Production.INFO: count ==427 [2025-01-11 02:18:20] Production.ERROR: pbx CDR StartTime 2025-01-10 23:18:05 - End Time 2025-01-11 02:18:05 [2025-01-11 02:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221146', 'tblTempUsageDetail_20' ) start [2025-01-11 02:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221146', 'tblTempUsageDetail_20' ) end [2025-01-11 02:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221146', 'tblTempVendorCDR_20' ) start [2025-01-11 02:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221146', 'tblTempVendorCDR_20' ) end [2025-01-11 02:18:21] Production.INFO: ProcessCDR(1,14221146,1,1,2) [2025-01-11 02:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221146', 'tblTempUsageDetail_20' ) start [2025-01-11 02:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221146', 'tblTempUsageDetail_20' ) end [2025-01-11 02:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:18:25] Production.INFO: ==22457== Releasing lock... [2025-01-11 02:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:18:25] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:19:05 [end_date_ymd] => 2025-01-11 02:19:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:19:05' and `end` < '2025-01-11 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-11 02:19:18] Production.INFO: count ==428 [2025-01-11 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:19:05 - End Time 2025-01-11 02:19:05 [2025-01-11 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221151', 'tblTempUsageDetail_20' ) start [2025-01-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221151', 'tblTempUsageDetail_20' ) end [2025-01-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221151', 'tblTempVendorCDR_20' ) start [2025-01-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221151', 'tblTempVendorCDR_20' ) end [2025-01-11 02:19:18] Production.INFO: ProcessCDR(1,14221151,1,1,2) [2025-01-11 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221151', 'tblTempUsageDetail_20' ) start [2025-01-11 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221151', 'tblTempUsageDetail_20' ) end [2025-01-11 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:19:21] Production.INFO: ==22528== Releasing lock... [2025-01-11 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:20:05 [end_date_ymd] => 2025-01-11 02:20:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:20:05' and `end` < '2025-01-11 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-11 02:20:19] Production.INFO: count ==434 [2025-01-11 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:20:05 - End Time 2025-01-11 02:20:05 [2025-01-11 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221157', 'tblTempUsageDetail_20' ) start [2025-01-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221157', 'tblTempUsageDetail_20' ) end [2025-01-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221157', 'tblTempVendorCDR_20' ) start [2025-01-11 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221157', 'tblTempVendorCDR_20' ) end [2025-01-11 02:20:19] Production.INFO: ProcessCDR(1,14221157,1,1,2) [2025-01-11 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221157', 'tblTempUsageDetail_20' ) start [2025-01-11 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221157', 'tblTempUsageDetail_20' ) end [2025-01-11 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:20:22] Production.INFO: ==22603== Releasing lock... [2025-01-11 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:21:05 [end_date_ymd] => 2025-01-11 02:21:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:21:05' and `end` < '2025-01-11 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-11 02:21:18] Production.INFO: count ==439 [2025-01-11 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:21:05 - End Time 2025-01-11 02:21:05 [2025-01-11 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221162', 'tblTempUsageDetail_20' ) start [2025-01-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221162', 'tblTempUsageDetail_20' ) end [2025-01-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221162', 'tblTempVendorCDR_20' ) start [2025-01-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221162', 'tblTempVendorCDR_20' ) end [2025-01-11 02:21:18] Production.INFO: ProcessCDR(1,14221162,1,1,2) [2025-01-11 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221162', 'tblTempUsageDetail_20' ) start [2025-01-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221162', 'tblTempUsageDetail_20' ) end [2025-01-11 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:21:21] Production.INFO: ==22677== Releasing lock... [2025-01-11 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:22:05 [end_date_ymd] => 2025-01-11 02:22:05 [RateCDR] => 1 ) [2025-01-11 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:22:05' and `end` < '2025-01-11 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:22:19] Production.INFO: count ==439 [2025-01-11 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:22:05 - End Time 2025-01-11 02:22:05 [2025-01-11 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221167', 'tblTempUsageDetail_20' ) start [2025-01-11 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221167', 'tblTempUsageDetail_20' ) end [2025-01-11 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221167', 'tblTempVendorCDR_20' ) start [2025-01-11 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221167', 'tblTempVendorCDR_20' ) end [2025-01-11 02:22:19] Production.INFO: ProcessCDR(1,14221167,1,1,2) [2025-01-11 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221167', 'tblTempUsageDetail_20' ) start [2025-01-11 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221167', 'tblTempUsageDetail_20' ) end [2025-01-11 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:22:22] Production.INFO: ==22749== Releasing lock... [2025-01-11 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:23:05 [end_date_ymd] => 2025-01-11 02:23:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:23:05' and `end` < '2025-01-11 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-11 02:23:20] Production.INFO: count ==437 [2025-01-11 02:23:20] Production.ERROR: pbx CDR StartTime 2025-01-10 23:23:05 - End Time 2025-01-11 02:23:05 [2025-01-11 02:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221172', 'tblTempUsageDetail_20' ) start [2025-01-11 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221172', 'tblTempUsageDetail_20' ) end [2025-01-11 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221172', 'tblTempVendorCDR_20' ) start [2025-01-11 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221172', 'tblTempVendorCDR_20' ) end [2025-01-11 02:23:20] Production.INFO: ProcessCDR(1,14221172,1,1,2) [2025-01-11 02:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221172', 'tblTempUsageDetail_20' ) start [2025-01-11 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221172', 'tblTempUsageDetail_20' ) end [2025-01-11 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:23:23] Production.INFO: ==22821== Releasing lock... [2025-01-11 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:23:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:24:05 [end_date_ymd] => 2025-01-11 02:24:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:24:05' and `end` < '2025-01-11 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-11 02:24:19] Production.INFO: count ==440 [2025-01-11 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:24:05 - End Time 2025-01-11 02:24:05 [2025-01-11 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221177', 'tblTempUsageDetail_20' ) start [2025-01-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221177', 'tblTempUsageDetail_20' ) end [2025-01-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221177', 'tblTempVendorCDR_20' ) start [2025-01-11 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221177', 'tblTempVendorCDR_20' ) end [2025-01-11 02:24:19] Production.INFO: ProcessCDR(1,14221177,1,1,2) [2025-01-11 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221177', 'tblTempUsageDetail_20' ) start [2025-01-11 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221177', 'tblTempUsageDetail_20' ) end [2025-01-11 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:24:22] Production.INFO: ==22894== Releasing lock... [2025-01-11 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:25:05 [end_date_ymd] => 2025-01-11 02:25:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:25:05' and `end` < '2025-01-11 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-11 02:25:19] Production.INFO: count ==440 [2025-01-11 02:25:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:25:05 - End Time 2025-01-11 02:25:05 [2025-01-11 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221182', 'tblTempUsageDetail_20' ) start [2025-01-11 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221182', 'tblTempUsageDetail_20' ) end [2025-01-11 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221182', 'tblTempVendorCDR_20' ) start [2025-01-11 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221182', 'tblTempVendorCDR_20' ) end [2025-01-11 02:25:19] Production.INFO: ProcessCDR(1,14221182,1,1,2) [2025-01-11 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221182', 'tblTempUsageDetail_20' ) start [2025-01-11 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221182', 'tblTempUsageDetail_20' ) end [2025-01-11 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:25:22] Production.INFO: ==22964== Releasing lock... [2025-01-11 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:26:05 [end_date_ymd] => 2025-01-11 02:26:05 [RateCDR] => 1 ) [2025-01-11 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:26:05' and `end` < '2025-01-11 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:26:19] Production.INFO: count ==438 [2025-01-11 02:26:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:26:05 - End Time 2025-01-11 02:26:05 [2025-01-11 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221187', 'tblTempUsageDetail_20' ) start [2025-01-11 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221187', 'tblTempUsageDetail_20' ) end [2025-01-11 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221187', 'tblTempVendorCDR_20' ) start [2025-01-11 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221187', 'tblTempVendorCDR_20' ) end [2025-01-11 02:26:19] Production.INFO: ProcessCDR(1,14221187,1,1,2) [2025-01-11 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221187', 'tblTempUsageDetail_20' ) start [2025-01-11 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221187', 'tblTempUsageDetail_20' ) end [2025-01-11 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:26:23] Production.INFO: ==23034== Releasing lock... [2025-01-11 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:26:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:27:05 [end_date_ymd] => 2025-01-11 02:27:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:27:05' and `end` < '2025-01-11 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-11 02:27:20] Production.INFO: count ==437 [2025-01-11 02:27:20] Production.ERROR: pbx CDR StartTime 2025-01-10 23:27:05 - End Time 2025-01-11 02:27:05 [2025-01-11 02:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221192', 'tblTempUsageDetail_20' ) start [2025-01-11 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221192', 'tblTempUsageDetail_20' ) end [2025-01-11 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221192', 'tblTempVendorCDR_20' ) start [2025-01-11 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221192', 'tblTempVendorCDR_20' ) end [2025-01-11 02:27:20] Production.INFO: ProcessCDR(1,14221192,1,1,2) [2025-01-11 02:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221192', 'tblTempUsageDetail_20' ) start [2025-01-11 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221192', 'tblTempUsageDetail_20' ) end [2025-01-11 02:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:27:23] Production.INFO: ==23110== Releasing lock... [2025-01-11 02:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:28:05 [end_date_ymd] => 2025-01-11 02:28:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:28:05' and `end` < '2025-01-11 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-11 02:28:18] Production.INFO: count ==436 [2025-01-11 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:28:05 - End Time 2025-01-11 02:28:05 [2025-01-11 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221197', 'tblTempUsageDetail_20' ) start [2025-01-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221197', 'tblTempUsageDetail_20' ) end [2025-01-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221197', 'tblTempVendorCDR_20' ) start [2025-01-11 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221197', 'tblTempVendorCDR_20' ) end [2025-01-11 02:28:18] Production.INFO: ProcessCDR(1,14221197,1,1,2) [2025-01-11 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221197', 'tblTempUsageDetail_20' ) start [2025-01-11 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221197', 'tblTempUsageDetail_20' ) end [2025-01-11 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:28:21] Production.INFO: ==23184== Releasing lock... [2025-01-11 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:28:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:29:05 [end_date_ymd] => 2025-01-11 02:29:05 [RateCDR] => 1 ) [2025-01-11 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:29:05' and `end` < '2025-01-11 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:29:18] Production.INFO: count ==436 [2025-01-11 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:29:05 - End Time 2025-01-11 02:29:05 [2025-01-11 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221202', 'tblTempUsageDetail_20' ) start [2025-01-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221202', 'tblTempUsageDetail_20' ) end [2025-01-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221202', 'tblTempVendorCDR_20' ) start [2025-01-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221202', 'tblTempVendorCDR_20' ) end [2025-01-11 02:29:18] Production.INFO: ProcessCDR(1,14221202,1,1,2) [2025-01-11 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221202', 'tblTempUsageDetail_20' ) start [2025-01-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221202', 'tblTempUsageDetail_20' ) end [2025-01-11 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:29:21] Production.INFO: ==23258== Releasing lock... [2025-01-11 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:30:06 [end_date_ymd] => 2025-01-11 02:30:06 [RateCDR] => 1 ) [2025-01-11 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-10 23:30:06' and `end` < '2025-01-11 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-11 02:30:19] Production.INFO: count ==443 [2025-01-11 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:30:06 - End Time 2025-01-11 02:30:06 [2025-01-11 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221208', 'tblTempUsageDetail_20' ) start [2025-01-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221208', 'tblTempUsageDetail_20' ) end [2025-01-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221208', 'tblTempVendorCDR_20' ) start [2025-01-11 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221208', 'tblTempVendorCDR_20' ) end [2025-01-11 02:30:19] Production.INFO: ProcessCDR(1,14221208,1,1,2) [2025-01-11 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221208', 'tblTempUsageDetail_20' ) start [2025-01-11 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221208', 'tblTempUsageDetail_20' ) end [2025-01-11 02:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:30:24] Production.INFO: ==23339== Releasing lock... [2025-01-11 02:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:30:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:31:04 [end_date_ymd] => 2025-01-11 02:31:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:31:04' and `end` < '2025-01-11 02: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-11 02:31:18] Production.INFO: count ==448 [2025-01-11 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:31:04 - End Time 2025-01-11 02:31:04 [2025-01-11 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221213', 'tblTempUsageDetail_20' ) start [2025-01-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221213', 'tblTempUsageDetail_20' ) end [2025-01-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221213', 'tblTempVendorCDR_20' ) start [2025-01-11 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221213', 'tblTempVendorCDR_20' ) end [2025-01-11 02:31:18] Production.INFO: ProcessCDR(1,14221213,1,1,2) [2025-01-11 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221213', 'tblTempUsageDetail_20' ) start [2025-01-11 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221213', 'tblTempUsageDetail_20' ) end [2025-01-11 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:31:21] Production.INFO: ==23412== Releasing lock... [2025-01-11 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:32:05 [end_date_ymd] => 2025-01-11 02:32:05 [RateCDR] => 1 ) [2025-01-11 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:32:05' and `end` < '2025-01-11 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:32:19] Production.INFO: count ==448 [2025-01-11 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:32:05 - End Time 2025-01-11 02:32:05 [2025-01-11 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221218', 'tblTempUsageDetail_20' ) start [2025-01-11 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221218', 'tblTempUsageDetail_20' ) end [2025-01-11 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221218', 'tblTempVendorCDR_20' ) start [2025-01-11 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221218', 'tblTempVendorCDR_20' ) end [2025-01-11 02:32:19] Production.INFO: ProcessCDR(1,14221218,1,1,2) [2025-01-11 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221218', 'tblTempUsageDetail_20' ) start [2025-01-11 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221218', 'tblTempUsageDetail_20' ) end [2025-01-11 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:32:22] Production.INFO: ==23488== Releasing lock... [2025-01-11 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:33:05 [end_date_ymd] => 2025-01-11 02:33:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:33:05' and `end` < '2025-01-11 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-11 02:33:19] Production.INFO: count ==448 [2025-01-11 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:33:05 - End Time 2025-01-11 02:33:05 [2025-01-11 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221223', 'tblTempUsageDetail_20' ) start [2025-01-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221223', 'tblTempUsageDetail_20' ) end [2025-01-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221223', 'tblTempVendorCDR_20' ) start [2025-01-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221223', 'tblTempVendorCDR_20' ) end [2025-01-11 02:33:19] Production.INFO: ProcessCDR(1,14221223,1,1,2) [2025-01-11 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221223', 'tblTempUsageDetail_20' ) start [2025-01-11 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221223', 'tblTempUsageDetail_20' ) end [2025-01-11 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:33:22] Production.INFO: ==23575== Releasing lock... [2025-01-11 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:34:05 [end_date_ymd] => 2025-01-11 02:34:05 [RateCDR] => 1 ) [2025-01-11 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:34:05' and `end` < '2025-01-11 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:34:19] Production.INFO: count ==448 [2025-01-11 02:34:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:34:05 - End Time 2025-01-11 02:34:05 [2025-01-11 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221228', 'tblTempUsageDetail_20' ) start [2025-01-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221228', 'tblTempUsageDetail_20' ) end [2025-01-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221228', 'tblTempVendorCDR_20' ) start [2025-01-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221228', 'tblTempVendorCDR_20' ) end [2025-01-11 02:34:19] Production.INFO: ProcessCDR(1,14221228,1,1,2) [2025-01-11 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221228', 'tblTempUsageDetail_20' ) start [2025-01-11 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221228', 'tblTempUsageDetail_20' ) end [2025-01-11 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:34:23] Production.INFO: ==23704== Releasing lock... [2025-01-11 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:35:05 [end_date_ymd] => 2025-01-11 02:35:05 [RateCDR] => 1 ) [2025-01-11 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:35:05' and `end` < '2025-01-11 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:35:19] Production.INFO: count ==446 [2025-01-11 02:35:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:35:05 - End Time 2025-01-11 02:35:05 [2025-01-11 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221233', 'tblTempUsageDetail_20' ) start [2025-01-11 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221233', 'tblTempUsageDetail_20' ) end [2025-01-11 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221233', 'tblTempVendorCDR_20' ) start [2025-01-11 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221233', 'tblTempVendorCDR_20' ) end [2025-01-11 02:35:19] Production.INFO: ProcessCDR(1,14221233,1,1,2) [2025-01-11 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221233', 'tblTempUsageDetail_20' ) start [2025-01-11 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221233', 'tblTempUsageDetail_20' ) end [2025-01-11 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:35:22] Production.INFO: ==23802== Releasing lock... [2025-01-11 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:36:05 [end_date_ymd] => 2025-01-11 02:36:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:36:05' and `end` < '2025-01-11 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-11 02:36:19] Production.INFO: count ==445 [2025-01-11 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:36:05 - End Time 2025-01-11 02:36:05 [2025-01-11 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221238', 'tblTempUsageDetail_20' ) start [2025-01-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221238', 'tblTempUsageDetail_20' ) end [2025-01-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221238', 'tblTempVendorCDR_20' ) start [2025-01-11 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221238', 'tblTempVendorCDR_20' ) end [2025-01-11 02:36:19] Production.INFO: ProcessCDR(1,14221238,1,1,2) [2025-01-11 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221238', 'tblTempUsageDetail_20' ) start [2025-01-11 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221238', 'tblTempUsageDetail_20' ) end [2025-01-11 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:36:22] Production.INFO: ==23902== Releasing lock... [2025-01-11 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:37:05 [end_date_ymd] => 2025-01-11 02:37:05 [RateCDR] => 1 ) [2025-01-11 02: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 23:37:05' and `end` < '2025-01-11 02: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-11 02:37:18] Production.INFO: count ==442 [2025-01-11 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:37:05 - End Time 2025-01-11 02:37:05 [2025-01-11 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221243', 'tblTempUsageDetail_20' ) start [2025-01-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221243', 'tblTempUsageDetail_20' ) end [2025-01-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221243', 'tblTempVendorCDR_20' ) start [2025-01-11 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221243', 'tblTempVendorCDR_20' ) end [2025-01-11 02:37:18] Production.INFO: ProcessCDR(1,14221243,1,1,2) [2025-01-11 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221243', 'tblTempUsageDetail_20' ) start [2025-01-11 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221243', 'tblTempUsageDetail_20' ) end [2025-01-11 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:37:21] Production.INFO: ==24003== Releasing lock... [2025-01-11 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:38:05 [end_date_ymd] => 2025-01-11 02:38:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:38:05' and `end` < '2025-01-11 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-11 02:38:19] Production.INFO: count ==440 [2025-01-11 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:38:05 - End Time 2025-01-11 02:38:05 [2025-01-11 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221248', 'tblTempUsageDetail_20' ) start [2025-01-11 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221248', 'tblTempUsageDetail_20' ) end [2025-01-11 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221248', 'tblTempVendorCDR_20' ) start [2025-01-11 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221248', 'tblTempVendorCDR_20' ) end [2025-01-11 02:38:19] Production.INFO: ProcessCDR(1,14221248,1,1,2) [2025-01-11 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221248', 'tblTempUsageDetail_20' ) start [2025-01-11 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221248', 'tblTempUsageDetail_20' ) end [2025-01-11 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:38:22] Production.INFO: ==24101== Releasing lock... [2025-01-11 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:39:05 [end_date_ymd] => 2025-01-11 02:39:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:39:05' and `end` < '2025-01-11 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-11 02:39:18] Production.INFO: count ==440 [2025-01-11 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:39:05 - End Time 2025-01-11 02:39:05 [2025-01-11 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221253', 'tblTempUsageDetail_20' ) start [2025-01-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221253', 'tblTempUsageDetail_20' ) end [2025-01-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221253', 'tblTempVendorCDR_20' ) start [2025-01-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221253', 'tblTempVendorCDR_20' ) end [2025-01-11 02:39:18] Production.INFO: ProcessCDR(1,14221253,1,1,2) [2025-01-11 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221253', 'tblTempUsageDetail_20' ) start [2025-01-11 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221253', 'tblTempUsageDetail_20' ) end [2025-01-11 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:39:22] Production.INFO: ==24209== Releasing lock... [2025-01-11 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:40:05 [end_date_ymd] => 2025-01-11 02:40:05 [RateCDR] => 1 ) [2025-01-11 02: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 23:40:05' and `end` < '2025-01-11 02: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-11 02:40:18] Production.INFO: count ==446 [2025-01-11 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:40:05 - End Time 2025-01-11 02:40:05 [2025-01-11 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221259', 'tblTempUsageDetail_20' ) start [2025-01-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221259', 'tblTempUsageDetail_20' ) end [2025-01-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221259', 'tblTempVendorCDR_20' ) start [2025-01-11 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221259', 'tblTempVendorCDR_20' ) end [2025-01-11 02:40:18] Production.INFO: ProcessCDR(1,14221259,1,1,2) [2025-01-11 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221259', 'tblTempUsageDetail_20' ) start [2025-01-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221259', 'tblTempUsageDetail_20' ) end [2025-01-11 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:40:22] Production.INFO: ==24318== Releasing lock... [2025-01-11 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:41:05 [end_date_ymd] => 2025-01-11 02:41:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:41:05' and `end` < '2025-01-11 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-11 02:41:19] Production.INFO: count ==450 [2025-01-11 02:41:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:41:05 - End Time 2025-01-11 02:41:05 [2025-01-11 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221264', 'tblTempUsageDetail_20' ) start [2025-01-11 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221264', 'tblTempUsageDetail_20' ) end [2025-01-11 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221264', 'tblTempVendorCDR_20' ) start [2025-01-11 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221264', 'tblTempVendorCDR_20' ) end [2025-01-11 02:41:19] Production.INFO: ProcessCDR(1,14221264,1,1,2) [2025-01-11 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221264', 'tblTempUsageDetail_20' ) start [2025-01-11 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221264', 'tblTempUsageDetail_20' ) end [2025-01-11 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:41:22] Production.INFO: ==24419== Releasing lock... [2025-01-11 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:42:05 [end_date_ymd] => 2025-01-11 02:42:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:42:05' and `end` < '2025-01-11 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-11 02:42:19] Production.INFO: count ==450 [2025-01-11 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:42:05 - End Time 2025-01-11 02:42:05 [2025-01-11 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221269', 'tblTempUsageDetail_20' ) start [2025-01-11 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221269', 'tblTempUsageDetail_20' ) end [2025-01-11 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221269', 'tblTempVendorCDR_20' ) start [2025-01-11 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221269', 'tblTempVendorCDR_20' ) end [2025-01-11 02:42:19] Production.INFO: ProcessCDR(1,14221269,1,1,2) [2025-01-11 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221269', 'tblTempUsageDetail_20' ) start [2025-01-11 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221269', 'tblTempUsageDetail_20' ) end [2025-01-11 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:42:22] Production.INFO: ==24527== Releasing lock... [2025-01-11 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:43:05 [end_date_ymd] => 2025-01-11 02:43:05 [RateCDR] => 1 ) [2025-01-11 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:43:05' and `end` < '2025-01-11 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:43:19] Production.INFO: count ==450 [2025-01-11 02:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:43:05 - End Time 2025-01-11 02:43:05 [2025-01-11 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221274', 'tblTempUsageDetail_20' ) start [2025-01-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221274', 'tblTempUsageDetail_20' ) end [2025-01-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221274', 'tblTempVendorCDR_20' ) start [2025-01-11 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221274', 'tblTempVendorCDR_20' ) end [2025-01-11 02:43:19] Production.INFO: ProcessCDR(1,14221274,1,1,2) [2025-01-11 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221274', 'tblTempUsageDetail_20' ) start [2025-01-11 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221274', 'tblTempUsageDetail_20' ) end [2025-01-11 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:43:22] Production.INFO: ==24620== Releasing lock... [2025-01-11 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:44:04 [end_date_ymd] => 2025-01-11 02:44:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:44:04' and `end` < '2025-01-11 02: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-11 02:44:19] Production.INFO: count ==450 [2025-01-11 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:44:04 - End Time 2025-01-11 02:44:04 [2025-01-11 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221279', 'tblTempUsageDetail_20' ) start [2025-01-11 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221279', 'tblTempUsageDetail_20' ) end [2025-01-11 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221279', 'tblTempVendorCDR_20' ) start [2025-01-11 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221279', 'tblTempVendorCDR_20' ) end [2025-01-11 02:44:19] Production.INFO: ProcessCDR(1,14221279,1,1,2) [2025-01-11 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221279', 'tblTempUsageDetail_20' ) start [2025-01-11 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221279', 'tblTempUsageDetail_20' ) end [2025-01-11 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:44:22] Production.INFO: ==24715== Releasing lock... [2025-01-11 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-11 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:45:05 [end_date_ymd] => 2025-01-11 02:45:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:45:05' and `end` < '2025-01-11 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-11 02:45:18] Production.INFO: count ==426 [2025-01-11 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:45:05 - End Time 2025-01-11 02:45:05 [2025-01-11 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221284', 'tblTempUsageDetail_20' ) start [2025-01-11 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221284', 'tblTempUsageDetail_20' ) end [2025-01-11 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221284', 'tblTempVendorCDR_20' ) start [2025-01-11 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221284', 'tblTempVendorCDR_20' ) end [2025-01-11 02:45:18] Production.INFO: ProcessCDR(1,14221284,1,1,2) [2025-01-11 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221284', 'tblTempUsageDetail_20' ) start [2025-01-11 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221284', 'tblTempUsageDetail_20' ) end [2025-01-11 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:45:21] Production.INFO: ==24822== Releasing lock... [2025-01-11 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:46:04 [end_date_ymd] => 2025-01-11 02:46:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:46:04' and `end` < '2025-01-11 02: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-11 02:46:19] Production.INFO: count ==399 [2025-01-11 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:46:04 - End Time 2025-01-11 02:46:04 [2025-01-11 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221289', 'tblTempUsageDetail_20' ) start [2025-01-11 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221289', 'tblTempUsageDetail_20' ) end [2025-01-11 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221289', 'tblTempVendorCDR_20' ) start [2025-01-11 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221289', 'tblTempVendorCDR_20' ) end [2025-01-11 02:46:19] Production.INFO: ProcessCDR(1,14221289,1,1,2) [2025-01-11 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221289', 'tblTempUsageDetail_20' ) start [2025-01-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221289', 'tblTempUsageDetail_20' ) end [2025-01-11 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:46:22] Production.INFO: ==24925== Releasing lock... [2025-01-11 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:47:04 [end_date_ymd] => 2025-01-11 02:47:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:47:04' and `end` < '2025-01-11 02: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-11 02:47:19] Production.INFO: count ==399 [2025-01-11 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:47:04 - End Time 2025-01-11 02:47:04 [2025-01-11 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221294', 'tblTempUsageDetail_20' ) start [2025-01-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221294', 'tblTempUsageDetail_20' ) end [2025-01-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221294', 'tblTempVendorCDR_20' ) start [2025-01-11 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221294', 'tblTempVendorCDR_20' ) end [2025-01-11 02:47:19] Production.INFO: ProcessCDR(1,14221294,1,1,2) [2025-01-11 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221294', 'tblTempUsageDetail_20' ) start [2025-01-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221294', 'tblTempUsageDetail_20' ) end [2025-01-11 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:47:23] Production.INFO: ==25025== Releasing lock... [2025-01-11 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:47:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:48:05 [end_date_ymd] => 2025-01-11 02:48:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:48:05' and `end` < '2025-01-11 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-11 02:48:19] Production.INFO: count ==399 [2025-01-11 02:48:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:48:05 - End Time 2025-01-11 02:48:05 [2025-01-11 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221299', 'tblTempUsageDetail_20' ) start [2025-01-11 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221299', 'tblTempUsageDetail_20' ) end [2025-01-11 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221299', 'tblTempVendorCDR_20' ) start [2025-01-11 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221299', 'tblTempVendorCDR_20' ) end [2025-01-11 02:48:19] Production.INFO: ProcessCDR(1,14221299,1,1,2) [2025-01-11 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221299', 'tblTempUsageDetail_20' ) start [2025-01-11 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221299', 'tblTempUsageDetail_20' ) end [2025-01-11 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:48:23] Production.INFO: ==25135== Releasing lock... [2025-01-11 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:49:05 [end_date_ymd] => 2025-01-11 02:49:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:49:05' and `end` < '2025-01-11 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-11 02:49:18] Production.INFO: count ==397 [2025-01-11 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:49:05 - End Time 2025-01-11 02:49:05 [2025-01-11 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221304', 'tblTempUsageDetail_20' ) start [2025-01-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221304', 'tblTempUsageDetail_20' ) end [2025-01-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221304', 'tblTempVendorCDR_20' ) start [2025-01-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221304', 'tblTempVendorCDR_20' ) end [2025-01-11 02:49:18] Production.INFO: ProcessCDR(1,14221304,1,1,2) [2025-01-11 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221304', 'tblTempUsageDetail_20' ) start [2025-01-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221304', 'tblTempUsageDetail_20' ) end [2025-01-11 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:49:21] Production.INFO: ==25274== Releasing lock... [2025-01-11 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:50:05 [end_date_ymd] => 2025-01-11 02:50:05 [RateCDR] => 1 ) [2025-01-11 02: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 23:50:05' and `end` < '2025-01-11 02: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-11 02:50:19] Production.INFO: count ==402 [2025-01-11 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:50:05 - End Time 2025-01-11 02:50:05 [2025-01-11 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221310', 'tblTempUsageDetail_20' ) start [2025-01-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221310', 'tblTempUsageDetail_20' ) end [2025-01-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221310', 'tblTempVendorCDR_20' ) start [2025-01-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221310', 'tblTempVendorCDR_20' ) end [2025-01-11 02:50:19] Production.INFO: ProcessCDR(1,14221310,1,1,2) [2025-01-11 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221310', 'tblTempUsageDetail_20' ) start [2025-01-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221310', 'tblTempUsageDetail_20' ) end [2025-01-11 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:50:22] Production.INFO: ==25379== Releasing lock... [2025-01-11 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:51:05 [end_date_ymd] => 2025-01-11 02:51:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:51:05' and `end` < '2025-01-11 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-11 02:51:18] Production.INFO: count ==409 [2025-01-11 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:51:05 - End Time 2025-01-11 02:51:05 [2025-01-11 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221315', 'tblTempUsageDetail_20' ) start [2025-01-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221315', 'tblTempUsageDetail_20' ) end [2025-01-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221315', 'tblTempVendorCDR_20' ) start [2025-01-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221315', 'tblTempVendorCDR_20' ) end [2025-01-11 02:51:18] Production.INFO: ProcessCDR(1,14221315,1,1,2) [2025-01-11 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221315', 'tblTempUsageDetail_20' ) start [2025-01-11 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221315', 'tblTempUsageDetail_20' ) end [2025-01-11 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:51:21] Production.INFO: ==25479== Releasing lock... [2025-01-11 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:52:05 [end_date_ymd] => 2025-01-11 02:52:05 [RateCDR] => 1 ) [2025-01-11 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:52:05' and `end` < '2025-01-11 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:52:19] Production.INFO: count ==409 [2025-01-11 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:52:05 - End Time 2025-01-11 02:52:05 [2025-01-11 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221320', 'tblTempUsageDetail_20' ) start [2025-01-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221320', 'tblTempUsageDetail_20' ) end [2025-01-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221320', 'tblTempVendorCDR_20' ) start [2025-01-11 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221320', 'tblTempVendorCDR_20' ) end [2025-01-11 02:52:19] Production.INFO: ProcessCDR(1,14221320,1,1,2) [2025-01-11 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221320', 'tblTempUsageDetail_20' ) start [2025-01-11 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221320', 'tblTempUsageDetail_20' ) end [2025-01-11 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:52:22] Production.INFO: ==25577== Releasing lock... [2025-01-11 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:53:05 [end_date_ymd] => 2025-01-11 02:53:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:53:05' and `end` < '2025-01-11 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-11 02:53:18] Production.INFO: count ==411 [2025-01-11 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:53:05 - End Time 2025-01-11 02:53:05 [2025-01-11 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221325', 'tblTempUsageDetail_20' ) start [2025-01-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221325', 'tblTempUsageDetail_20' ) end [2025-01-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221325', 'tblTempVendorCDR_20' ) start [2025-01-11 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221325', 'tblTempVendorCDR_20' ) end [2025-01-11 02:53:18] Production.INFO: ProcessCDR(1,14221325,1,1,2) [2025-01-11 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221325', 'tblTempUsageDetail_20' ) start [2025-01-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221325', 'tblTempUsageDetail_20' ) end [2025-01-11 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:53:22] Production.INFO: ==25683== Releasing lock... [2025-01-11 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:54:05 [end_date_ymd] => 2025-01-11 02:54:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:54:05' and `end` < '2025-01-11 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-11 02:54:19] Production.INFO: count ==407 [2025-01-11 02:54:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:54:05 - End Time 2025-01-11 02:54:05 [2025-01-11 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221330', 'tblTempUsageDetail_20' ) start [2025-01-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221330', 'tblTempUsageDetail_20' ) end [2025-01-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221330', 'tblTempVendorCDR_20' ) start [2025-01-11 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221330', 'tblTempVendorCDR_20' ) end [2025-01-11 02:54:19] Production.INFO: ProcessCDR(1,14221330,1,1,2) [2025-01-11 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221330', 'tblTempUsageDetail_20' ) start [2025-01-11 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221330', 'tblTempUsageDetail_20' ) end [2025-01-11 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:54:22] Production.INFO: ==25787== Releasing lock... [2025-01-11 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:55:05 [end_date_ymd] => 2025-01-11 02:55:05 [RateCDR] => 1 ) [2025-01-11 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:55:05' and `end` < '2025-01-11 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:55:18] Production.INFO: count ==407 [2025-01-11 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:55:05 - End Time 2025-01-11 02:55:05 [2025-01-11 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221335', 'tblTempUsageDetail_20' ) start [2025-01-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221335', 'tblTempUsageDetail_20' ) end [2025-01-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221335', 'tblTempVendorCDR_20' ) start [2025-01-11 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221335', 'tblTempVendorCDR_20' ) end [2025-01-11 02:55:18] Production.INFO: ProcessCDR(1,14221335,1,1,2) [2025-01-11 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221335', 'tblTempUsageDetail_20' ) start [2025-01-11 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221335', 'tblTempUsageDetail_20' ) end [2025-01-11 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:55:21] Production.INFO: ==25881== Releasing lock... [2025-01-11 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:56:05 [end_date_ymd] => 2025-01-11 02:56:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:56:05' and `end` < '2025-01-11 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-11 02:56:19] Production.INFO: count ==407 [2025-01-11 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:56:05 - End Time 2025-01-11 02:56:05 [2025-01-11 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221340', 'tblTempUsageDetail_20' ) start [2025-01-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221340', 'tblTempUsageDetail_20' ) end [2025-01-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221340', 'tblTempVendorCDR_20' ) start [2025-01-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221340', 'tblTempVendorCDR_20' ) end [2025-01-11 02:56:19] Production.INFO: ProcessCDR(1,14221340,1,1,2) [2025-01-11 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221340', 'tblTempUsageDetail_20' ) start [2025-01-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221340', 'tblTempUsageDetail_20' ) end [2025-01-11 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:56:22] Production.INFO: ==25979== Releasing lock... [2025-01-11 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:57:05 [end_date_ymd] => 2025-01-11 02:57:05 [RateCDR] => 1 ) [2025-01-11 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-10 23:57:05' and `end` < '2025-01-11 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-11 02:57:19] Production.INFO: count ==406 [2025-01-11 02:57:19] Production.ERROR: pbx CDR StartTime 2025-01-10 23:57:05 - End Time 2025-01-11 02:57:05 [2025-01-11 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221345', 'tblTempUsageDetail_20' ) start [2025-01-11 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221345', 'tblTempUsageDetail_20' ) end [2025-01-11 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221345', 'tblTempVendorCDR_20' ) start [2025-01-11 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221345', 'tblTempVendorCDR_20' ) end [2025-01-11 02:57:19] Production.INFO: ProcessCDR(1,14221345,1,1,2) [2025-01-11 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221345', 'tblTempUsageDetail_20' ) start [2025-01-11 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221345', 'tblTempUsageDetail_20' ) end [2025-01-11 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:57:22] Production.INFO: ==26076== Releasing lock... [2025-01-11 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:58:05 [end_date_ymd] => 2025-01-11 02:58:05 [RateCDR] => 1 ) [2025-01-11 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 23:58:05' and `end` < '2025-01-11 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 02:58:18] Production.INFO: count ==406 [2025-01-11 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:58:05 - End Time 2025-01-11 02:58:05 [2025-01-11 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221350', 'tblTempUsageDetail_20' ) start [2025-01-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221350', 'tblTempUsageDetail_20' ) end [2025-01-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221350', 'tblTempVendorCDR_20' ) start [2025-01-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221350', 'tblTempVendorCDR_20' ) end [2025-01-11 02:58:18] Production.INFO: ProcessCDR(1,14221350,1,1,2) [2025-01-11 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221350', 'tblTempUsageDetail_20' ) start [2025-01-11 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221350', 'tblTempUsageDetail_20' ) end [2025-01-11 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:58:21] Production.INFO: ==26166== Releasing lock... [2025-01-11 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 23:59:04 [end_date_ymd] => 2025-01-11 02:59:04 [RateCDR] => 1 ) [2025-01-11 02: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 23:59:04' and `end` < '2025-01-11 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-11 02:59:18] Production.INFO: count ==405 [2025-01-11 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 23:59:04 - End Time 2025-01-11 02:59:04 [2025-01-11 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221355', 'tblTempUsageDetail_20' ) start [2025-01-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221355', 'tblTempUsageDetail_20' ) end [2025-01-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221355', 'tblTempVendorCDR_20' ) start [2025-01-11 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221355', 'tblTempVendorCDR_20' ) end [2025-01-11 02:59:18] Production.INFO: ProcessCDR(1,14221355,1,1,2) [2025-01-11 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221355', 'tblTempUsageDetail_20' ) start [2025-01-11 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221355', 'tblTempUsageDetail_20' ) end [2025-01-11 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 02:59:22] Production.INFO: ==26248== Releasing lock... [2025-01-11 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 02:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:00:05 [end_date_ymd] => 2025-01-11 03:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:00:05' and `end` < '2025-01-11 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-11 03:00:19] Production.INFO: count ==411 [2025-01-11 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:00:05 - End Time 2025-01-11 03:00:05 [2025-01-11 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221361', 'tblTempUsageDetail_20' ) start [2025-01-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221361', 'tblTempUsageDetail_20' ) end [2025-01-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221361', 'tblTempVendorCDR_20' ) start [2025-01-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221361', 'tblTempVendorCDR_20' ) end [2025-01-11 03:00:19] Production.INFO: ProcessCDR(1,14221361,1,1,2) [2025-01-11 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221361', 'tblTempUsageDetail_20' ) start [2025-01-11 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221361', 'tblTempUsageDetail_20' ) end [2025-01-11 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:00:22] Production.INFO: ==26335== Releasing lock... [2025-01-11 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:01:04 [end_date_ymd] => 2025-01-11 03:01:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:01:04' and `end` < '2025-01-11 03: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-11 03:01:17] Production.INFO: count ==420 [2025-01-11 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:01:04 - End Time 2025-01-11 03:01:04 [2025-01-11 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221366', 'tblTempUsageDetail_20' ) start [2025-01-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221366', 'tblTempUsageDetail_20' ) end [2025-01-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221366', 'tblTempVendorCDR_20' ) start [2025-01-11 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221366', 'tblTempVendorCDR_20' ) end [2025-01-11 03:01:18] Production.INFO: ProcessCDR(1,14221366,1,1,2) [2025-01-11 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221366', 'tblTempUsageDetail_20' ) start [2025-01-11 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221366', 'tblTempUsageDetail_20' ) end [2025-01-11 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:01:21] Production.INFO: ==26432== Releasing lock... [2025-01-11 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:02:05 [end_date_ymd] => 2025-01-11 03:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:02:05' and `end` < '2025-01-11 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-11 03:02:18] Production.INFO: count ==420 [2025-01-11 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:02:05 - End Time 2025-01-11 03:02:05 [2025-01-11 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221371', 'tblTempUsageDetail_20' ) start [2025-01-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221371', 'tblTempUsageDetail_20' ) end [2025-01-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221371', 'tblTempVendorCDR_20' ) start [2025-01-11 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221371', 'tblTempVendorCDR_20' ) end [2025-01-11 03:02:19] Production.INFO: ProcessCDR(1,14221371,1,1,2) [2025-01-11 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221371', 'tblTempUsageDetail_20' ) start [2025-01-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221371', 'tblTempUsageDetail_20' ) end [2025-01-11 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:02:22] Production.INFO: ==26595== Releasing lock... [2025-01-11 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:03:05 [end_date_ymd] => 2025-01-11 03:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:03:05' and `end` < '2025-01-11 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-11 03:03:18] Production.INFO: count ==423 [2025-01-11 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:03:05 - End Time 2025-01-11 03:03:05 [2025-01-11 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221376', 'tblTempUsageDetail_20' ) start [2025-01-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221376', 'tblTempUsageDetail_20' ) end [2025-01-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221376', 'tblTempVendorCDR_20' ) start [2025-01-11 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221376', 'tblTempVendorCDR_20' ) end [2025-01-11 03:03:18] Production.INFO: ProcessCDR(1,14221376,1,1,2) [2025-01-11 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221376', 'tblTempUsageDetail_20' ) start [2025-01-11 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221376', 'tblTempUsageDetail_20' ) end [2025-01-11 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:03:21] Production.INFO: ==26678== Releasing lock... [2025-01-11 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:04:05 [end_date_ymd] => 2025-01-11 03:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:04:05' and `end` < '2025-01-11 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-11 03:04:19] Production.INFO: count ==423 [2025-01-11 03:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:04:05 - End Time 2025-01-11 03:04:05 [2025-01-11 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221381', 'tblTempUsageDetail_20' ) start [2025-01-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221381', 'tblTempUsageDetail_20' ) end [2025-01-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221381', 'tblTempVendorCDR_20' ) start [2025-01-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221381', 'tblTempVendorCDR_20' ) end [2025-01-11 03:04:19] Production.INFO: ProcessCDR(1,14221381,1,1,2) [2025-01-11 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221381', 'tblTempUsageDetail_20' ) start [2025-01-11 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221381', 'tblTempUsageDetail_20' ) end [2025-01-11 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:04:22] Production.INFO: ==26760== Releasing lock... [2025-01-11 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:05:04 [end_date_ymd] => 2025-01-11 03:05:04 [RateCDR] => 1 ) [2025-01-11 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-11 00:05:04' and `end` < '2025-01-11 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-11 03:05:17] Production.INFO: count ==422 [2025-01-11 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-11 00:05:04 - End Time 2025-01-11 03:05:04 [2025-01-11 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221386', 'tblTempUsageDetail_20' ) start [2025-01-11 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221386', 'tblTempUsageDetail_20' ) end [2025-01-11 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221386', 'tblTempVendorCDR_20' ) start [2025-01-11 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221386', 'tblTempVendorCDR_20' ) end [2025-01-11 03:05:17] Production.INFO: ProcessCDR(1,14221386,1,1,2) [2025-01-11 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221386', 'tblTempUsageDetail_20' ) start [2025-01-11 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221386', 'tblTempUsageDetail_20' ) end [2025-01-11 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:05:21] Production.INFO: ==26881== Releasing lock... [2025-01-11 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:06:05 [end_date_ymd] => 2025-01-11 03:06:05 [RateCDR] => 1 ) [2025-01-11 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:06:05' and `end` < '2025-01-11 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:06:20] Production.INFO: count ==419 [2025-01-11 03:06:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:06:05 - End Time 2025-01-11 03:06:05 [2025-01-11 03:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221391', 'tblTempUsageDetail_20' ) start [2025-01-11 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221391', 'tblTempUsageDetail_20' ) end [2025-01-11 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221391', 'tblTempVendorCDR_20' ) start [2025-01-11 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221391', 'tblTempVendorCDR_20' ) end [2025-01-11 03:06:20] Production.INFO: ProcessCDR(1,14221391,1,1,2) [2025-01-11 03:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221391', 'tblTempUsageDetail_20' ) start [2025-01-11 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221391', 'tblTempUsageDetail_20' ) end [2025-01-11 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:06:23] Production.INFO: ==27047== Releasing lock... [2025-01-11 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:07:05 [end_date_ymd] => 2025-01-11 03:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:07:05' and `end` < '2025-01-11 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-11 03:07:18] Production.INFO: count ==419 [2025-01-11 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:07:05 - End Time 2025-01-11 03:07:05 [2025-01-11 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221396', 'tblTempUsageDetail_20' ) start [2025-01-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221396', 'tblTempUsageDetail_20' ) end [2025-01-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221396', 'tblTempVendorCDR_20' ) start [2025-01-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221396', 'tblTempVendorCDR_20' ) end [2025-01-11 03:07:18] Production.INFO: ProcessCDR(1,14221396,1,1,2) [2025-01-11 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221396', 'tblTempUsageDetail_20' ) start [2025-01-11 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221396', 'tblTempUsageDetail_20' ) end [2025-01-11 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:07:21] Production.INFO: ==27135== Releasing lock... [2025-01-11 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:08:05 [end_date_ymd] => 2025-01-11 03:08:05 [RateCDR] => 1 ) [2025-01-11 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:08:05' and `end` < '2025-01-11 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:08:20] Production.INFO: count ==418 [2025-01-11 03:08:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:08:05 - End Time 2025-01-11 03:08:05 [2025-01-11 03:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221401', 'tblTempUsageDetail_20' ) start [2025-01-11 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221401', 'tblTempUsageDetail_20' ) end [2025-01-11 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221401', 'tblTempVendorCDR_20' ) start [2025-01-11 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221401', 'tblTempVendorCDR_20' ) end [2025-01-11 03:08:20] Production.INFO: ProcessCDR(1,14221401,1,1,2) [2025-01-11 03:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221401', 'tblTempUsageDetail_20' ) start [2025-01-11 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221401', 'tblTempUsageDetail_20' ) end [2025-01-11 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:08:23] Production.INFO: ==27216== Releasing lock... [2025-01-11 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:09:05 [end_date_ymd] => 2025-01-11 03:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:09:05' and `end` < '2025-01-11 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-11 03:09:19] Production.INFO: count ==418 [2025-01-11 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:09:05 - End Time 2025-01-11 03:09:05 [2025-01-11 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221406', 'tblTempUsageDetail_20' ) start [2025-01-11 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221406', 'tblTempUsageDetail_20' ) end [2025-01-11 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221406', 'tblTempVendorCDR_20' ) start [2025-01-11 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221406', 'tblTempVendorCDR_20' ) end [2025-01-11 03:09:19] Production.INFO: ProcessCDR(1,14221406,1,1,2) [2025-01-11 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221406', 'tblTempUsageDetail_20' ) start [2025-01-11 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221406', 'tblTempUsageDetail_20' ) end [2025-01-11 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:09:22] Production.INFO: ==27379== Releasing lock... [2025-01-11 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:10:06 [end_date_ymd] => 2025-01-11 03:10:06 [RateCDR] => 1 ) [2025-01-11 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:10:06' and `end` < '2025-01-11 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:10:19] Production.INFO: count ==417 [2025-01-11 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:10:06 - End Time 2025-01-11 03:10:06 [2025-01-11 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221412', 'tblTempUsageDetail_20' ) start [2025-01-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221412', 'tblTempUsageDetail_20' ) end [2025-01-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221412', 'tblTempVendorCDR_20' ) start [2025-01-11 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221412', 'tblTempVendorCDR_20' ) end [2025-01-11 03:10:19] Production.INFO: ProcessCDR(1,14221412,1,1,2) [2025-01-11 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221412', 'tblTempUsageDetail_20' ) start [2025-01-11 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221412', 'tblTempUsageDetail_20' ) end [2025-01-11 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:10:22] Production.INFO: ==27453== Releasing lock... [2025-01-11 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:11:05 [end_date_ymd] => 2025-01-11 03:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:11:05' and `end` < '2025-01-11 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-11 03:11:20] Production.INFO: count ==403 [2025-01-11 03:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:11:05 - End Time 2025-01-11 03:11:05 [2025-01-11 03:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221417', 'tblTempUsageDetail_20' ) start [2025-01-11 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221417', 'tblTempUsageDetail_20' ) end [2025-01-11 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221417', 'tblTempVendorCDR_20' ) start [2025-01-11 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221417', 'tblTempVendorCDR_20' ) end [2025-01-11 03:11:20] Production.INFO: ProcessCDR(1,14221417,1,1,2) [2025-01-11 03:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221417', 'tblTempUsageDetail_20' ) start [2025-01-11 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221417', 'tblTempUsageDetail_20' ) end [2025-01-11 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:11:23] Production.INFO: ==27523== Releasing lock... [2025-01-11 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:12:05 [end_date_ymd] => 2025-01-11 03:12:05 [RateCDR] => 1 ) [2025-01-11 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:12:05' and `end` < '2025-01-11 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:12:18] Production.INFO: count ==403 [2025-01-11 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:12:05 - End Time 2025-01-11 03:12:05 [2025-01-11 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221422', 'tblTempUsageDetail_20' ) start [2025-01-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221422', 'tblTempUsageDetail_20' ) end [2025-01-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221422', 'tblTempVendorCDR_20' ) start [2025-01-11 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221422', 'tblTempVendorCDR_20' ) end [2025-01-11 03:12:18] Production.INFO: ProcessCDR(1,14221422,1,1,2) [2025-01-11 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221422', 'tblTempUsageDetail_20' ) start [2025-01-11 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221422', 'tblTempUsageDetail_20' ) end [2025-01-11 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:12:21] Production.INFO: ==27591== Releasing lock... [2025-01-11 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:13:05 [end_date_ymd] => 2025-01-11 03:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:13:05' and `end` < '2025-01-11 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-11 03:13:20] Production.INFO: count ==405 [2025-01-11 03:13:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:13:05 - End Time 2025-01-11 03:13:05 [2025-01-11 03:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221427', 'tblTempUsageDetail_20' ) start [2025-01-11 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221427', 'tblTempUsageDetail_20' ) end [2025-01-11 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221427', 'tblTempVendorCDR_20' ) start [2025-01-11 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221427', 'tblTempVendorCDR_20' ) end [2025-01-11 03:13:20] Production.INFO: ProcessCDR(1,14221427,1,1,2) [2025-01-11 03:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221427', 'tblTempUsageDetail_20' ) start [2025-01-11 03:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221427', 'tblTempUsageDetail_20' ) end [2025-01-11 03:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:13:25] Production.INFO: ==27737== Releasing lock... [2025-01-11 03:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:13:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:14:05 [end_date_ymd] => 2025-01-11 03:14:05 [RateCDR] => 1 ) [2025-01-11 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:14:05' and `end` < '2025-01-11 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:14:18] Production.INFO: count ==405 [2025-01-11 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:14:05 - End Time 2025-01-11 03:14:05 [2025-01-11 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221432', 'tblTempUsageDetail_20' ) start [2025-01-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221432', 'tblTempUsageDetail_20' ) end [2025-01-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221432', 'tblTempVendorCDR_20' ) start [2025-01-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221432', 'tblTempVendorCDR_20' ) end [2025-01-11 03:14:18] Production.INFO: ProcessCDR(1,14221432,1,1,2) [2025-01-11 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221432', 'tblTempUsageDetail_20' ) start [2025-01-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221432', 'tblTempUsageDetail_20' ) end [2025-01-11 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:14:21] Production.INFO: ==27810== Releasing lock... [2025-01-11 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:15:05 [end_date_ymd] => 2025-01-11 03:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:15:05' and `end` < '2025-01-11 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-11 03:15:19] Production.INFO: count ==403 [2025-01-11 03:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:15:05 - End Time 2025-01-11 03:15:05 [2025-01-11 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221437', 'tblTempUsageDetail_20' ) start [2025-01-11 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221437', 'tblTempUsageDetail_20' ) end [2025-01-11 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221437', 'tblTempVendorCDR_20' ) start [2025-01-11 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221437', 'tblTempVendorCDR_20' ) end [2025-01-11 03:15:19] Production.INFO: ProcessCDR(1,14221437,1,1,2) [2025-01-11 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221437', 'tblTempUsageDetail_20' ) start [2025-01-11 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221437', 'tblTempUsageDetail_20' ) end [2025-01-11 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:15:22] Production.INFO: ==27879== Releasing lock... [2025-01-11 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:16:04 [end_date_ymd] => 2025-01-11 03:16:04 [RateCDR] => 1 ) [2025-01-11 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-11 00:16:04' and `end` < '2025-01-11 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-11 03:16:17] Production.INFO: count ==402 [2025-01-11 03:16:17] Production.ERROR: pbx CDR StartTime 2025-01-11 00:16:04 - End Time 2025-01-11 03:16:04 [2025-01-11 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221442', 'tblTempUsageDetail_20' ) start [2025-01-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221442', 'tblTempUsageDetail_20' ) end [2025-01-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221442', 'tblTempVendorCDR_20' ) start [2025-01-11 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221442', 'tblTempVendorCDR_20' ) end [2025-01-11 03:16:17] Production.INFO: ProcessCDR(1,14221442,1,1,2) [2025-01-11 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221442', 'tblTempUsageDetail_20' ) start [2025-01-11 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221442', 'tblTempUsageDetail_20' ) end [2025-01-11 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:16:21] Production.INFO: ==27947== Releasing lock... [2025-01-11 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:17:05 [end_date_ymd] => 2025-01-11 03:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:17:05' and `end` < '2025-01-11 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-11 03:17:19] Production.INFO: count ==402 [2025-01-11 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:17:05 - End Time 2025-01-11 03:17:05 [2025-01-11 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221447', 'tblTempUsageDetail_20' ) start [2025-01-11 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221447', 'tblTempUsageDetail_20' ) end [2025-01-11 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221447', 'tblTempVendorCDR_20' ) start [2025-01-11 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221447', 'tblTempVendorCDR_20' ) end [2025-01-11 03:17:19] Production.INFO: ProcessCDR(1,14221447,1,1,2) [2025-01-11 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221447', 'tblTempUsageDetail_20' ) start [2025-01-11 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221447', 'tblTempUsageDetail_20' ) end [2025-01-11 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:17:22] Production.INFO: ==28099== Releasing lock... [2025-01-11 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:18:05 [end_date_ymd] => 2025-01-11 03:18:05 [RateCDR] => 1 ) [2025-01-11 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:18:05' and `end` < '2025-01-11 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:18:18] Production.INFO: count ==402 [2025-01-11 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:18:05 - End Time 2025-01-11 03:18:05 [2025-01-11 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221452', 'tblTempUsageDetail_20' ) start [2025-01-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221452', 'tblTempUsageDetail_20' ) end [2025-01-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221452', 'tblTempVendorCDR_20' ) start [2025-01-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221452', 'tblTempVendorCDR_20' ) end [2025-01-11 03:18:18] Production.INFO: ProcessCDR(1,14221452,1,1,2) [2025-01-11 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221452', 'tblTempUsageDetail_20' ) start [2025-01-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221452', 'tblTempUsageDetail_20' ) end [2025-01-11 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:18:21] Production.INFO: ==28169== Releasing lock... [2025-01-11 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:19:05 [end_date_ymd] => 2025-01-11 03:19:05 [RateCDR] => 1 ) [2025-01-11 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:19:05' and `end` < '2025-01-11 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:19:19] Production.INFO: count ==399 [2025-01-11 03:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:19:05 - End Time 2025-01-11 03:19:05 [2025-01-11 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221457', 'tblTempUsageDetail_20' ) start [2025-01-11 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221457', 'tblTempUsageDetail_20' ) end [2025-01-11 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221457', 'tblTempVendorCDR_20' ) start [2025-01-11 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221457', 'tblTempVendorCDR_20' ) end [2025-01-11 03:19:19] Production.INFO: ProcessCDR(1,14221457,1,1,2) [2025-01-11 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221457', 'tblTempUsageDetail_20' ) start [2025-01-11 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221457', 'tblTempUsageDetail_20' ) end [2025-01-11 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:19:22] Production.INFO: ==28263== Releasing lock... [2025-01-11 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:20:05 [end_date_ymd] => 2025-01-11 03:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:20:05' and `end` < '2025-01-11 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-11 03:20:18] Production.INFO: count ==398 [2025-01-11 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:20:05 - End Time 2025-01-11 03:20:05 [2025-01-11 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221462', 'tblTempUsageDetail_20' ) start [2025-01-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221462', 'tblTempUsageDetail_20' ) end [2025-01-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221462', 'tblTempVendorCDR_20' ) start [2025-01-11 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221462', 'tblTempVendorCDR_20' ) end [2025-01-11 03:20:18] Production.INFO: ProcessCDR(1,14221462,1,1,2) [2025-01-11 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221462', 'tblTempUsageDetail_20' ) start [2025-01-11 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221462', 'tblTempUsageDetail_20' ) end [2025-01-11 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:20:21] Production.INFO: ==28389== Releasing lock... [2025-01-11 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:21:05 [end_date_ymd] => 2025-01-11 03:21:05 [RateCDR] => 1 ) [2025-01-11 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:21:05' and `end` < '2025-01-11 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:21:19] Production.INFO: count ==371 [2025-01-11 03:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:21:05 - End Time 2025-01-11 03:21:05 [2025-01-11 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221468', 'tblTempUsageDetail_20' ) start [2025-01-11 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221468', 'tblTempUsageDetail_20' ) end [2025-01-11 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221468', 'tblTempVendorCDR_20' ) start [2025-01-11 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221468', 'tblTempVendorCDR_20' ) end [2025-01-11 03:21:19] Production.INFO: ProcessCDR(1,14221468,1,1,2) [2025-01-11 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221468', 'tblTempUsageDetail_20' ) start [2025-01-11 03:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221468', 'tblTempUsageDetail_20' ) end [2025-01-11 03:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:21:24] Production.INFO: ==28511== Releasing lock... [2025-01-11 03:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:21:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:22:05 [end_date_ymd] => 2025-01-11 03:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:22:05' and `end` < '2025-01-11 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-11 03:22:19] Production.INFO: count ==370 [2025-01-11 03:22:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:22:05 - End Time 2025-01-11 03:22:05 [2025-01-11 03:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221473', 'tblTempUsageDetail_20' ) start [2025-01-11 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221473', 'tblTempUsageDetail_20' ) end [2025-01-11 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221473', 'tblTempVendorCDR_20' ) start [2025-01-11 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221473', 'tblTempVendorCDR_20' ) end [2025-01-11 03:22:20] Production.INFO: ProcessCDR(1,14221473,1,1,2) [2025-01-11 03:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221473', 'tblTempUsageDetail_20' ) start [2025-01-11 03:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221473', 'tblTempUsageDetail_20' ) end [2025-01-11 03:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:22:24] Production.INFO: ==28668== Releasing lock... [2025-01-11 03:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:22:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:23:05 [end_date_ymd] => 2025-01-11 03:23:05 [RateCDR] => 1 ) [2025-01-11 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:23:05' and `end` < '2025-01-11 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:23:20] Production.INFO: count ==370 [2025-01-11 03:23:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:23:05 - End Time 2025-01-11 03:23:05 [2025-01-11 03:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221478', 'tblTempUsageDetail_20' ) start [2025-01-11 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221478', 'tblTempUsageDetail_20' ) end [2025-01-11 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221478', 'tblTempVendorCDR_20' ) start [2025-01-11 03:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221478', 'tblTempVendorCDR_20' ) end [2025-01-11 03:23:20] Production.INFO: ProcessCDR(1,14221478,1,1,2) [2025-01-11 03:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221478', 'tblTempUsageDetail_20' ) start [2025-01-11 03:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221478', 'tblTempUsageDetail_20' ) end [2025-01-11 03:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:23:24] Production.INFO: ==28785== Releasing lock... [2025-01-11 03:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:23:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:24:05 [end_date_ymd] => 2025-01-11 03:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:24:05' and `end` < '2025-01-11 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-11 03:24:19] Production.INFO: count ==371 [2025-01-11 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:24:05 - End Time 2025-01-11 03:24:05 [2025-01-11 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221483', 'tblTempUsageDetail_20' ) start [2025-01-11 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221483', 'tblTempUsageDetail_20' ) end [2025-01-11 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221483', 'tblTempVendorCDR_20' ) start [2025-01-11 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221483', 'tblTempVendorCDR_20' ) end [2025-01-11 03:24:19] Production.INFO: ProcessCDR(1,14221483,1,1,2) [2025-01-11 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221483', 'tblTempUsageDetail_20' ) start [2025-01-11 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221483', 'tblTempUsageDetail_20' ) end [2025-01-11 03:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:24:23] Production.INFO: ==28900== Releasing lock... [2025-01-11 03:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:24:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:25:05 [end_date_ymd] => 2025-01-11 03:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:25:05' and `end` < '2025-01-11 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-11 03:25:18] Production.INFO: count ==369 [2025-01-11 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:25:05 - End Time 2025-01-11 03:25:05 [2025-01-11 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221488', 'tblTempUsageDetail_20' ) start [2025-01-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221488', 'tblTempUsageDetail_20' ) end [2025-01-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221488', 'tblTempVendorCDR_20' ) start [2025-01-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221488', 'tblTempVendorCDR_20' ) end [2025-01-11 03:25:18] Production.INFO: ProcessCDR(1,14221488,1,1,2) [2025-01-11 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221488', 'tblTempUsageDetail_20' ) start [2025-01-11 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221488', 'tblTempUsageDetail_20' ) end [2025-01-11 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:25:23] Production.INFO: ==29019== Releasing lock... [2025-01-11 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:26:04 [end_date_ymd] => 2025-01-11 03:26:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:26:04' and `end` < '2025-01-11 03: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-11 03:26:19] Production.INFO: count ==368 [2025-01-11 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:26:04 - End Time 2025-01-11 03:26:04 [2025-01-11 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221493', 'tblTempUsageDetail_20' ) start [2025-01-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221493', 'tblTempUsageDetail_20' ) end [2025-01-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221493', 'tblTempVendorCDR_20' ) start [2025-01-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221493', 'tblTempVendorCDR_20' ) end [2025-01-11 03:26:19] Production.INFO: ProcessCDR(1,14221493,1,1,2) [2025-01-11 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221493', 'tblTempUsageDetail_20' ) start [2025-01-11 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221493', 'tblTempUsageDetail_20' ) end [2025-01-11 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:26:22] Production.INFO: ==29134== Releasing lock... [2025-01-11 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:27:05 [end_date_ymd] => 2025-01-11 03:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:27:05' and `end` < '2025-01-11 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-11 03:27:17] Production.INFO: count ==368 [2025-01-11 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:27:05 - End Time 2025-01-11 03:27:05 [2025-01-11 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221498', 'tblTempUsageDetail_20' ) start [2025-01-11 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221498', 'tblTempUsageDetail_20' ) end [2025-01-11 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221498', 'tblTempVendorCDR_20' ) start [2025-01-11 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221498', 'tblTempVendorCDR_20' ) end [2025-01-11 03:27:18] Production.INFO: ProcessCDR(1,14221498,1,1,2) [2025-01-11 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221498', 'tblTempUsageDetail_20' ) start [2025-01-11 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221498', 'tblTempUsageDetail_20' ) end [2025-01-11 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:27:21] Production.INFO: ==29258== Releasing lock... [2025-01-11 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:28:05 [end_date_ymd] => 2025-01-11 03:28:05 [RateCDR] => 1 ) [2025-01-11 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:28:05' and `end` < '2025-01-11 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:28:18] Production.INFO: count ==368 [2025-01-11 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:28:05 - End Time 2025-01-11 03:28:05 [2025-01-11 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221502', 'tblTempUsageDetail_20' ) start [2025-01-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221502', 'tblTempUsageDetail_20' ) end [2025-01-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221502', 'tblTempVendorCDR_20' ) start [2025-01-11 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221502', 'tblTempVendorCDR_20' ) end [2025-01-11 03:28:18] Production.INFO: ProcessCDR(1,14221502,1,1,2) [2025-01-11 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221502', 'tblTempUsageDetail_20' ) start [2025-01-11 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221502', 'tblTempUsageDetail_20' ) end [2025-01-11 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:28:22] Production.INFO: ==29380== Releasing lock... [2025-01-11 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:29:05 [end_date_ymd] => 2025-01-11 03:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:29:05' and `end` < '2025-01-11 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-11 03:29:18] Production.INFO: count ==368 [2025-01-11 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:29:05 - End Time 2025-01-11 03:29:05 [2025-01-11 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221508', 'tblTempUsageDetail_20' ) start [2025-01-11 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221508', 'tblTempUsageDetail_20' ) end [2025-01-11 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221508', 'tblTempVendorCDR_20' ) start [2025-01-11 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221508', 'tblTempVendorCDR_20' ) end [2025-01-11 03:29:18] Production.INFO: ProcessCDR(1,14221508,1,1,2) [2025-01-11 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221508', 'tblTempUsageDetail_20' ) start [2025-01-11 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221508', 'tblTempUsageDetail_20' ) end [2025-01-11 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:29:21] Production.INFO: ==29478== Releasing lock... [2025-01-11 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:30:05 [end_date_ymd] => 2025-01-11 03:30:05 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:30:05' and `end` < '2025-01-11 03: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-11 03:30:19] Production.INFO: count ==366 [2025-01-11 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:30:05 - End Time 2025-01-11 03:30:05 [2025-01-11 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221514', 'tblTempUsageDetail_20' ) start [2025-01-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221514', 'tblTempUsageDetail_20' ) end [2025-01-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221514', 'tblTempVendorCDR_20' ) start [2025-01-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221514', 'tblTempVendorCDR_20' ) end [2025-01-11 03:30:19] Production.INFO: ProcessCDR(1,14221514,1,1,2) [2025-01-11 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221514', 'tblTempUsageDetail_20' ) start [2025-01-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221514', 'tblTempUsageDetail_20' ) end [2025-01-11 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:30:22] Production.INFO: ==29548== Releasing lock... [2025-01-11 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:31:05 [end_date_ymd] => 2025-01-11 03:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:31:05' and `end` < '2025-01-11 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-11 03:31:18] Production.INFO: count ==362 [2025-01-11 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:31:05 - End Time 2025-01-11 03:31:05 [2025-01-11 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221519', 'tblTempUsageDetail_20' ) start [2025-01-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221519', 'tblTempUsageDetail_20' ) end [2025-01-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221519', 'tblTempVendorCDR_20' ) start [2025-01-11 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221519', 'tblTempVendorCDR_20' ) end [2025-01-11 03:31:18] Production.INFO: ProcessCDR(1,14221519,1,1,2) [2025-01-11 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221519', 'tblTempUsageDetail_20' ) start [2025-01-11 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221519', 'tblTempUsageDetail_20' ) end [2025-01-11 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:31:21] Production.INFO: ==29620== Releasing lock... [2025-01-11 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:32:04 [end_date_ymd] => 2025-01-11 03:32:04 [RateCDR] => 1 ) [2025-01-11 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-11 00:32:04' and `end` < '2025-01-11 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-11 03:32:18] Production.INFO: count ==362 [2025-01-11 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:32:04 - End Time 2025-01-11 03:32:04 [2025-01-11 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221524', 'tblTempUsageDetail_20' ) start [2025-01-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221524', 'tblTempUsageDetail_20' ) end [2025-01-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221524', 'tblTempVendorCDR_20' ) start [2025-01-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221524', 'tblTempVendorCDR_20' ) end [2025-01-11 03:32:18] Production.INFO: ProcessCDR(1,14221524,1,1,2) [2025-01-11 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221524', 'tblTempUsageDetail_20' ) start [2025-01-11 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221524', 'tblTempUsageDetail_20' ) end [2025-01-11 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:32:21] Production.INFO: ==29688== Releasing lock... [2025-01-11 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:33:05 [end_date_ymd] => 2025-01-11 03:33:05 [RateCDR] => 1 ) [2025-01-11 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:33:05' and `end` < '2025-01-11 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:33:19] Production.INFO: count ==362 [2025-01-11 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:33:05 - End Time 2025-01-11 03:33:05 [2025-01-11 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221529', 'tblTempUsageDetail_20' ) start [2025-01-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221529', 'tblTempUsageDetail_20' ) end [2025-01-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221529', 'tblTempVendorCDR_20' ) start [2025-01-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221529', 'tblTempVendorCDR_20' ) end [2025-01-11 03:33:19] Production.INFO: ProcessCDR(1,14221529,1,1,2) [2025-01-11 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221529', 'tblTempUsageDetail_20' ) start [2025-01-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221529', 'tblTempUsageDetail_20' ) end [2025-01-11 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:33:22] Production.INFO: ==29801== Releasing lock... [2025-01-11 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:34:05 [end_date_ymd] => 2025-01-11 03:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:34:05' and `end` < '2025-01-11 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-11 03:34:18] Production.INFO: count ==360 [2025-01-11 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:34:05 - End Time 2025-01-11 03:34:05 [2025-01-11 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221534', 'tblTempUsageDetail_20' ) start [2025-01-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221534', 'tblTempUsageDetail_20' ) end [2025-01-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221534', 'tblTempVendorCDR_20' ) start [2025-01-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221534', 'tblTempVendorCDR_20' ) end [2025-01-11 03:34:18] Production.INFO: ProcessCDR(1,14221534,1,1,2) [2025-01-11 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221534', 'tblTempUsageDetail_20' ) start [2025-01-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221534', 'tblTempUsageDetail_20' ) end [2025-01-11 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:34:22] Production.INFO: ==29871== Releasing lock... [2025-01-11 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:35:05 [end_date_ymd] => 2025-01-11 03:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:35:05' and `end` < '2025-01-11 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-11 03:35:18] Production.INFO: count ==358 [2025-01-11 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:35:05 - End Time 2025-01-11 03:35:05 [2025-01-11 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221539', 'tblTempUsageDetail_20' ) start [2025-01-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221539', 'tblTempUsageDetail_20' ) end [2025-01-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221539', 'tblTempVendorCDR_20' ) start [2025-01-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221539', 'tblTempVendorCDR_20' ) end [2025-01-11 03:35:18] Production.INFO: ProcessCDR(1,14221539,1,1,2) [2025-01-11 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221539', 'tblTempUsageDetail_20' ) start [2025-01-11 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221539', 'tblTempUsageDetail_20' ) end [2025-01-11 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:35:21] Production.INFO: ==29940== Releasing lock... [2025-01-11 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:36:05 [end_date_ymd] => 2025-01-11 03:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:36:05' and `end` < '2025-01-11 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-11 03:36:19] Production.INFO: count ==358 [2025-01-11 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:36:05 - End Time 2025-01-11 03:36:05 [2025-01-11 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221544', 'tblTempUsageDetail_20' ) start [2025-01-11 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221544', 'tblTempUsageDetail_20' ) end [2025-01-11 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221544', 'tblTempVendorCDR_20' ) start [2025-01-11 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221544', 'tblTempVendorCDR_20' ) end [2025-01-11 03:36:19] Production.INFO: ProcessCDR(1,14221544,1,1,2) [2025-01-11 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221544', 'tblTempUsageDetail_20' ) start [2025-01-11 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221544', 'tblTempUsageDetail_20' ) end [2025-01-11 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:36:22] Production.INFO: ==30010== Releasing lock... [2025-01-11 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:37:04 [end_date_ymd] => 2025-01-11 03:37:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:37:04' and `end` < '2025-01-11 03: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-11 03:37:18] Production.INFO: count ==357 [2025-01-11 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:37:04 - End Time 2025-01-11 03:37:04 [2025-01-11 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221549', 'tblTempUsageDetail_20' ) start [2025-01-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221549', 'tblTempUsageDetail_20' ) end [2025-01-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221549', 'tblTempVendorCDR_20' ) start [2025-01-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221549', 'tblTempVendorCDR_20' ) end [2025-01-11 03:37:18] Production.INFO: ProcessCDR(1,14221549,1,1,2) [2025-01-11 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221549', 'tblTempUsageDetail_20' ) start [2025-01-11 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221549', 'tblTempUsageDetail_20' ) end [2025-01-11 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:37:21] Production.INFO: ==30078== Releasing lock... [2025-01-11 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:38:05 [end_date_ymd] => 2025-01-11 03:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:38:05' and `end` < '2025-01-11 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-11 03:38:20] Production.INFO: count ==356 [2025-01-11 03:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 00:38:05 - End Time 2025-01-11 03:38:05 [2025-01-11 03:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221554', 'tblTempUsageDetail_20' ) start [2025-01-11 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221554', 'tblTempUsageDetail_20' ) end [2025-01-11 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221554', 'tblTempVendorCDR_20' ) start [2025-01-11 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221554', 'tblTempVendorCDR_20' ) end [2025-01-11 03:38:20] Production.INFO: ProcessCDR(1,14221554,1,1,2) [2025-01-11 03:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221554', 'tblTempUsageDetail_20' ) start [2025-01-11 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221554', 'tblTempUsageDetail_20' ) end [2025-01-11 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:38:23] Production.INFO: ==30191== Releasing lock... [2025-01-11 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:38:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:39:05 [end_date_ymd] => 2025-01-11 03:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:39:05' and `end` < '2025-01-11 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-11 03:39:18] Production.INFO: count ==356 [2025-01-11 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:39:05 - End Time 2025-01-11 03:39:05 [2025-01-11 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221559', 'tblTempUsageDetail_20' ) start [2025-01-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221559', 'tblTempUsageDetail_20' ) end [2025-01-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221559', 'tblTempVendorCDR_20' ) start [2025-01-11 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221559', 'tblTempVendorCDR_20' ) end [2025-01-11 03:39:18] Production.INFO: ProcessCDR(1,14221559,1,1,2) [2025-01-11 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221559', 'tblTempUsageDetail_20' ) start [2025-01-11 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221559', 'tblTempUsageDetail_20' ) end [2025-01-11 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:39:21] Production.INFO: ==30262== Releasing lock... [2025-01-11 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:40:05 [end_date_ymd] => 2025-01-11 03:40:05 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:40:05' and `end` < '2025-01-11 03: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-11 03:40:18] Production.INFO: count ==352 [2025-01-11 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:40:05 - End Time 2025-01-11 03:40:05 [2025-01-11 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221565', 'tblTempUsageDetail_20' ) start [2025-01-11 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221565', 'tblTempUsageDetail_20' ) end [2025-01-11 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221565', 'tblTempVendorCDR_20' ) start [2025-01-11 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221565', 'tblTempVendorCDR_20' ) end [2025-01-11 03:40:18] Production.INFO: ProcessCDR(1,14221565,1,1,2) [2025-01-11 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221565', 'tblTempUsageDetail_20' ) start [2025-01-11 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221565', 'tblTempUsageDetail_20' ) end [2025-01-11 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:40:21] Production.INFO: ==30339== Releasing lock... [2025-01-11 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:41:04 [end_date_ymd] => 2025-01-11 03:41:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:41:04' and `end` < '2025-01-11 03: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-11 03:41:18] Production.INFO: count ==342 [2025-01-11 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:41:04 - End Time 2025-01-11 03:41:04 [2025-01-11 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221570', 'tblTempUsageDetail_20' ) start [2025-01-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221570', 'tblTempUsageDetail_20' ) end [2025-01-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221570', 'tblTempVendorCDR_20' ) start [2025-01-11 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221570', 'tblTempVendorCDR_20' ) end [2025-01-11 03:41:18] Production.INFO: ProcessCDR(1,14221570,1,1,2) [2025-01-11 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221570', 'tblTempUsageDetail_20' ) start [2025-01-11 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221570', 'tblTempUsageDetail_20' ) end [2025-01-11 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:41:21] Production.INFO: ==30411== Releasing lock... [2025-01-11 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:41:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:42:05 [end_date_ymd] => 2025-01-11 03:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:42:05' and `end` < '2025-01-11 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-11 03:42:18] Production.INFO: count ==339 [2025-01-11 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:42:05 - End Time 2025-01-11 03:42:05 [2025-01-11 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221575', 'tblTempUsageDetail_20' ) start [2025-01-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221575', 'tblTempUsageDetail_20' ) end [2025-01-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221575', 'tblTempVendorCDR_20' ) start [2025-01-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221575', 'tblTempVendorCDR_20' ) end [2025-01-11 03:42:18] Production.INFO: ProcessCDR(1,14221575,1,1,2) [2025-01-11 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221575', 'tblTempUsageDetail_20' ) start [2025-01-11 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221575', 'tblTempUsageDetail_20' ) end [2025-01-11 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:42:21] Production.INFO: ==30482== Releasing lock... [2025-01-11 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:42:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:43:04 [end_date_ymd] => 2025-01-11 03:43:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:43:04' and `end` < '2025-01-11 03: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-11 03:43:18] Production.INFO: count ==338 [2025-01-11 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:43:04 - End Time 2025-01-11 03:43:04 [2025-01-11 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221580', 'tblTempUsageDetail_20' ) start [2025-01-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221580', 'tblTempUsageDetail_20' ) end [2025-01-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221580', 'tblTempVendorCDR_20' ) start [2025-01-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221580', 'tblTempVendorCDR_20' ) end [2025-01-11 03:43:18] Production.INFO: ProcessCDR(1,14221580,1,1,2) [2025-01-11 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221580', 'tblTempUsageDetail_20' ) start [2025-01-11 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221580', 'tblTempUsageDetail_20' ) end [2025-01-11 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:43:21] Production.INFO: ==30551== Releasing lock... [2025-01-11 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:43:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:44:05 [end_date_ymd] => 2025-01-11 03:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:44:05' and `end` < '2025-01-11 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-11 03:44:19] Production.INFO: count ==338 [2025-01-11 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:44:05 - End Time 2025-01-11 03:44:05 [2025-01-11 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221585', 'tblTempUsageDetail_20' ) start [2025-01-11 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221585', 'tblTempUsageDetail_20' ) end [2025-01-11 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221585', 'tblTempVendorCDR_20' ) start [2025-01-11 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221585', 'tblTempVendorCDR_20' ) end [2025-01-11 03:44:19] Production.INFO: ProcessCDR(1,14221585,1,1,2) [2025-01-11 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221585', 'tblTempUsageDetail_20' ) start [2025-01-11 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221585', 'tblTempUsageDetail_20' ) end [2025-01-11 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:44:22] Production.INFO: ==30621== Releasing lock... [2025-01-11 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:44:22] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:45:05 [end_date_ymd] => 2025-01-11 03:45:05 [RateCDR] => 1 ) [2025-01-11 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:45:05' and `end` < '2025-01-11 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:45:17] Production.INFO: count ==338 [2025-01-11 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-11 00:45:05 - End Time 2025-01-11 03:45:05 [2025-01-11 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221590', 'tblTempUsageDetail_20' ) start [2025-01-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221590', 'tblTempUsageDetail_20' ) end [2025-01-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221590', 'tblTempVendorCDR_20' ) start [2025-01-11 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221590', 'tblTempVendorCDR_20' ) end [2025-01-11 03:45:17] Production.INFO: ProcessCDR(1,14221590,1,1,2) [2025-01-11 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221590', 'tblTempUsageDetail_20' ) start [2025-01-11 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221590', 'tblTempUsageDetail_20' ) end [2025-01-11 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:45:21] Production.INFO: ==30692== Releasing lock... [2025-01-11 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:45:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:46:05 [end_date_ymd] => 2025-01-11 03:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:46:05' and `end` < '2025-01-11 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-11 03:46:18] Production.INFO: count ==338 [2025-01-11 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:46:05 - End Time 2025-01-11 03:46:05 [2025-01-11 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221595', 'tblTempUsageDetail_20' ) start [2025-01-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221595', 'tblTempUsageDetail_20' ) end [2025-01-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221595', 'tblTempVendorCDR_20' ) start [2025-01-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221595', 'tblTempVendorCDR_20' ) end [2025-01-11 03:46:18] Production.INFO: ProcessCDR(1,14221595,1,1,2) [2025-01-11 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221595', 'tblTempUsageDetail_20' ) start [2025-01-11 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221595', 'tblTempUsageDetail_20' ) end [2025-01-11 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:46:21] Production.INFO: ==30769== Releasing lock... [2025-01-11 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:46:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:47:05 [end_date_ymd] => 2025-01-11 03:47:05 [RateCDR] => 1 ) [2025-01-11 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:47:05' and `end` < '2025-01-11 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:47:19] Production.INFO: count ==338 [2025-01-11 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:47:05 - End Time 2025-01-11 03:47:05 [2025-01-11 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221600', 'tblTempUsageDetail_20' ) start [2025-01-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221600', 'tblTempUsageDetail_20' ) end [2025-01-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221600', 'tblTempVendorCDR_20' ) start [2025-01-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221600', 'tblTempVendorCDR_20' ) end [2025-01-11 03:47:19] Production.INFO: ProcessCDR(1,14221600,1,1,2) [2025-01-11 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221600', 'tblTempUsageDetail_20' ) start [2025-01-11 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221600', 'tblTempUsageDetail_20' ) end [2025-01-11 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:47:22] Production.INFO: ==30841== Releasing lock... [2025-01-11 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:47:22] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:48:05 [end_date_ymd] => 2025-01-11 03:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:48:05' and `end` < '2025-01-11 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-11 03:48:18] Production.INFO: count ==338 [2025-01-11 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:48:05 - End Time 2025-01-11 03:48:05 [2025-01-11 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221605', 'tblTempUsageDetail_20' ) start [2025-01-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221605', 'tblTempUsageDetail_20' ) end [2025-01-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221605', 'tblTempVendorCDR_20' ) start [2025-01-11 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221605', 'tblTempVendorCDR_20' ) end [2025-01-11 03:48:18] Production.INFO: ProcessCDR(1,14221605,1,1,2) [2025-01-11 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221605', 'tblTempUsageDetail_20' ) start [2025-01-11 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221605', 'tblTempUsageDetail_20' ) end [2025-01-11 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:48:21] Production.INFO: ==30911== Releasing lock... [2025-01-11 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:48:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:49:05 [end_date_ymd] => 2025-01-11 03:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:49:05' and `end` < '2025-01-11 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-11 03:49:18] Production.INFO: count ==338 [2025-01-11 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:49:05 - End Time 2025-01-11 03:49:05 [2025-01-11 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221610', 'tblTempUsageDetail_20' ) start [2025-01-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221610', 'tblTempUsageDetail_20' ) end [2025-01-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221610', 'tblTempVendorCDR_20' ) start [2025-01-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221610', 'tblTempVendorCDR_20' ) end [2025-01-11 03:49:18] Production.INFO: ProcessCDR(1,14221610,1,1,2) [2025-01-11 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221610', 'tblTempUsageDetail_20' ) start [2025-01-11 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221610', 'tblTempUsageDetail_20' ) end [2025-01-11 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:49:21] Production.INFO: ==30984== Releasing lock... [2025-01-11 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:49:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:50:05 [end_date_ymd] => 2025-01-11 03:50:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:50:05' and `end` < '2025-01-11 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-11 03:50:18] Production.INFO: count ==334 [2025-01-11 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:50:05 - End Time 2025-01-11 03:50:05 [2025-01-11 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221616', 'tblTempUsageDetail_20' ) start [2025-01-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221616', 'tblTempUsageDetail_20' ) end [2025-01-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221616', 'tblTempVendorCDR_20' ) start [2025-01-11 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221616', 'tblTempVendorCDR_20' ) end [2025-01-11 03:50:18] Production.INFO: ProcessCDR(1,14221616,1,1,2) [2025-01-11 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221616', 'tblTempUsageDetail_20' ) start [2025-01-11 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221616', 'tblTempUsageDetail_20' ) end [2025-01-11 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:50:22] Production.INFO: ==31057== Releasing lock... [2025-01-11 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:50:22] Production.INFO: 30 MB #Memory Used# [2025-01-11 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:51:05 [end_date_ymd] => 2025-01-11 03:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:51:05' and `end` < '2025-01-11 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-11 03:51:18] Production.INFO: count ==312 [2025-01-11 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:51:05 - End Time 2025-01-11 03:51:05 [2025-01-11 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221621', 'tblTempUsageDetail_20' ) start [2025-01-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221621', 'tblTempUsageDetail_20' ) end [2025-01-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221621', 'tblTempVendorCDR_20' ) start [2025-01-11 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221621', 'tblTempVendorCDR_20' ) end [2025-01-11 03:51:18] Production.INFO: ProcessCDR(1,14221621,1,1,2) [2025-01-11 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221621', 'tblTempUsageDetail_20' ) start [2025-01-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221621', 'tblTempUsageDetail_20' ) end [2025-01-11 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:51:22] Production.INFO: ==31134== Releasing lock... [2025-01-11 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:52:05 [end_date_ymd] => 2025-01-11 03:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:52:05' and `end` < '2025-01-11 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-11 03:52:19] Production.INFO: count ==312 [2025-01-11 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:52:05 - End Time 2025-01-11 03:52:05 [2025-01-11 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221626', 'tblTempUsageDetail_20' ) start [2025-01-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221626', 'tblTempUsageDetail_20' ) end [2025-01-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221626', 'tblTempVendorCDR_20' ) start [2025-01-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221626', 'tblTempVendorCDR_20' ) end [2025-01-11 03:52:19] Production.INFO: ProcessCDR(1,14221626,1,1,2) [2025-01-11 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221626', 'tblTempUsageDetail_20' ) start [2025-01-11 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221626', 'tblTempUsageDetail_20' ) end [2025-01-11 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:52:22] Production.INFO: ==31220== Releasing lock... [2025-01-11 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:53:05 [end_date_ymd] => 2025-01-11 03:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:53:05' and `end` < '2025-01-11 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-11 03:53:18] Production.INFO: count ==312 [2025-01-11 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:53:05 - End Time 2025-01-11 03:53:05 [2025-01-11 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221631', 'tblTempUsageDetail_20' ) start [2025-01-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221631', 'tblTempUsageDetail_20' ) end [2025-01-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221631', 'tblTempVendorCDR_20' ) start [2025-01-11 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221631', 'tblTempVendorCDR_20' ) end [2025-01-11 03:53:18] Production.INFO: ProcessCDR(1,14221631,1,1,2) [2025-01-11 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221631', 'tblTempUsageDetail_20' ) start [2025-01-11 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221631', 'tblTempUsageDetail_20' ) end [2025-01-11 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:53:21] Production.INFO: ==31347== Releasing lock... [2025-01-11 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:54:04 [end_date_ymd] => 2025-01-11 03:54:04 [RateCDR] => 1 ) [2025-01-11 03: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-11 00:54:04' and `end` < '2025-01-11 03: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-11 03:54:17] Production.INFO: count ==312 [2025-01-11 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-11 00:54:04 - End Time 2025-01-11 03:54:04 [2025-01-11 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221636', 'tblTempUsageDetail_20' ) start [2025-01-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221636', 'tblTempUsageDetail_20' ) end [2025-01-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221636', 'tblTempVendorCDR_20' ) start [2025-01-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221636', 'tblTempVendorCDR_20' ) end [2025-01-11 03:54:17] Production.INFO: ProcessCDR(1,14221636,1,1,2) [2025-01-11 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221636', 'tblTempUsageDetail_20' ) start [2025-01-11 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221636', 'tblTempUsageDetail_20' ) end [2025-01-11 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:54:20] Production.INFO: ==31427== Releasing lock... [2025-01-11 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:55:05 [end_date_ymd] => 2025-01-11 03:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:55:05' and `end` < '2025-01-11 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-11 03:55:18] Production.INFO: count ==312 [2025-01-11 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:55:05 - End Time 2025-01-11 03:55:05 [2025-01-11 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221641', 'tblTempUsageDetail_20' ) start [2025-01-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221641', 'tblTempUsageDetail_20' ) end [2025-01-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221641', 'tblTempVendorCDR_20' ) start [2025-01-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221641', 'tblTempVendorCDR_20' ) end [2025-01-11 03:55:18] Production.INFO: ProcessCDR(1,14221641,1,1,2) [2025-01-11 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221641', 'tblTempUsageDetail_20' ) start [2025-01-11 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221641', 'tblTempUsageDetail_20' ) end [2025-01-11 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:55:21] Production.INFO: ==31506== Releasing lock... [2025-01-11 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:56:04 [end_date_ymd] => 2025-01-11 03:56:04 [RateCDR] => 1 ) [2025-01-11 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-11 00:56:04' and `end` < '2025-01-11 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-11 03:56:19] Production.INFO: count ==312 [2025-01-11 03:56:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:56:04 - End Time 2025-01-11 03:56:04 [2025-01-11 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221646', 'tblTempUsageDetail_20' ) start [2025-01-11 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221646', 'tblTempUsageDetail_20' ) end [2025-01-11 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221646', 'tblTempVendorCDR_20' ) start [2025-01-11 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221646', 'tblTempVendorCDR_20' ) end [2025-01-11 03:56:19] Production.INFO: ProcessCDR(1,14221646,1,1,2) [2025-01-11 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221646', 'tblTempUsageDetail_20' ) start [2025-01-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221646', 'tblTempUsageDetail_20' ) end [2025-01-11 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:56:22] Production.INFO: ==31591== Releasing lock... [2025-01-11 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:57:05 [end_date_ymd] => 2025-01-11 03:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:57:05' and `end` < '2025-01-11 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-11 03:57:18] Production.INFO: count ==311 [2025-01-11 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-11 00:57:05 - End Time 2025-01-11 03:57:05 [2025-01-11 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221651', 'tblTempUsageDetail_20' ) start [2025-01-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221651', 'tblTempUsageDetail_20' ) end [2025-01-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221651', 'tblTempVendorCDR_20' ) start [2025-01-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221651', 'tblTempVendorCDR_20' ) end [2025-01-11 03:57:18] Production.INFO: ProcessCDR(1,14221651,1,1,2) [2025-01-11 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221651', 'tblTempUsageDetail_20' ) start [2025-01-11 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221651', 'tblTempUsageDetail_20' ) end [2025-01-11 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:57:21] Production.INFO: ==31674== Releasing lock... [2025-01-11 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:58:06 [end_date_ymd] => 2025-01-11 03:58:06 [RateCDR] => 1 ) [2025-01-11 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 00:58:06' and `end` < '2025-01-11 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 03:58:19] Production.INFO: count ==311 [2025-01-11 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:58:06 - End Time 2025-01-11 03:58:06 [2025-01-11 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221656', 'tblTempUsageDetail_20' ) start [2025-01-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221656', 'tblTempUsageDetail_20' ) end [2025-01-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221656', 'tblTempVendorCDR_20' ) start [2025-01-11 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221656', 'tblTempVendorCDR_20' ) end [2025-01-11 03:58:19] Production.INFO: ProcessCDR(1,14221656,1,1,2) [2025-01-11 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221656', 'tblTempUsageDetail_20' ) start [2025-01-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221656', 'tblTempUsageDetail_20' ) end [2025-01-11 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:58:22] Production.INFO: ==31754== Releasing lock... [2025-01-11 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 00:59:05 [end_date_ymd] => 2025-01-11 03:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 00:59:05' and `end` < '2025-01-11 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-11 03:59:19] Production.INFO: count ==311 [2025-01-11 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 00:59:05 - End Time 2025-01-11 03:59:05 [2025-01-11 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221661', 'tblTempUsageDetail_20' ) start [2025-01-11 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221661', 'tblTempUsageDetail_20' ) end [2025-01-11 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221661', 'tblTempVendorCDR_20' ) start [2025-01-11 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221661', 'tblTempVendorCDR_20' ) end [2025-01-11 03:59:19] Production.INFO: ProcessCDR(1,14221661,1,1,2) [2025-01-11 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221661', 'tblTempUsageDetail_20' ) start [2025-01-11 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221661', 'tblTempUsageDetail_20' ) end [2025-01-11 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 03:59:22] Production.INFO: ==31848== Releasing lock... [2025-01-11 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 03:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:00:06 [end_date_ymd] => 2025-01-11 04:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 01:00:06' and `end` < '2025-01-11 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-11 04:00:19] Production.INFO: count ==310 [2025-01-11 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:00:06 - End Time 2025-01-11 04:00:06 [2025-01-11 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221667', 'tblTempUsageDetail_20' ) start [2025-01-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221667', 'tblTempUsageDetail_20' ) end [2025-01-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221667', 'tblTempVendorCDR_20' ) start [2025-01-11 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221667', 'tblTempVendorCDR_20' ) end [2025-01-11 04:00:19] Production.INFO: ProcessCDR(1,14221667,1,1,2) [2025-01-11 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221667', 'tblTempUsageDetail_20' ) start [2025-01-11 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221667', 'tblTempUsageDetail_20' ) end [2025-01-11 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:00:22] Production.INFO: ==31940== Releasing lock... [2025-01-11 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:01:05 [end_date_ymd] => 2025-01-11 04:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:01:05' and `end` < '2025-01-11 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-11 04:01:18] Production.INFO: count ==293 [2025-01-11 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:01:05 - End Time 2025-01-11 04:01:05 [2025-01-11 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221673', 'tblTempUsageDetail_20' ) start [2025-01-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221673', 'tblTempUsageDetail_20' ) end [2025-01-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221673', 'tblTempVendorCDR_20' ) start [2025-01-11 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221673', 'tblTempVendorCDR_20' ) end [2025-01-11 04:01:18] Production.INFO: ProcessCDR(1,14221673,1,1,2) [2025-01-11 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221673', 'tblTempUsageDetail_20' ) start [2025-01-11 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221673', 'tblTempUsageDetail_20' ) end [2025-01-11 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:01:23] Production.INFO: ==32039== Releasing lock... [2025-01-11 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:02:05 [end_date_ymd] => 2025-01-11 04:02:05 [RateCDR] => 1 ) [2025-01-11 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:02:05' and `end` < '2025-01-11 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:02:21] Production.INFO: count ==293 [2025-01-11 04:02:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:02:05 - End Time 2025-01-11 04:02:05 [2025-01-11 04:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221678', 'tblTempUsageDetail_20' ) start [2025-01-11 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221678', 'tblTempUsageDetail_20' ) end [2025-01-11 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221678', 'tblTempVendorCDR_20' ) start [2025-01-11 04:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221678', 'tblTempVendorCDR_20' ) end [2025-01-11 04:02:21] Production.INFO: ProcessCDR(1,14221678,1,1,2) [2025-01-11 04:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221678', 'tblTempUsageDetail_20' ) start [2025-01-11 04:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221678', 'tblTempUsageDetail_20' ) end [2025-01-11 04:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:02:25] Production.INFO: ==32124== Releasing lock... [2025-01-11 04:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:02:25] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:03:05 [end_date_ymd] => 2025-01-11 04:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:03:05' and `end` < '2025-01-11 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-11 04:03:20] Production.INFO: count ==294 [2025-01-11 04:03:20] Production.ERROR: pbx CDR StartTime 2025-01-11 01:03:05 - End Time 2025-01-11 04:03:05 [2025-01-11 04:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221683', 'tblTempUsageDetail_20' ) start [2025-01-11 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221683', 'tblTempUsageDetail_20' ) end [2025-01-11 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221683', 'tblTempVendorCDR_20' ) start [2025-01-11 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221683', 'tblTempVendorCDR_20' ) end [2025-01-11 04:03:20] Production.INFO: ProcessCDR(1,14221683,1,1,2) [2025-01-11 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221683', 'tblTempUsageDetail_20' ) start [2025-01-11 04:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221683', 'tblTempUsageDetail_20' ) end [2025-01-11 04:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:03:24] Production.INFO: ==32208== Releasing lock... [2025-01-11 04:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:03:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:04:05 [end_date_ymd] => 2025-01-11 04:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:04:05' and `end` < '2025-01-11 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-11 04:04:19] Production.INFO: count ==294 [2025-01-11 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:04:05 - End Time 2025-01-11 04:04:05 [2025-01-11 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221688', 'tblTempUsageDetail_20' ) start [2025-01-11 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221688', 'tblTempUsageDetail_20' ) end [2025-01-11 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221688', 'tblTempVendorCDR_20' ) start [2025-01-11 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221688', 'tblTempVendorCDR_20' ) end [2025-01-11 04:04:19] Production.INFO: ProcessCDR(1,14221688,1,1,2) [2025-01-11 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221688', 'tblTempUsageDetail_20' ) start [2025-01-11 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221688', 'tblTempUsageDetail_20' ) end [2025-01-11 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:04:22] Production.INFO: ==32291== Releasing lock... [2025-01-11 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:05:04 [end_date_ymd] => 2025-01-11 04:05:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:05:04' and `end` < '2025-01-11 04: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-11 04:05:17] Production.INFO: count ==294 [2025-01-11 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:05:04 - End Time 2025-01-11 04:05:04 [2025-01-11 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221693', 'tblTempUsageDetail_20' ) start [2025-01-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221693', 'tblTempUsageDetail_20' ) end [2025-01-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221693', 'tblTempVendorCDR_20' ) start [2025-01-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221693', 'tblTempVendorCDR_20' ) end [2025-01-11 04:05:18] Production.INFO: ProcessCDR(1,14221693,1,1,2) [2025-01-11 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221693', 'tblTempUsageDetail_20' ) start [2025-01-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221693', 'tblTempUsageDetail_20' ) end [2025-01-11 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:05:21] Production.INFO: ==32375== Releasing lock... [2025-01-11 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:06:05 [end_date_ymd] => 2025-01-11 04:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:06:05' and `end` < '2025-01-11 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-11 04:06:18] Production.INFO: count ==294 [2025-01-11 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:06:05 - End Time 2025-01-11 04:06:05 [2025-01-11 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221698', 'tblTempUsageDetail_20' ) start [2025-01-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221698', 'tblTempUsageDetail_20' ) end [2025-01-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221698', 'tblTempVendorCDR_20' ) start [2025-01-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221698', 'tblTempVendorCDR_20' ) end [2025-01-11 04:06:18] Production.INFO: ProcessCDR(1,14221698,1,1,2) [2025-01-11 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221698', 'tblTempUsageDetail_20' ) start [2025-01-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221698', 'tblTempUsageDetail_20' ) end [2025-01-11 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:06:21] Production.INFO: ==32459== Releasing lock... [2025-01-11 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:07:05 [end_date_ymd] => 2025-01-11 04:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:07:05' and `end` < '2025-01-11 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-11 04:07:19] Production.INFO: count ==294 [2025-01-11 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:07:05 - End Time 2025-01-11 04:07:05 [2025-01-11 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221703', 'tblTempUsageDetail_20' ) start [2025-01-11 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221703', 'tblTempUsageDetail_20' ) end [2025-01-11 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221703', 'tblTempVendorCDR_20' ) start [2025-01-11 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221703', 'tblTempVendorCDR_20' ) end [2025-01-11 04:07:19] Production.INFO: ProcessCDR(1,14221703,1,1,2) [2025-01-11 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221703', 'tblTempUsageDetail_20' ) start [2025-01-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221703', 'tblTempUsageDetail_20' ) end [2025-01-11 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:07:22] Production.INFO: ==32546== Releasing lock... [2025-01-11 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:08:05 [end_date_ymd] => 2025-01-11 04:08:05 [RateCDR] => 1 ) [2025-01-11 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:08:05' and `end` < '2025-01-11 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:08:19] Production.INFO: count ==294 [2025-01-11 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:08:05 - End Time 2025-01-11 04:08:05 [2025-01-11 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221708', 'tblTempUsageDetail_20' ) start [2025-01-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221708', 'tblTempUsageDetail_20' ) end [2025-01-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221708', 'tblTempVendorCDR_20' ) start [2025-01-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221708', 'tblTempVendorCDR_20' ) end [2025-01-11 04:08:19] Production.INFO: ProcessCDR(1,14221708,1,1,2) [2025-01-11 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221708', 'tblTempUsageDetail_20' ) start [2025-01-11 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221708', 'tblTempUsageDetail_20' ) end [2025-01-11 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:08:22] Production.INFO: ==32635== Releasing lock... [2025-01-11 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:09:05 [end_date_ymd] => 2025-01-11 04:09:05 [RateCDR] => 1 ) [2025-01-11 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:09:05' and `end` < '2025-01-11 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:09:18] Production.INFO: count ==294 [2025-01-11 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:09:05 - End Time 2025-01-11 04:09:05 [2025-01-11 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221713', 'tblTempUsageDetail_20' ) start [2025-01-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221713', 'tblTempUsageDetail_20' ) end [2025-01-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221713', 'tblTempVendorCDR_20' ) start [2025-01-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221713', 'tblTempVendorCDR_20' ) end [2025-01-11 04:09:18] Production.INFO: ProcessCDR(1,14221713,1,1,2) [2025-01-11 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221713', 'tblTempUsageDetail_20' ) start [2025-01-11 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221713', 'tblTempUsageDetail_20' ) end [2025-01-11 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:09:21] Production.INFO: ==32760== Releasing lock... [2025-01-11 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-11 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:10:06 [end_date_ymd] => 2025-01-11 04:10:06 [RateCDR] => 1 ) [2025-01-11 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-11 01:10:06' and `end` < '2025-01-11 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-11 04:10:19] Production.INFO: count ==290 [2025-01-11 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:10:06 - End Time 2025-01-11 04:10:06 [2025-01-11 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221719', 'tblTempUsageDetail_20' ) start [2025-01-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221719', 'tblTempUsageDetail_20' ) end [2025-01-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221719', 'tblTempVendorCDR_20' ) start [2025-01-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221719', 'tblTempVendorCDR_20' ) end [2025-01-11 04:10:19] Production.INFO: ProcessCDR(1,14221719,1,1,2) [2025-01-11 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221719', 'tblTempUsageDetail_20' ) start [2025-01-11 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221719', 'tblTempUsageDetail_20' ) end [2025-01-11 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:10:23] Production.INFO: ==405== Releasing lock... [2025-01-11 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:11:05 [end_date_ymd] => 2025-01-11 04:11:05 [RateCDR] => 1 ) [2025-01-11 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:11:05' and `end` < '2025-01-11 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:11:19] Production.INFO: count ==266 [2025-01-11 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:11:05 - End Time 2025-01-11 04:11:05 [2025-01-11 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221724', 'tblTempUsageDetail_20' ) start [2025-01-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221724', 'tblTempUsageDetail_20' ) end [2025-01-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221724', 'tblTempVendorCDR_20' ) start [2025-01-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221724', 'tblTempVendorCDR_20' ) end [2025-01-11 04:11:19] Production.INFO: ProcessCDR(1,14221724,1,1,2) [2025-01-11 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221724', 'tblTempUsageDetail_20' ) start [2025-01-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221724', 'tblTempUsageDetail_20' ) end [2025-01-11 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:11:22] Production.INFO: ==496== Releasing lock... [2025-01-11 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:12:05 [end_date_ymd] => 2025-01-11 04:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:12:05' and `end` < '2025-01-11 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-11 04:12:18] Production.INFO: count ==266 [2025-01-11 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:12:05 - End Time 2025-01-11 04:12:05 [2025-01-11 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221729', 'tblTempUsageDetail_20' ) start [2025-01-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221729', 'tblTempUsageDetail_20' ) end [2025-01-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221729', 'tblTempVendorCDR_20' ) start [2025-01-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221729', 'tblTempVendorCDR_20' ) end [2025-01-11 04:12:18] Production.INFO: ProcessCDR(1,14221729,1,1,2) [2025-01-11 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221729', 'tblTempUsageDetail_20' ) start [2025-01-11 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221729', 'tblTempUsageDetail_20' ) end [2025-01-11 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:12:21] Production.INFO: ==602== Releasing lock... [2025-01-11 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:13:05 [end_date_ymd] => 2025-01-11 04:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:13:05' and `end` < '2025-01-11 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:13:18] Production.INFO: count ==266 [2025-01-11 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:13:05 - End Time 2025-01-11 04:13:05 [2025-01-11 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221734', 'tblTempUsageDetail_20' ) start [2025-01-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221734', 'tblTempUsageDetail_20' ) end [2025-01-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221734', 'tblTempVendorCDR_20' ) start [2025-01-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221734', 'tblTempVendorCDR_20' ) end [2025-01-11 04:13:18] Production.INFO: ProcessCDR(1,14221734,1,1,2) [2025-01-11 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221734', 'tblTempUsageDetail_20' ) start [2025-01-11 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221734', 'tblTempUsageDetail_20' ) end [2025-01-11 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:13:21] Production.INFO: ==712== Releasing lock... [2025-01-11 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:14:05 [end_date_ymd] => 2025-01-11 04:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:14:05' and `end` < '2025-01-11 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-11 04:14:18] Production.INFO: count ==265 [2025-01-11 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:14:05 - End Time 2025-01-11 04:14:05 [2025-01-11 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221739', 'tblTempUsageDetail_20' ) start [2025-01-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221739', 'tblTempUsageDetail_20' ) end [2025-01-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221739', 'tblTempVendorCDR_20' ) start [2025-01-11 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221739', 'tblTempVendorCDR_20' ) end [2025-01-11 04:14:18] Production.INFO: ProcessCDR(1,14221739,1,1,2) [2025-01-11 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221739', 'tblTempUsageDetail_20' ) start [2025-01-11 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221739', 'tblTempUsageDetail_20' ) end [2025-01-11 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:14:21] Production.INFO: ==800== Releasing lock... [2025-01-11 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:15:04 [end_date_ymd] => 2025-01-11 04:15:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:15:04' and `end` < '2025-01-11 04: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-11 04:15:17] Production.INFO: count ==265 [2025-01-11 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-11 01:15:04 - End Time 2025-01-11 04:15:04 [2025-01-11 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221744', 'tblTempUsageDetail_20' ) start [2025-01-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221744', 'tblTempUsageDetail_20' ) end [2025-01-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221744', 'tblTempVendorCDR_20' ) start [2025-01-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221744', 'tblTempVendorCDR_20' ) end [2025-01-11 04:15:18] Production.INFO: ProcessCDR(1,14221744,1,1,2) [2025-01-11 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221744', 'tblTempUsageDetail_20' ) start [2025-01-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221744', 'tblTempUsageDetail_20' ) end [2025-01-11 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:15:21] Production.INFO: ==886== Releasing lock... [2025-01-11 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:16:05 [end_date_ymd] => 2025-01-11 04:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:16:05' and `end` < '2025-01-11 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-11 04:16:19] Production.INFO: count ==264 [2025-01-11 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:16:05 - End Time 2025-01-11 04:16:05 [2025-01-11 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221749', 'tblTempUsageDetail_20' ) start [2025-01-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221749', 'tblTempUsageDetail_20' ) end [2025-01-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221749', 'tblTempVendorCDR_20' ) start [2025-01-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221749', 'tblTempVendorCDR_20' ) end [2025-01-11 04:16:19] Production.INFO: ProcessCDR(1,14221749,1,1,2) [2025-01-11 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221749', 'tblTempUsageDetail_20' ) start [2025-01-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221749', 'tblTempUsageDetail_20' ) end [2025-01-11 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:16:22] Production.INFO: ==961== Releasing lock... [2025-01-11 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:17:04 [end_date_ymd] => 2025-01-11 04:17:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:17:04' and `end` < '2025-01-11 04: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-11 04:17:18] Production.INFO: count ==264 [2025-01-11 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:17:04 - End Time 2025-01-11 04:17:04 [2025-01-11 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221754', 'tblTempUsageDetail_20' ) start [2025-01-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221754', 'tblTempUsageDetail_20' ) end [2025-01-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221754', 'tblTempVendorCDR_20' ) start [2025-01-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221754', 'tblTempVendorCDR_20' ) end [2025-01-11 04:17:18] Production.INFO: ProcessCDR(1,14221754,1,1,2) [2025-01-11 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221754', 'tblTempUsageDetail_20' ) start [2025-01-11 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221754', 'tblTempUsageDetail_20' ) end [2025-01-11 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:17:22] Production.INFO: ==1032== Releasing lock... [2025-01-11 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:18:05 [end_date_ymd] => 2025-01-11 04:18:05 [RateCDR] => 1 ) [2025-01-11 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:18:05' and `end` < '2025-01-11 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:18:19] Production.INFO: count ==261 [2025-01-11 04:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:18:05 - End Time 2025-01-11 04:18:05 [2025-01-11 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221759', 'tblTempUsageDetail_20' ) start [2025-01-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221759', 'tblTempUsageDetail_20' ) end [2025-01-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221759', 'tblTempVendorCDR_20' ) start [2025-01-11 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221759', 'tblTempVendorCDR_20' ) end [2025-01-11 04:18:19] Production.INFO: ProcessCDR(1,14221759,1,1,2) [2025-01-11 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221759', 'tblTempUsageDetail_20' ) start [2025-01-11 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221759', 'tblTempUsageDetail_20' ) end [2025-01-11 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:18:22] Production.INFO: ==1116== Releasing lock... [2025-01-11 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:19:05 [end_date_ymd] => 2025-01-11 04:19:05 [RateCDR] => 1 ) [2025-01-11 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:19:05' and `end` < '2025-01-11 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:19:18] Production.INFO: count ==261 [2025-01-11 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:19:05 - End Time 2025-01-11 04:19:05 [2025-01-11 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221764', 'tblTempUsageDetail_20' ) start [2025-01-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221764', 'tblTempUsageDetail_20' ) end [2025-01-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221764', 'tblTempVendorCDR_20' ) start [2025-01-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221764', 'tblTempVendorCDR_20' ) end [2025-01-11 04:19:18] Production.INFO: ProcessCDR(1,14221764,1,1,2) [2025-01-11 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221764', 'tblTempUsageDetail_20' ) start [2025-01-11 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221764', 'tblTempUsageDetail_20' ) end [2025-01-11 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:19:22] Production.INFO: ==1195== Releasing lock... [2025-01-11 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:20:05 [end_date_ymd] => 2025-01-11 04:20:05 [RateCDR] => 1 ) [2025-01-11 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:20:05' and `end` < '2025-01-11 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:20:18] Production.INFO: count ==258 [2025-01-11 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:20:05 - End Time 2025-01-11 04:20:05 [2025-01-11 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221770', 'tblTempUsageDetail_20' ) start [2025-01-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221770', 'tblTempUsageDetail_20' ) end [2025-01-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221770', 'tblTempVendorCDR_20' ) start [2025-01-11 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221770', 'tblTempVendorCDR_20' ) end [2025-01-11 04:20:18] Production.INFO: ProcessCDR(1,14221770,1,1,2) [2025-01-11 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221770', 'tblTempUsageDetail_20' ) start [2025-01-11 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221770', 'tblTempUsageDetail_20' ) end [2025-01-11 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:20:21] Production.INFO: ==1281== Releasing lock... [2025-01-11 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:21:05 [end_date_ymd] => 2025-01-11 04:21:05 [RateCDR] => 1 ) [2025-01-11 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:21:05' and `end` < '2025-01-11 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:21:19] Production.INFO: count ==240 [2025-01-11 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:21:05 - End Time 2025-01-11 04:21:05 [2025-01-11 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221775', 'tblTempUsageDetail_20' ) start [2025-01-11 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221775', 'tblTempUsageDetail_20' ) end [2025-01-11 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221775', 'tblTempVendorCDR_20' ) start [2025-01-11 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221775', 'tblTempVendorCDR_20' ) end [2025-01-11 04:21:19] Production.INFO: ProcessCDR(1,14221775,1,1,2) [2025-01-11 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221775', 'tblTempUsageDetail_20' ) start [2025-01-11 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221775', 'tblTempUsageDetail_20' ) end [2025-01-11 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:21:22] Production.INFO: ==1354== Releasing lock... [2025-01-11 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:22:05 [end_date_ymd] => 2025-01-11 04:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:22:05' and `end` < '2025-01-11 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-11 04:22:18] Production.INFO: count ==240 [2025-01-11 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:22:05 - End Time 2025-01-11 04:22:05 [2025-01-11 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221780', 'tblTempUsageDetail_20' ) start [2025-01-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221780', 'tblTempUsageDetail_20' ) end [2025-01-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221780', 'tblTempVendorCDR_20' ) start [2025-01-11 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221780', 'tblTempVendorCDR_20' ) end [2025-01-11 04:22:18] Production.INFO: ProcessCDR(1,14221780,1,1,2) [2025-01-11 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221780', 'tblTempUsageDetail_20' ) start [2025-01-11 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221780', 'tblTempUsageDetail_20' ) end [2025-01-11 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:22:21] Production.INFO: ==1425== Releasing lock... [2025-01-11 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:23:04 [end_date_ymd] => 2025-01-11 04:23:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:23:04' and `end` < '2025-01-11 04: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-11 04:23:18] Production.INFO: count ==239 [2025-01-11 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:23:04 - End Time 2025-01-11 04:23:04 [2025-01-11 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221785', 'tblTempUsageDetail_20' ) start [2025-01-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221785', 'tblTempUsageDetail_20' ) end [2025-01-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221785', 'tblTempVendorCDR_20' ) start [2025-01-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221785', 'tblTempVendorCDR_20' ) end [2025-01-11 04:23:18] Production.INFO: ProcessCDR(1,14221785,1,1,2) [2025-01-11 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221785', 'tblTempUsageDetail_20' ) start [2025-01-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221785', 'tblTempUsageDetail_20' ) end [2025-01-11 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:23:22] Production.INFO: ==1498== Releasing lock... [2025-01-11 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:24:05 [end_date_ymd] => 2025-01-11 04:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:24:05' and `end` < '2025-01-11 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-11 04:24:20] Production.INFO: count ==238 [2025-01-11 04:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 01:24:05 - End Time 2025-01-11 04:24:05 [2025-01-11 04:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221790', 'tblTempUsageDetail_20' ) start [2025-01-11 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221790', 'tblTempUsageDetail_20' ) end [2025-01-11 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221790', 'tblTempVendorCDR_20' ) start [2025-01-11 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221790', 'tblTempVendorCDR_20' ) end [2025-01-11 04:24:20] Production.INFO: ProcessCDR(1,14221790,1,1,2) [2025-01-11 04:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221790', 'tblTempUsageDetail_20' ) start [2025-01-11 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221790', 'tblTempUsageDetail_20' ) end [2025-01-11 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:24:23] Production.INFO: ==1604== Releasing lock... [2025-01-11 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:24:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:25:04 [end_date_ymd] => 2025-01-11 04:25:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:25:04' and `end` < '2025-01-11 04: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-11 04:25:18] Production.INFO: count ==238 [2025-01-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:25:04 - End Time 2025-01-11 04:25:04 [2025-01-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221795', 'tblTempUsageDetail_20' ) start [2025-01-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221795', 'tblTempUsageDetail_20' ) end [2025-01-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221795', 'tblTempVendorCDR_20' ) start [2025-01-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221795', 'tblTempVendorCDR_20' ) end [2025-01-11 04:25:18] Production.INFO: ProcessCDR(1,14221795,1,1,2) [2025-01-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221795', 'tblTempUsageDetail_20' ) start [2025-01-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221795', 'tblTempUsageDetail_20' ) end [2025-01-11 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:25:21] Production.INFO: ==1713== Releasing lock... [2025-01-11 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:26:05 [end_date_ymd] => 2025-01-11 04:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:26:05' and `end` < '2025-01-11 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-11 04:26:19] Production.INFO: count ==238 [2025-01-11 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:26:05 - End Time 2025-01-11 04:26:05 [2025-01-11 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221800', 'tblTempUsageDetail_20' ) start [2025-01-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221800', 'tblTempUsageDetail_20' ) end [2025-01-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221800', 'tblTempVendorCDR_20' ) start [2025-01-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221800', 'tblTempVendorCDR_20' ) end [2025-01-11 04:26:19] Production.INFO: ProcessCDR(1,14221800,1,1,2) [2025-01-11 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221800', 'tblTempUsageDetail_20' ) start [2025-01-11 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221800', 'tblTempUsageDetail_20' ) end [2025-01-11 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:26:22] Production.INFO: ==1789== Releasing lock... [2025-01-11 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:27:05 [end_date_ymd] => 2025-01-11 04:27:05 [RateCDR] => 1 ) [2025-01-11 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:27:05' and `end` < '2025-01-11 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:27:19] Production.INFO: count ==238 [2025-01-11 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:27:05 - End Time 2025-01-11 04:27:05 [2025-01-11 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221805', 'tblTempUsageDetail_20' ) start [2025-01-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221805', 'tblTempUsageDetail_20' ) end [2025-01-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221805', 'tblTempVendorCDR_20' ) start [2025-01-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221805', 'tblTempVendorCDR_20' ) end [2025-01-11 04:27:19] Production.INFO: ProcessCDR(1,14221805,1,1,2) [2025-01-11 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221805', 'tblTempUsageDetail_20' ) start [2025-01-11 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221805', 'tblTempUsageDetail_20' ) end [2025-01-11 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:27:22] Production.INFO: ==1864== Releasing lock... [2025-01-11 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:28:05 [end_date_ymd] => 2025-01-11 04:28:05 [RateCDR] => 1 ) [2025-01-11 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:28:05' and `end` < '2025-01-11 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:28:18] Production.INFO: count ==238 [2025-01-11 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:28:05 - End Time 2025-01-11 04:28:05 [2025-01-11 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221810', 'tblTempUsageDetail_20' ) start [2025-01-11 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221810', 'tblTempUsageDetail_20' ) end [2025-01-11 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221810', 'tblTempVendorCDR_20' ) start [2025-01-11 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221810', 'tblTempVendorCDR_20' ) end [2025-01-11 04:28:18] Production.INFO: ProcessCDR(1,14221810,1,1,2) [2025-01-11 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221810', 'tblTempUsageDetail_20' ) start [2025-01-11 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221810', 'tblTempUsageDetail_20' ) end [2025-01-11 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:28:21] Production.INFO: ==1936== Releasing lock... [2025-01-11 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:29:05 [end_date_ymd] => 2025-01-11 04:29:05 [RateCDR] => 1 ) [2025-01-11 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:29:05' and `end` < '2025-01-11 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:29:18] Production.INFO: count ==238 [2025-01-11 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:29:05 - End Time 2025-01-11 04:29:05 [2025-01-11 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221815', 'tblTempUsageDetail_20' ) start [2025-01-11 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221815', 'tblTempUsageDetail_20' ) end [2025-01-11 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221815', 'tblTempVendorCDR_20' ) start [2025-01-11 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221815', 'tblTempVendorCDR_20' ) end [2025-01-11 04:29:18] Production.INFO: ProcessCDR(1,14221815,1,1,2) [2025-01-11 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221815', 'tblTempUsageDetail_20' ) start [2025-01-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221815', 'tblTempUsageDetail_20' ) end [2025-01-11 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:29:22] Production.INFO: ==2008== Releasing lock... [2025-01-11 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:30:05 [end_date_ymd] => 2025-01-11 04:30:05 [RateCDR] => 1 ) [2025-01-11 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:30:05' and `end` < '2025-01-11 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:30:18] Production.INFO: count ==239 [2025-01-11 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:30:05 - End Time 2025-01-11 04:30:05 [2025-01-11 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221821', 'tblTempUsageDetail_20' ) start [2025-01-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221821', 'tblTempUsageDetail_20' ) end [2025-01-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221821', 'tblTempVendorCDR_20' ) start [2025-01-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221821', 'tblTempVendorCDR_20' ) end [2025-01-11 04:30:18] Production.INFO: ProcessCDR(1,14221821,1,1,2) [2025-01-11 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221821', 'tblTempUsageDetail_20' ) start [2025-01-11 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221821', 'tblTempUsageDetail_20' ) end [2025-01-11 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:30:22] Production.INFO: ==2082== Releasing lock... [2025-01-11 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-11 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:31:05 [end_date_ymd] => 2025-01-11 04:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:31:05' and `end` < '2025-01-11 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-11 04:31:19] Production.INFO: count ==221 [2025-01-11 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:31:05 - End Time 2025-01-11 04:31:05 [2025-01-11 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221827', 'tblTempUsageDetail_20' ) start [2025-01-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221827', 'tblTempUsageDetail_20' ) end [2025-01-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221827', 'tblTempVendorCDR_20' ) start [2025-01-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221827', 'tblTempVendorCDR_20' ) end [2025-01-11 04:31:19] Production.INFO: ProcessCDR(1,14221827,1,1,2) [2025-01-11 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221827', 'tblTempUsageDetail_20' ) start [2025-01-11 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221827', 'tblTempUsageDetail_20' ) end [2025-01-11 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:31:23] Production.INFO: ==2286== Releasing lock... [2025-01-11 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:31:23] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:32:05 [end_date_ymd] => 2025-01-11 04:32:05 [RateCDR] => 1 ) [2025-01-11 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:32:05' and `end` < '2025-01-11 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:32:20] Production.INFO: count ==221 [2025-01-11 04:32:20] Production.ERROR: pbx CDR StartTime 2025-01-11 01:32:05 - End Time 2025-01-11 04:32:05 [2025-01-11 04:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221832', 'tblTempUsageDetail_20' ) start [2025-01-11 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221832', 'tblTempUsageDetail_20' ) end [2025-01-11 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221832', 'tblTempVendorCDR_20' ) start [2025-01-11 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221832', 'tblTempVendorCDR_20' ) end [2025-01-11 04:32:20] Production.INFO: ProcessCDR(1,14221832,1,1,2) [2025-01-11 04:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221832', 'tblTempUsageDetail_20' ) start [2025-01-11 04:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221832', 'tblTempUsageDetail_20' ) end [2025-01-11 04:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:32:24] Production.INFO: ==2359== Releasing lock... [2025-01-11 04:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:32:24] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:33:05 [end_date_ymd] => 2025-01-11 04:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:33:05' and `end` < '2025-01-11 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-11 04:33:19] Production.INFO: count ==221 [2025-01-11 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:33:05 - End Time 2025-01-11 04:33:05 [2025-01-11 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221837', 'tblTempUsageDetail_20' ) start [2025-01-11 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221837', 'tblTempUsageDetail_20' ) end [2025-01-11 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221837', 'tblTempVendorCDR_20' ) start [2025-01-11 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221837', 'tblTempVendorCDR_20' ) end [2025-01-11 04:33:19] Production.INFO: ProcessCDR(1,14221837,1,1,2) [2025-01-11 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221837', 'tblTempUsageDetail_20' ) start [2025-01-11 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221837', 'tblTempUsageDetail_20' ) end [2025-01-11 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:33:22] Production.INFO: ==2431== Releasing lock... [2025-01-11 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:33:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:34:05 [end_date_ymd] => 2025-01-11 04:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:34:05' and `end` < '2025-01-11 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-11 04:34:19] Production.INFO: count ==221 [2025-01-11 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:34:05 - End Time 2025-01-11 04:34:05 [2025-01-11 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221842', 'tblTempUsageDetail_20' ) start [2025-01-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221842', 'tblTempUsageDetail_20' ) end [2025-01-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221842', 'tblTempVendorCDR_20' ) start [2025-01-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221842', 'tblTempVendorCDR_20' ) end [2025-01-11 04:34:19] Production.INFO: ProcessCDR(1,14221842,1,1,2) [2025-01-11 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221842', 'tblTempUsageDetail_20' ) start [2025-01-11 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221842', 'tblTempUsageDetail_20' ) end [2025-01-11 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:34:22] Production.INFO: ==2501== Releasing lock... [2025-01-11 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:34:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:35:05 [end_date_ymd] => 2025-01-11 04:35:05 [RateCDR] => 1 ) [2025-01-11 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:35:05' and `end` < '2025-01-11 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:35:18] Production.INFO: count ==221 [2025-01-11 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:35:05 - End Time 2025-01-11 04:35:05 [2025-01-11 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221847', 'tblTempUsageDetail_20' ) start [2025-01-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221847', 'tblTempUsageDetail_20' ) end [2025-01-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221847', 'tblTempVendorCDR_20' ) start [2025-01-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221847', 'tblTempVendorCDR_20' ) end [2025-01-11 04:35:18] Production.INFO: ProcessCDR(1,14221847,1,1,2) [2025-01-11 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221847', 'tblTempUsageDetail_20' ) start [2025-01-11 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221847', 'tblTempUsageDetail_20' ) end [2025-01-11 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:35:22] Production.INFO: ==2571== Releasing lock... [2025-01-11 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:35:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:36:04 [end_date_ymd] => 2025-01-11 04:36:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:36:04' and `end` < '2025-01-11 04: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-11 04:36:18] Production.INFO: count ==221 [2025-01-11 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:36:04 - End Time 2025-01-11 04:36:04 [2025-01-11 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221852', 'tblTempUsageDetail_20' ) start [2025-01-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221852', 'tblTempUsageDetail_20' ) end [2025-01-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221852', 'tblTempVendorCDR_20' ) start [2025-01-11 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221852', 'tblTempVendorCDR_20' ) end [2025-01-11 04:36:18] Production.INFO: ProcessCDR(1,14221852,1,1,2) [2025-01-11 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221852', 'tblTempUsageDetail_20' ) start [2025-01-11 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221852', 'tblTempUsageDetail_20' ) end [2025-01-11 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:36:21] Production.INFO: ==2640== Releasing lock... [2025-01-11 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:37:05 [end_date_ymd] => 2025-01-11 04:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:37:05' and `end` < '2025-01-11 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-11 04:37:18] Production.INFO: count ==221 [2025-01-11 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:37:05 - End Time 2025-01-11 04:37:05 [2025-01-11 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221857', 'tblTempUsageDetail_20' ) start [2025-01-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221857', 'tblTempUsageDetail_20' ) end [2025-01-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221857', 'tblTempVendorCDR_20' ) start [2025-01-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221857', 'tblTempVendorCDR_20' ) end [2025-01-11 04:37:18] Production.INFO: ProcessCDR(1,14221857,1,1,2) [2025-01-11 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221857', 'tblTempUsageDetail_20' ) start [2025-01-11 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221857', 'tblTempUsageDetail_20' ) end [2025-01-11 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:37:21] Production.INFO: ==2717== Releasing lock... [2025-01-11 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:38:04 [end_date_ymd] => 2025-01-11 04:38:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:38:04' and `end` < '2025-01-11 04: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-11 04:38:18] Production.INFO: count ==221 [2025-01-11 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:38:04 - End Time 2025-01-11 04:38:04 [2025-01-11 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221859', 'tblTempUsageDetail_20' ) start [2025-01-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221859', 'tblTempUsageDetail_20' ) end [2025-01-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221859', 'tblTempVendorCDR_20' ) start [2025-01-11 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221859', 'tblTempVendorCDR_20' ) end [2025-01-11 04:38:18] Production.INFO: ProcessCDR(1,14221859,1,1,2) [2025-01-11 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221859', 'tblTempUsageDetail_20' ) start [2025-01-11 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221859', 'tblTempUsageDetail_20' ) end [2025-01-11 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:38:21] Production.INFO: ==2789== Releasing lock... [2025-01-11 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:39:05 [end_date_ymd] => 2025-01-11 04:39:05 [RateCDR] => 1 ) [2025-01-11 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:39:05' and `end` < '2025-01-11 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:39:19] Production.INFO: count ==221 [2025-01-11 04:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:39:05 - End Time 2025-01-11 04:39:05 [2025-01-11 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221867', 'tblTempUsageDetail_20' ) start [2025-01-11 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221867', 'tblTempUsageDetail_20' ) end [2025-01-11 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221867', 'tblTempVendorCDR_20' ) start [2025-01-11 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221867', 'tblTempVendorCDR_20' ) end [2025-01-11 04:39:19] Production.INFO: ProcessCDR(1,14221867,1,1,2) [2025-01-11 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221867', 'tblTempUsageDetail_20' ) start [2025-01-11 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221867', 'tblTempUsageDetail_20' ) end [2025-01-11 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:39:22] Production.INFO: ==2871== Releasing lock... [2025-01-11 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:40:05 [end_date_ymd] => 2025-01-11 04:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:40:05' and `end` < '2025-01-11 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-11 04:40:18] Production.INFO: count ==217 [2025-01-11 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:40:05 - End Time 2025-01-11 04:40:05 [2025-01-11 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221873', 'tblTempUsageDetail_20' ) start [2025-01-11 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221873', 'tblTempUsageDetail_20' ) end [2025-01-11 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221873', 'tblTempVendorCDR_20' ) start [2025-01-11 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221873', 'tblTempVendorCDR_20' ) end [2025-01-11 04:40:18] Production.INFO: ProcessCDR(1,14221873,1,1,2) [2025-01-11 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221873', 'tblTempUsageDetail_20' ) start [2025-01-11 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221873', 'tblTempUsageDetail_20' ) end [2025-01-11 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:40:21] Production.INFO: ==2990== Releasing lock... [2025-01-11 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:41:05 [end_date_ymd] => 2025-01-11 04:41:05 [RateCDR] => 1 ) [2025-01-11 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:41:05' and `end` < '2025-01-11 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:41:19] Production.INFO: count ==215 [2025-01-11 04:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:41:05 - End Time 2025-01-11 04:41:05 [2025-01-11 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221878', 'tblTempUsageDetail_20' ) start [2025-01-11 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221878', 'tblTempUsageDetail_20' ) end [2025-01-11 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221878', 'tblTempVendorCDR_20' ) start [2025-01-11 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221878', 'tblTempVendorCDR_20' ) end [2025-01-11 04:41:19] Production.INFO: ProcessCDR(1,14221878,1,1,2) [2025-01-11 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221878', 'tblTempUsageDetail_20' ) start [2025-01-11 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221878', 'tblTempUsageDetail_20' ) end [2025-01-11 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:41:22] Production.INFO: ==3083== Releasing lock... [2025-01-11 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:41:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:42:05 [end_date_ymd] => 2025-01-11 04:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:42:05' and `end` < '2025-01-11 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-11 04:42:19] Production.INFO: count ==215 [2025-01-11 04:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:42:05 - End Time 2025-01-11 04:42:05 [2025-01-11 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221883', 'tblTempUsageDetail_20' ) start [2025-01-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221883', 'tblTempUsageDetail_20' ) end [2025-01-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221883', 'tblTempVendorCDR_20' ) start [2025-01-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221883', 'tblTempVendorCDR_20' ) end [2025-01-11 04:42:19] Production.INFO: ProcessCDR(1,14221883,1,1,2) [2025-01-11 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221883', 'tblTempUsageDetail_20' ) start [2025-01-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221883', 'tblTempUsageDetail_20' ) end [2025-01-11 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:42:22] Production.INFO: ==3172== Releasing lock... [2025-01-11 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:43:05 [end_date_ymd] => 2025-01-11 04:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:43:05' and `end` < '2025-01-11 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-11 04:43:18] Production.INFO: count ==215 [2025-01-11 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:43:05 - End Time 2025-01-11 04:43:05 [2025-01-11 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221888', 'tblTempUsageDetail_20' ) start [2025-01-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221888', 'tblTempUsageDetail_20' ) end [2025-01-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221888', 'tblTempVendorCDR_20' ) start [2025-01-11 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221888', 'tblTempVendorCDR_20' ) end [2025-01-11 04:43:18] Production.INFO: ProcessCDR(1,14221888,1,1,2) [2025-01-11 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221888', 'tblTempUsageDetail_20' ) start [2025-01-11 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221888', 'tblTempUsageDetail_20' ) end [2025-01-11 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:43:21] Production.INFO: ==3261== Releasing lock... [2025-01-11 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:44:05 [end_date_ymd] => 2025-01-11 04:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:44:05' and `end` < '2025-01-11 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-11 04:44:19] Production.INFO: count ==215 [2025-01-11 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 01:44:05 - End Time 2025-01-11 04:44:05 [2025-01-11 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221893', 'tblTempUsageDetail_20' ) start [2025-01-11 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221893', 'tblTempUsageDetail_20' ) end [2025-01-11 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221893', 'tblTempVendorCDR_20' ) start [2025-01-11 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221893', 'tblTempVendorCDR_20' ) end [2025-01-11 04:44:19] Production.INFO: ProcessCDR(1,14221893,1,1,2) [2025-01-11 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221893', 'tblTempUsageDetail_20' ) start [2025-01-11 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221893', 'tblTempUsageDetail_20' ) end [2025-01-11 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:44:22] Production.INFO: ==3357== Releasing lock... [2025-01-11 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:45:04 [end_date_ymd] => 2025-01-11 04:45:04 [RateCDR] => 1 ) [2025-01-11 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:45:04' and `end` < '2025-01-11 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:45:18] Production.INFO: count ==215 [2025-01-11 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 01:45:04 - End Time 2025-01-11 04:45:04 [2025-01-11 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221898', 'tblTempUsageDetail_20' ) start [2025-01-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221898', 'tblTempUsageDetail_20' ) end [2025-01-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221898', 'tblTempVendorCDR_20' ) start [2025-01-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221898', 'tblTempVendorCDR_20' ) end [2025-01-11 04:45:18] Production.INFO: ProcessCDR(1,14221898,1,1,2) [2025-01-11 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221898', 'tblTempUsageDetail_20' ) start [2025-01-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221898', 'tblTempUsageDetail_20' ) end [2025-01-11 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:45:21] Production.INFO: ==3452== Releasing lock... [2025-01-11 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:46:05 [end_date_ymd] => 2025-01-11 04:46:05 [RateCDR] => 1 ) [2025-01-11 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:46:05' and `end` < '2025-01-11 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:46:39] Production.INFO: count ==215 [2025-01-11 04:46:39] Production.ERROR: pbx CDR StartTime 2025-01-11 01:46:05 - End Time 2025-01-11 04:46:05 [2025-01-11 04:46:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221903', 'tblTempUsageDetail_20' ) start [2025-01-11 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221903', 'tblTempUsageDetail_20' ) end [2025-01-11 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221903', 'tblTempVendorCDR_20' ) start [2025-01-11 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221903', 'tblTempVendorCDR_20' ) end [2025-01-11 04:46:39] Production.INFO: ProcessCDR(1,14221903,1,1,2) [2025-01-11 04:46:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221903', 'tblTempUsageDetail_20' ) start [2025-01-11 04:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221903', 'tblTempUsageDetail_20' ) end [2025-01-11 04:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:46:42] Production.INFO: ==3542== Releasing lock... [2025-01-11 04:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:46:42] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:47:04 [end_date_ymd] => 2025-01-11 04:47:04 [RateCDR] => 1 ) [2025-01-11 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:47:04' and `end` < '2025-01-11 04:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:47:22] Production.INFO: count ==215 [2025-01-11 04:47:22] Production.ERROR: pbx CDR StartTime 2025-01-11 01:47:04 - End Time 2025-01-11 04:47:04 [2025-01-11 04:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221908', 'tblTempUsageDetail_20' ) start [2025-01-11 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221908', 'tblTempUsageDetail_20' ) end [2025-01-11 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221908', 'tblTempVendorCDR_20' ) start [2025-01-11 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221908', 'tblTempVendorCDR_20' ) end [2025-01-11 04:47:22] Production.INFO: ProcessCDR(1,14221908,1,1,2) [2025-01-11 04:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221908', 'tblTempUsageDetail_20' ) start [2025-01-11 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221908', 'tblTempUsageDetail_20' ) end [2025-01-11 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:47:25] Production.INFO: ==3629== Releasing lock... [2025-01-11 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:47:25] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:48:05 [end_date_ymd] => 2025-01-11 04:48:05 [RateCDR] => 1 ) [2025-01-11 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:48:05' and `end` < '2025-01-11 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:48:23] Production.INFO: count ==215 [2025-01-11 04:48:23] Production.ERROR: pbx CDR StartTime 2025-01-11 01:48:05 - End Time 2025-01-11 04:48:05 [2025-01-11 04:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221913', 'tblTempUsageDetail_20' ) start [2025-01-11 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221913', 'tblTempUsageDetail_20' ) end [2025-01-11 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221913', 'tblTempVendorCDR_20' ) start [2025-01-11 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221913', 'tblTempVendorCDR_20' ) end [2025-01-11 04:48:23] Production.INFO: ProcessCDR(1,14221913,1,1,2) [2025-01-11 04:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221913', 'tblTempUsageDetail_20' ) start [2025-01-11 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221913', 'tblTempUsageDetail_20' ) end [2025-01-11 04:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:48:26] Production.INFO: ==3725== Releasing lock... [2025-01-11 04:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:48:26] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:49:04 [end_date_ymd] => 2025-01-11 04:49:04 [RateCDR] => 1 ) [2025-01-11 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:49:04' and `end` < '2025-01-11 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:49:22] Production.INFO: count ==215 [2025-01-11 04:49:22] Production.ERROR: pbx CDR StartTime 2025-01-11 01:49:04 - End Time 2025-01-11 04:49:04 [2025-01-11 04:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221915', 'tblTempUsageDetail_20' ) start [2025-01-11 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221915', 'tblTempUsageDetail_20' ) end [2025-01-11 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221915', 'tblTempVendorCDR_20' ) start [2025-01-11 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221915', 'tblTempVendorCDR_20' ) end [2025-01-11 04:49:22] Production.INFO: ProcessCDR(1,14221915,1,1,2) [2025-01-11 04:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221915', 'tblTempUsageDetail_20' ) start [2025-01-11 04:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221915', 'tblTempUsageDetail_20' ) end [2025-01-11 04:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:49:25] Production.INFO: ==3824== Releasing lock... [2025-01-11 04:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:49:25] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:50:06 [end_date_ymd] => 2025-01-11 04:50:06 [RateCDR] => 1 ) [2025-01-11 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-11 01:50:06' and `end` < '2025-01-11 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-11 04:50:23] Production.INFO: count ==208 [2025-01-11 04:50:23] Production.ERROR: pbx CDR StartTime 2025-01-11 01:50:06 - End Time 2025-01-11 04:50:06 [2025-01-11 04:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221924', 'tblTempUsageDetail_20' ) start [2025-01-11 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221924', 'tblTempUsageDetail_20' ) end [2025-01-11 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221924', 'tblTempVendorCDR_20' ) start [2025-01-11 04:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221924', 'tblTempVendorCDR_20' ) end [2025-01-11 04:50:23] Production.INFO: ProcessCDR(1,14221924,1,1,2) [2025-01-11 04:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221924', 'tblTempUsageDetail_20' ) start [2025-01-11 04:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221924', 'tblTempUsageDetail_20' ) end [2025-01-11 04:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:50:26] Production.INFO: ==3941== Releasing lock... [2025-01-11 04:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:50:26] Production.INFO: 29 MB #Memory Used# [2025-01-11 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:51:05 [end_date_ymd] => 2025-01-11 04:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:51:05' and `end` < '2025-01-11 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-11 04:51:21] Production.INFO: count ==192 [2025-01-11 04:51:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:51:05 - End Time 2025-01-11 04:51:05 [2025-01-11 04:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221929', 'tblTempUsageDetail_20' ) start [2025-01-11 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221929', 'tblTempUsageDetail_20' ) end [2025-01-11 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221929', 'tblTempVendorCDR_20' ) start [2025-01-11 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221929', 'tblTempVendorCDR_20' ) end [2025-01-11 04:51:21] Production.INFO: ProcessCDR(1,14221929,1,1,2) [2025-01-11 04:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221929', 'tblTempUsageDetail_20' ) start [2025-01-11 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221929', 'tblTempUsageDetail_20' ) end [2025-01-11 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:51:24] Production.INFO: ==4050== Releasing lock... [2025-01-11 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:51:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:52:05 [end_date_ymd] => 2025-01-11 04:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:52:05' and `end` < '2025-01-11 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-11 04:52:21] Production.INFO: count ==191 [2025-01-11 04:52:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:52:05 - End Time 2025-01-11 04:52:05 [2025-01-11 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221934', 'tblTempUsageDetail_20' ) start [2025-01-11 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221934', 'tblTempUsageDetail_20' ) end [2025-01-11 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221934', 'tblTempVendorCDR_20' ) start [2025-01-11 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221934', 'tblTempVendorCDR_20' ) end [2025-01-11 04:52:21] Production.INFO: ProcessCDR(1,14221934,1,1,2) [2025-01-11 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221934', 'tblTempUsageDetail_20' ) start [2025-01-11 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221934', 'tblTempUsageDetail_20' ) end [2025-01-11 04:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:52:25] Production.INFO: ==4162== Releasing lock... [2025-01-11 04:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:52:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:53:04 [end_date_ymd] => 2025-01-11 04:53:04 [RateCDR] => 1 ) [2025-01-11 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-11 01:53:04' and `end` < '2025-01-11 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-11 04:53:21] Production.INFO: count ==189 [2025-01-11 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:53:04 - End Time 2025-01-11 04:53:04 [2025-01-11 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221939', 'tblTempUsageDetail_20' ) start [2025-01-11 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221939', 'tblTempUsageDetail_20' ) end [2025-01-11 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221939', 'tblTempVendorCDR_20' ) start [2025-01-11 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221939', 'tblTempVendorCDR_20' ) end [2025-01-11 04:53:21] Production.INFO: ProcessCDR(1,14221939,1,1,2) [2025-01-11 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221939', 'tblTempUsageDetail_20' ) start [2025-01-11 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221939', 'tblTempUsageDetail_20' ) end [2025-01-11 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:53:24] Production.INFO: ==4268== Releasing lock... [2025-01-11 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:53:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:54:05 [end_date_ymd] => 2025-01-11 04:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:54:05' and `end` < '2025-01-11 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-11 04:54:21] Production.INFO: count ==186 [2025-01-11 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:54:05 - End Time 2025-01-11 04:54:05 [2025-01-11 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221944', 'tblTempUsageDetail_20' ) start [2025-01-11 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221944', 'tblTempUsageDetail_20' ) end [2025-01-11 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221944', 'tblTempVendorCDR_20' ) start [2025-01-11 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221944', 'tblTempVendorCDR_20' ) end [2025-01-11 04:54:21] Production.INFO: ProcessCDR(1,14221944,1,1,2) [2025-01-11 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221944', 'tblTempUsageDetail_20' ) start [2025-01-11 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221944', 'tblTempUsageDetail_20' ) end [2025-01-11 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:54:24] Production.INFO: ==4378== Releasing lock... [2025-01-11 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:54:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:55:05 [end_date_ymd] => 2025-01-11 04:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:55:05' and `end` < '2025-01-11 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-11 04:55:21] Production.INFO: count ==185 [2025-01-11 04:55:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:55:05 - End Time 2025-01-11 04:55:05 [2025-01-11 04:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221949', 'tblTempUsageDetail_20' ) start [2025-01-11 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221949', 'tblTempUsageDetail_20' ) end [2025-01-11 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221949', 'tblTempVendorCDR_20' ) start [2025-01-11 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221949', 'tblTempVendorCDR_20' ) end [2025-01-11 04:55:21] Production.INFO: ProcessCDR(1,14221949,1,1,2) [2025-01-11 04:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221949', 'tblTempUsageDetail_20' ) start [2025-01-11 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221949', 'tblTempUsageDetail_20' ) end [2025-01-11 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:55:24] Production.INFO: ==4488== Releasing lock... [2025-01-11 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:55:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:56:05 [end_date_ymd] => 2025-01-11 04:56:05 [RateCDR] => 1 ) [2025-01-11 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:56:05' and `end` < '2025-01-11 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-11 04:56:20] Production.INFO: count ==185 [2025-01-11 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-11 01:56:05 - End Time 2025-01-11 04:56:05 [2025-01-11 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221954', 'tblTempUsageDetail_20' ) start [2025-01-11 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221954', 'tblTempUsageDetail_20' ) end [2025-01-11 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221954', 'tblTempVendorCDR_20' ) start [2025-01-11 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221954', 'tblTempVendorCDR_20' ) end [2025-01-11 04:56:21] Production.INFO: ProcessCDR(1,14221954,1,1,2) [2025-01-11 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221954', 'tblTempUsageDetail_20' ) start [2025-01-11 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221954', 'tblTempUsageDetail_20' ) end [2025-01-11 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:56:24] Production.INFO: ==4648== Releasing lock... [2025-01-11 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:56:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:57:06 [end_date_ymd] => 2025-01-11 04:57:06 [RateCDR] => 1 ) [2025-01-11 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 01:57:06' and `end` < '2025-01-11 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 04:57:22] Production.INFO: count ==185 [2025-01-11 04:57:22] Production.ERROR: pbx CDR StartTime 2025-01-11 01:57:06 - End Time 2025-01-11 04:57:06 [2025-01-11 04:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221959', 'tblTempUsageDetail_20' ) start [2025-01-11 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221959', 'tblTempUsageDetail_20' ) end [2025-01-11 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221959', 'tblTempVendorCDR_20' ) start [2025-01-11 04:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221959', 'tblTempVendorCDR_20' ) end [2025-01-11 04:57:22] Production.INFO: ProcessCDR(1,14221959,1,1,2) [2025-01-11 04:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221959', 'tblTempUsageDetail_20' ) start [2025-01-11 04:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221959', 'tblTempUsageDetail_20' ) end [2025-01-11 04:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:57:26] Production.INFO: ==4756== Releasing lock... [2025-01-11 04:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:57:26] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:58:05 [end_date_ymd] => 2025-01-11 04:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 01:58:05' and `end` < '2025-01-11 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-11 04:58:20] Production.INFO: count ==185 [2025-01-11 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-11 01:58:05 - End Time 2025-01-11 04:58:05 [2025-01-11 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221964', 'tblTempUsageDetail_20' ) start [2025-01-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221964', 'tblTempUsageDetail_20' ) end [2025-01-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221964', 'tblTempVendorCDR_20' ) start [2025-01-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221964', 'tblTempVendorCDR_20' ) end [2025-01-11 04:58:20] Production.INFO: ProcessCDR(1,14221964,1,1,2) [2025-01-11 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221964', 'tblTempUsageDetail_20' ) start [2025-01-11 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221964', 'tblTempUsageDetail_20' ) end [2025-01-11 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:58:23] Production.INFO: ==4852== Releasing lock... [2025-01-11 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 01:59:04 [end_date_ymd] => 2025-01-11 04:59:04 [RateCDR] => 1 ) [2025-01-11 04: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-11 01:59:04' and `end` < '2025-01-11 04: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-11 04:59:20] Production.INFO: count ==185 [2025-01-11 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-11 01:59:04 - End Time 2025-01-11 04:59:04 [2025-01-11 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221969', 'tblTempUsageDetail_20' ) start [2025-01-11 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221969', 'tblTempUsageDetail_20' ) end [2025-01-11 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221969', 'tblTempVendorCDR_20' ) start [2025-01-11 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221969', 'tblTempVendorCDR_20' ) end [2025-01-11 04:59:20] Production.INFO: ProcessCDR(1,14221969,1,1,2) [2025-01-11 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221969', 'tblTempUsageDetail_20' ) start [2025-01-11 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221969', 'tblTempUsageDetail_20' ) end [2025-01-11 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 04:59:23] Production.INFO: ==4950== Releasing lock... [2025-01-11 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 04:59:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:00:05 [end_date_ymd] => 2025-01-11 05:00:05 [RateCDR] => 1 ) [2025-01-11 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:00:05' and `end` < '2025-01-11 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:00:21] Production.INFO: count ==179 [2025-01-11 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-11 02:00:05 - End Time 2025-01-11 05:00:05 [2025-01-11 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221975', 'tblTempUsageDetail_20' ) start [2025-01-11 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221975', 'tblTempUsageDetail_20' ) end [2025-01-11 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221975', 'tblTempVendorCDR_20' ) start [2025-01-11 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221975', 'tblTempVendorCDR_20' ) end [2025-01-11 05:00:21] Production.INFO: ProcessCDR(1,14221975,1,1,2) [2025-01-11 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221975', 'tblTempUsageDetail_20' ) start [2025-01-11 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221975', 'tblTempUsageDetail_20' ) end [2025-01-11 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:00:24] Production.INFO: ==5053== Releasing lock... [2025-01-11 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:01:06 [end_date_ymd] => 2025-01-11 05:01:06 [RateCDR] => 1 ) [2025-01-11 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-11 02:01:06' and `end` < '2025-01-11 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-11 05:01:23] Production.INFO: count ==161 [2025-01-11 05:01:23] Production.ERROR: pbx CDR StartTime 2025-01-11 02:01:06 - End Time 2025-01-11 05:01:06 [2025-01-11 05:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221980', 'tblTempUsageDetail_20' ) start [2025-01-11 05:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221980', 'tblTempUsageDetail_20' ) end [2025-01-11 05:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221980', 'tblTempVendorCDR_20' ) start [2025-01-11 05:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221980', 'tblTempVendorCDR_20' ) end [2025-01-11 05:01:23] Production.INFO: ProcessCDR(1,14221980,1,1,2) [2025-01-11 05:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221980', 'tblTempUsageDetail_20' ) start [2025-01-11 05:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221980', 'tblTempUsageDetail_20' ) end [2025-01-11 05:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:01:26] Production.INFO: ==5169== Releasing lock... [2025-01-11 05:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:01:26] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:02:05 [end_date_ymd] => 2025-01-11 05:02:05 [RateCDR] => 1 ) [2025-01-11 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:02:05' and `end` < '2025-01-11 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:02:21] Production.INFO: count ==160 [2025-01-11 05:02:21] Production.ERROR: pbx CDR StartTime 2025-01-11 02:02:05 - End Time 2025-01-11 05:02:05 [2025-01-11 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221985', 'tblTempUsageDetail_20' ) start [2025-01-11 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221985', 'tblTempUsageDetail_20' ) end [2025-01-11 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221985', 'tblTempVendorCDR_20' ) start [2025-01-11 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221985', 'tblTempVendorCDR_20' ) end [2025-01-11 05:02:21] Production.INFO: ProcessCDR(1,14221985,1,1,2) [2025-01-11 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221985', 'tblTempUsageDetail_20' ) start [2025-01-11 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221985', 'tblTempUsageDetail_20' ) end [2025-01-11 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:02:24] Production.INFO: ==5295== Releasing lock... [2025-01-11 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:02:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:03:04 [end_date_ymd] => 2025-01-11 05:03:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:03:04' and `end` < '2025-01-11 05: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-11 05:03:20] Production.INFO: count ==160 [2025-01-11 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-11 02:03:04 - End Time 2025-01-11 05:03:04 [2025-01-11 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221990', 'tblTempUsageDetail_20' ) start [2025-01-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221990', 'tblTempUsageDetail_20' ) end [2025-01-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221990', 'tblTempVendorCDR_20' ) start [2025-01-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221990', 'tblTempVendorCDR_20' ) end [2025-01-11 05:03:20] Production.INFO: ProcessCDR(1,14221990,1,1,2) [2025-01-11 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221990', 'tblTempUsageDetail_20' ) start [2025-01-11 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221990', 'tblTempUsageDetail_20' ) end [2025-01-11 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:03:24] Production.INFO: ==5421== Releasing lock... [2025-01-11 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:03:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:04:05 [end_date_ymd] => 2025-01-11 05:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:04:05' and `end` < '2025-01-11 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-11 05:04:20] Production.INFO: count ==158 [2025-01-11 05:04:20] Production.ERROR: pbx CDR StartTime 2025-01-11 02:04:05 - End Time 2025-01-11 05:04:05 [2025-01-11 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221995', 'tblTempUsageDetail_20' ) start [2025-01-11 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14221995', 'tblTempUsageDetail_20' ) end [2025-01-11 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221995', 'tblTempVendorCDR_20' ) start [2025-01-11 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14221995', 'tblTempVendorCDR_20' ) end [2025-01-11 05:04:20] Production.INFO: ProcessCDR(1,14221995,1,1,2) [2025-01-11 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14221995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14221995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14221995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14221995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221995', 'tblTempUsageDetail_20' ) start [2025-01-11 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14221995', 'tblTempUsageDetail_20' ) end [2025-01-11 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:04:23] Production.INFO: ==5538== Releasing lock... [2025-01-11 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:05:05 [end_date_ymd] => 2025-01-11 05:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:05:05' and `end` < '2025-01-11 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-11 05:05:18] Production.INFO: count ==154 [2025-01-11 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:05:05 - End Time 2025-01-11 05:05:05 [2025-01-11 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222000', 'tblTempUsageDetail_20' ) start [2025-01-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222000', 'tblTempUsageDetail_20' ) end [2025-01-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222000', 'tblTempVendorCDR_20' ) start [2025-01-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222000', 'tblTempVendorCDR_20' ) end [2025-01-11 05:05:18] Production.INFO: ProcessCDR(1,14222000,1,1,2) [2025-01-11 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222000', 'tblTempUsageDetail_20' ) start [2025-01-11 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222000', 'tblTempUsageDetail_20' ) end [2025-01-11 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:05:21] Production.INFO: ==5673== Releasing lock... [2025-01-11 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:06:04 [end_date_ymd] => 2025-01-11 05:06:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:06:04' and `end` < '2025-01-11 05: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-11 05:06:18] Production.INFO: count ==154 [2025-01-11 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:06:04 - End Time 2025-01-11 05:06:04 [2025-01-11 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222005', 'tblTempUsageDetail_20' ) start [2025-01-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222005', 'tblTempUsageDetail_20' ) end [2025-01-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222005', 'tblTempVendorCDR_20' ) start [2025-01-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222005', 'tblTempVendorCDR_20' ) end [2025-01-11 05:06:18] Production.INFO: ProcessCDR(1,14222005,1,1,2) [2025-01-11 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222005', 'tblTempUsageDetail_20' ) start [2025-01-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222005', 'tblTempUsageDetail_20' ) end [2025-01-11 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:06:21] Production.INFO: ==5792== Releasing lock... [2025-01-11 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:07:05 [end_date_ymd] => 2025-01-11 05:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:07:05' and `end` < '2025-01-11 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-11 05:07:50] Production.INFO: count ==153 [2025-01-11 05:07:50] Production.ERROR: pbx CDR StartTime 2025-01-11 02:07:05 - End Time 2025-01-11 05:07:05 [2025-01-11 05:07:50] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:07:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222010', 'tblTempUsageDetail_20' ) start [2025-01-11 05:07:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222010', 'tblTempUsageDetail_20' ) end [2025-01-11 05:07:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222010', 'tblTempVendorCDR_20' ) start [2025-01-11 05:07:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222010', 'tblTempVendorCDR_20' ) end [2025-01-11 05:07:50] Production.INFO: ProcessCDR(1,14222010,1,1,2) [2025-01-11 05:07:50] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:07:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:07:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:07:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:07:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222010', 'tblTempUsageDetail_20' ) start [2025-01-11 05:07:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222010', 'tblTempUsageDetail_20' ) end [2025-01-11 05:07:53] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:07:53] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:07:53] Production.INFO: ==5910== Releasing lock... [2025-01-11 05:07:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:07:53] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:08:05 [end_date_ymd] => 2025-01-11 05:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:08:05' and `end` < '2025-01-11 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-11 05:08:20] Production.INFO: count ==153 [2025-01-11 05:08:21] Production.ERROR: pbx CDR StartTime 2025-01-11 02:08:05 - End Time 2025-01-11 05:08:05 [2025-01-11 05:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222015', 'tblTempUsageDetail_20' ) start [2025-01-11 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222015', 'tblTempUsageDetail_20' ) end [2025-01-11 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222015', 'tblTempVendorCDR_20' ) start [2025-01-11 05:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222015', 'tblTempVendorCDR_20' ) end [2025-01-11 05:08:21] Production.INFO: ProcessCDR(1,14222015,1,1,2) [2025-01-11 05:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222015', 'tblTempUsageDetail_20' ) start [2025-01-11 05:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222015', 'tblTempUsageDetail_20' ) end [2025-01-11 05:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:08:24] Production.INFO: ==6034== Releasing lock... [2025-01-11 05:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:08:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:09:05 [end_date_ymd] => 2025-01-11 05:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:09:05' and `end` < '2025-01-11 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-11 05:09:19] Production.INFO: count ==152 [2025-01-11 05:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:09:05 - End Time 2025-01-11 05:09:05 [2025-01-11 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222020', 'tblTempUsageDetail_20' ) start [2025-01-11 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222020', 'tblTempUsageDetail_20' ) end [2025-01-11 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222020', 'tblTempVendorCDR_20' ) start [2025-01-11 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222020', 'tblTempVendorCDR_20' ) end [2025-01-11 05:09:19] Production.INFO: ProcessCDR(1,14222020,1,1,2) [2025-01-11 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222020', 'tblTempUsageDetail_20' ) start [2025-01-11 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222020', 'tblTempUsageDetail_20' ) end [2025-01-11 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:09:22] Production.INFO: ==6153== Releasing lock... [2025-01-11 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:10:06 [end_date_ymd] => 2025-01-11 05:10:06 [RateCDR] => 1 ) [2025-01-11 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:10:06' and `end` < '2025-01-11 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:10:19] Production.INFO: count ==150 [2025-01-11 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:10:06 - End Time 2025-01-11 05:10:06 [2025-01-11 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222026', 'tblTempUsageDetail_20' ) start [2025-01-11 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222026', 'tblTempUsageDetail_20' ) end [2025-01-11 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222026', 'tblTempVendorCDR_20' ) start [2025-01-11 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222026', 'tblTempVendorCDR_20' ) end [2025-01-11 05:10:19] Production.INFO: ProcessCDR(1,14222026,1,1,2) [2025-01-11 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222026', 'tblTempUsageDetail_20' ) start [2025-01-11 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222026', 'tblTempUsageDetail_20' ) end [2025-01-11 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:10:23] Production.INFO: ==6269== Releasing lock... [2025-01-11 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:11:06 [end_date_ymd] => 2025-01-11 05:11:06 [RateCDR] => 1 ) [2025-01-11 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:11:06' and `end` < '2025-01-11 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:11:19] Production.INFO: count ==150 [2025-01-11 05:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:11:06 - End Time 2025-01-11 05:11:06 [2025-01-11 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222031', 'tblTempUsageDetail_20' ) start [2025-01-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222031', 'tblTempUsageDetail_20' ) end [2025-01-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222031', 'tblTempVendorCDR_20' ) start [2025-01-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222031', 'tblTempVendorCDR_20' ) end [2025-01-11 05:11:19] Production.INFO: ProcessCDR(1,14222031,1,1,2) [2025-01-11 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222031', 'tblTempUsageDetail_20' ) start [2025-01-11 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222031', 'tblTempUsageDetail_20' ) end [2025-01-11 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:11:22] Production.INFO: ==6399== Releasing lock... [2025-01-11 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:12:05 [end_date_ymd] => 2025-01-11 05:12:05 [RateCDR] => 1 ) [2025-01-11 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:12:05' and `end` < '2025-01-11 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:12:19] Production.INFO: count ==150 [2025-01-11 05:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:12:05 - End Time 2025-01-11 05:12:05 [2025-01-11 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222036', 'tblTempUsageDetail_20' ) start [2025-01-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222036', 'tblTempUsageDetail_20' ) end [2025-01-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222036', 'tblTempVendorCDR_20' ) start [2025-01-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222036', 'tblTempVendorCDR_20' ) end [2025-01-11 05:12:19] Production.INFO: ProcessCDR(1,14222036,1,1,2) [2025-01-11 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222036', 'tblTempUsageDetail_20' ) start [2025-01-11 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222036', 'tblTempUsageDetail_20' ) end [2025-01-11 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:12:22] Production.INFO: ==6561== Releasing lock... [2025-01-11 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:12:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:13:05 [end_date_ymd] => 2025-01-11 05:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:13:05' and `end` < '2025-01-11 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-11 05:13:19] Production.INFO: count ==149 [2025-01-11 05:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:13:05 - End Time 2025-01-11 05:13:05 [2025-01-11 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222041', 'tblTempUsageDetail_20' ) start [2025-01-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222041', 'tblTempUsageDetail_20' ) end [2025-01-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222041', 'tblTempVendorCDR_20' ) start [2025-01-11 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222041', 'tblTempVendorCDR_20' ) end [2025-01-11 05:13:19] Production.INFO: ProcessCDR(1,14222041,1,1,2) [2025-01-11 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222041', 'tblTempUsageDetail_20' ) start [2025-01-11 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222041', 'tblTempUsageDetail_20' ) end [2025-01-11 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:13:22] Production.INFO: ==6679== Releasing lock... [2025-01-11 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:13:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:14:04 [end_date_ymd] => 2025-01-11 05:14:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:14:04' and `end` < '2025-01-11 05: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-11 05:14:17] Production.INFO: count ==149 [2025-01-11 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:14:04 - End Time 2025-01-11 05:14:04 [2025-01-11 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222046', 'tblTempUsageDetail_20' ) start [2025-01-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222046', 'tblTempUsageDetail_20' ) end [2025-01-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222046', 'tblTempVendorCDR_20' ) start [2025-01-11 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222046', 'tblTempVendorCDR_20' ) end [2025-01-11 05:14:17] Production.INFO: ProcessCDR(1,14222046,1,1,2) [2025-01-11 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222046', 'tblTempUsageDetail_20' ) start [2025-01-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222046', 'tblTempUsageDetail_20' ) end [2025-01-11 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:14:21] Production.INFO: ==6796== Releasing lock... [2025-01-11 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:15:05 [end_date_ymd] => 2025-01-11 05:15:05 [RateCDR] => 1 ) [2025-01-11 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:15:05' and `end` < '2025-01-11 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:15:18] Production.INFO: count ==149 [2025-01-11 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:15:05 - End Time 2025-01-11 05:15:05 [2025-01-11 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222051', 'tblTempUsageDetail_20' ) start [2025-01-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222051', 'tblTempUsageDetail_20' ) end [2025-01-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222051', 'tblTempVendorCDR_20' ) start [2025-01-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222051', 'tblTempVendorCDR_20' ) end [2025-01-11 05:15:18] Production.INFO: ProcessCDR(1,14222051,1,1,2) [2025-01-11 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222051', 'tblTempUsageDetail_20' ) start [2025-01-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222051', 'tblTempUsageDetail_20' ) end [2025-01-11 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:15:21] Production.INFO: ==6916== Releasing lock... [2025-01-11 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:16:06 [end_date_ymd] => 2025-01-11 05:16:06 [RateCDR] => 1 ) [2025-01-11 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:16:06' and `end` < '2025-01-11 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:16:19] Production.INFO: count ==149 [2025-01-11 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:16:06 - End Time 2025-01-11 05:16:06 [2025-01-11 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222056', 'tblTempUsageDetail_20' ) start [2025-01-11 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222056', 'tblTempUsageDetail_20' ) end [2025-01-11 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222056', 'tblTempVendorCDR_20' ) start [2025-01-11 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222056', 'tblTempVendorCDR_20' ) end [2025-01-11 05:16:19] Production.INFO: ProcessCDR(1,14222056,1,1,2) [2025-01-11 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222056', 'tblTempUsageDetail_20' ) start [2025-01-11 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222056', 'tblTempUsageDetail_20' ) end [2025-01-11 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:16:22] Production.INFO: ==7042== Releasing lock... [2025-01-11 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:17:05 [end_date_ymd] => 2025-01-11 05:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:17:05' and `end` < '2025-01-11 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-11 05:17:18] Production.INFO: count ==149 [2025-01-11 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:17:05 - End Time 2025-01-11 05:17:05 [2025-01-11 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222061', 'tblTempUsageDetail_20' ) start [2025-01-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222061', 'tblTempUsageDetail_20' ) end [2025-01-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222061', 'tblTempVendorCDR_20' ) start [2025-01-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222061', 'tblTempVendorCDR_20' ) end [2025-01-11 05:17:18] Production.INFO: ProcessCDR(1,14222061,1,1,2) [2025-01-11 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222061', 'tblTempUsageDetail_20' ) start [2025-01-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222061', 'tblTempUsageDetail_20' ) end [2025-01-11 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:17:21] Production.INFO: ==7163== Releasing lock... [2025-01-11 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:18:04 [end_date_ymd] => 2025-01-11 05:18:04 [RateCDR] => 1 ) [2025-01-11 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-11 02:18:04' and `end` < '2025-01-11 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-11 05:18:19] Production.INFO: count ==148 [2025-01-11 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:18:04 - End Time 2025-01-11 05:18:04 [2025-01-11 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222066', 'tblTempUsageDetail_20' ) start [2025-01-11 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222066', 'tblTempUsageDetail_20' ) end [2025-01-11 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222066', 'tblTempVendorCDR_20' ) start [2025-01-11 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222066', 'tblTempVendorCDR_20' ) end [2025-01-11 05:18:19] Production.INFO: ProcessCDR(1,14222066,1,1,2) [2025-01-11 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222066', 'tblTempUsageDetail_20' ) start [2025-01-11 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222066', 'tblTempUsageDetail_20' ) end [2025-01-11 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:18:22] Production.INFO: ==7288== Releasing lock... [2025-01-11 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:19:04 [end_date_ymd] => 2025-01-11 05:19:04 [RateCDR] => 1 ) [2025-01-11 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-11 02:19:04' and `end` < '2025-01-11 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:19:19] Production.INFO: count ==147 [2025-01-11 05:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:19:04 - End Time 2025-01-11 05:19:04 [2025-01-11 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222071', 'tblTempUsageDetail_20' ) start [2025-01-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222071', 'tblTempUsageDetail_20' ) end [2025-01-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222071', 'tblTempVendorCDR_20' ) start [2025-01-11 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222071', 'tblTempVendorCDR_20' ) end [2025-01-11 05:19:19] Production.INFO: ProcessCDR(1,14222071,1,1,2) [2025-01-11 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222071', 'tblTempUsageDetail_20' ) start [2025-01-11 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222071', 'tblTempUsageDetail_20' ) end [2025-01-11 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:19:22] Production.INFO: ==7402== Releasing lock... [2025-01-11 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:20:06 [end_date_ymd] => 2025-01-11 05:20:06 [RateCDR] => 1 ) [2025-01-11 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:20:06' and `end` < '2025-01-11 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:20:19] Production.INFO: count ==141 [2025-01-11 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:20:06 - End Time 2025-01-11 05:20:06 [2025-01-11 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222077', 'tblTempUsageDetail_20' ) start [2025-01-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222077', 'tblTempUsageDetail_20' ) end [2025-01-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222077', 'tblTempVendorCDR_20' ) start [2025-01-11 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222077', 'tblTempVendorCDR_20' ) end [2025-01-11 05:20:19] Production.INFO: ProcessCDR(1,14222077,1,1,2) [2025-01-11 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222077', 'tblTempUsageDetail_20' ) start [2025-01-11 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222077', 'tblTempUsageDetail_20' ) end [2025-01-11 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:20:22] Production.INFO: ==7509== Releasing lock... [2025-01-11 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:21:05 [end_date_ymd] => 2025-01-11 05:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:21:05' and `end` < '2025-01-11 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-11 05:21:18] Production.INFO: count ==134 [2025-01-11 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:21:05 - End Time 2025-01-11 05:21:05 [2025-01-11 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222082', 'tblTempUsageDetail_20' ) start [2025-01-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222082', 'tblTempUsageDetail_20' ) end [2025-01-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222082', 'tblTempVendorCDR_20' ) start [2025-01-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222082', 'tblTempVendorCDR_20' ) end [2025-01-11 05:21:18] Production.INFO: ProcessCDR(1,14222082,1,1,2) [2025-01-11 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222082', 'tblTempUsageDetail_20' ) start [2025-01-11 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222082', 'tblTempUsageDetail_20' ) end [2025-01-11 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:21:22] Production.INFO: ==7617== Releasing lock... [2025-01-11 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:22:05 [end_date_ymd] => 2025-01-11 05:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:22:05' and `end` < '2025-01-11 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-11 05:22:18] Production.INFO: count ==134 [2025-01-11 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:22:05 - End Time 2025-01-11 05:22:05 [2025-01-11 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222087', 'tblTempUsageDetail_20' ) start [2025-01-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222087', 'tblTempUsageDetail_20' ) end [2025-01-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222087', 'tblTempVendorCDR_20' ) start [2025-01-11 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222087', 'tblTempVendorCDR_20' ) end [2025-01-11 05:22:18] Production.INFO: ProcessCDR(1,14222087,1,1,2) [2025-01-11 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222087', 'tblTempUsageDetail_20' ) start [2025-01-11 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222087', 'tblTempUsageDetail_20' ) end [2025-01-11 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:22:21] Production.INFO: ==7715== Releasing lock... [2025-01-11 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:23:05 [end_date_ymd] => 2025-01-11 05:23:05 [RateCDR] => 1 ) [2025-01-11 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:23:05' and `end` < '2025-01-11 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:23:18] Production.INFO: count ==134 [2025-01-11 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:23:05 - End Time 2025-01-11 05:23:05 [2025-01-11 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222092', 'tblTempUsageDetail_20' ) start [2025-01-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222092', 'tblTempUsageDetail_20' ) end [2025-01-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222092', 'tblTempVendorCDR_20' ) start [2025-01-11 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222092', 'tblTempVendorCDR_20' ) end [2025-01-11 05:23:18] Production.INFO: ProcessCDR(1,14222092,1,1,2) [2025-01-11 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222092', 'tblTempUsageDetail_20' ) start [2025-01-11 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222092', 'tblTempUsageDetail_20' ) end [2025-01-11 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:23:21] Production.INFO: ==7821== Releasing lock... [2025-01-11 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:24:05 [end_date_ymd] => 2025-01-11 05:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:24:05' and `end` < '2025-01-11 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-11 05:24:18] Production.INFO: count ==134 [2025-01-11 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:24:05 - End Time 2025-01-11 05:24:05 [2025-01-11 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222097', 'tblTempUsageDetail_20' ) start [2025-01-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222097', 'tblTempUsageDetail_20' ) end [2025-01-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222097', 'tblTempVendorCDR_20' ) start [2025-01-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222097', 'tblTempVendorCDR_20' ) end [2025-01-11 05:24:18] Production.INFO: ProcessCDR(1,14222097,1,1,2) [2025-01-11 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222097', 'tblTempUsageDetail_20' ) start [2025-01-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222097', 'tblTempUsageDetail_20' ) end [2025-01-11 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:24:21] Production.INFO: ==7918== Releasing lock... [2025-01-11 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:25:04 [end_date_ymd] => 2025-01-11 05:25:04 [RateCDR] => 1 ) [2025-01-11 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:25:04' and `end` < '2025-01-11 05:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:25:17] Production.INFO: count ==134 [2025-01-11 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:25:04 - End Time 2025-01-11 05:25:04 [2025-01-11 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222102', 'tblTempUsageDetail_20' ) start [2025-01-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222102', 'tblTempUsageDetail_20' ) end [2025-01-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222102', 'tblTempVendorCDR_20' ) start [2025-01-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222102', 'tblTempVendorCDR_20' ) end [2025-01-11 05:25:17] Production.INFO: ProcessCDR(1,14222102,1,1,2) [2025-01-11 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222102', 'tblTempUsageDetail_20' ) start [2025-01-11 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222102', 'tblTempUsageDetail_20' ) end [2025-01-11 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:25:21] Production.INFO: ==8017== Releasing lock... [2025-01-11 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:26:05 [end_date_ymd] => 2025-01-11 05:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:26:05' and `end` < '2025-01-11 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-11 05:26:19] Production.INFO: count ==134 [2025-01-11 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:26:05 - End Time 2025-01-11 05:26:05 [2025-01-11 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222107', 'tblTempUsageDetail_20' ) start [2025-01-11 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222107', 'tblTempUsageDetail_20' ) end [2025-01-11 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222107', 'tblTempVendorCDR_20' ) start [2025-01-11 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222107', 'tblTempVendorCDR_20' ) end [2025-01-11 05:26:19] Production.INFO: ProcessCDR(1,14222107,1,1,2) [2025-01-11 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222107', 'tblTempUsageDetail_20' ) start [2025-01-11 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222107', 'tblTempUsageDetail_20' ) end [2025-01-11 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:26:22] Production.INFO: ==8115== Releasing lock... [2025-01-11 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:27:04 [end_date_ymd] => 2025-01-11 05:27:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:27:04' and `end` < '2025-01-11 05: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-11 05:27:18] Production.INFO: count ==134 [2025-01-11 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:27:04 - End Time 2025-01-11 05:27:04 [2025-01-11 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222112', 'tblTempUsageDetail_20' ) start [2025-01-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222112', 'tblTempUsageDetail_20' ) end [2025-01-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222112', 'tblTempVendorCDR_20' ) start [2025-01-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222112', 'tblTempVendorCDR_20' ) end [2025-01-11 05:27:18] Production.INFO: ProcessCDR(1,14222112,1,1,2) [2025-01-11 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222112', 'tblTempUsageDetail_20' ) start [2025-01-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222112', 'tblTempUsageDetail_20' ) end [2025-01-11 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:27:21] Production.INFO: ==8249== Releasing lock... [2025-01-11 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:28:05 [end_date_ymd] => 2025-01-11 05:28:05 [RateCDR] => 1 ) [2025-01-11 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:28:05' and `end` < '2025-01-11 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:28:19] Production.INFO: count ==134 [2025-01-11 05:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:28:05 - End Time 2025-01-11 05:28:05 [2025-01-11 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222117', 'tblTempUsageDetail_20' ) start [2025-01-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222117', 'tblTempUsageDetail_20' ) end [2025-01-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222117', 'tblTempVendorCDR_20' ) start [2025-01-11 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222117', 'tblTempVendorCDR_20' ) end [2025-01-11 05:28:19] Production.INFO: ProcessCDR(1,14222117,1,1,2) [2025-01-11 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222117', 'tblTempUsageDetail_20' ) start [2025-01-11 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222117', 'tblTempUsageDetail_20' ) end [2025-01-11 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:28:22] Production.INFO: ==8339== Releasing lock... [2025-01-11 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:29:05 [end_date_ymd] => 2025-01-11 05:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:29:05' and `end` < '2025-01-11 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-11 05:29:18] Production.INFO: count ==134 [2025-01-11 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:29:05 - End Time 2025-01-11 05:29:05 [2025-01-11 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222122', 'tblTempUsageDetail_20' ) start [2025-01-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222122', 'tblTempUsageDetail_20' ) end [2025-01-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222122', 'tblTempVendorCDR_20' ) start [2025-01-11 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222122', 'tblTempVendorCDR_20' ) end [2025-01-11 05:29:18] Production.INFO: ProcessCDR(1,14222122,1,1,2) [2025-01-11 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222122', 'tblTempUsageDetail_20' ) start [2025-01-11 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222122', 'tblTempUsageDetail_20' ) end [2025-01-11 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:29:21] Production.INFO: ==8427== Releasing lock... [2025-01-11 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:30:05 [end_date_ymd] => 2025-01-11 05:30:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:30:05' and `end` < '2025-01-11 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-11 05:30:18] Production.INFO: count ==129 [2025-01-11 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:30:05 - End Time 2025-01-11 05:30:05 [2025-01-11 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222127', 'tblTempUsageDetail_20' ) start [2025-01-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222127', 'tblTempUsageDetail_20' ) end [2025-01-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222127', 'tblTempVendorCDR_20' ) start [2025-01-11 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222127', 'tblTempVendorCDR_20' ) end [2025-01-11 05:30:18] Production.INFO: ProcessCDR(1,14222127,1,1,2) [2025-01-11 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222127', 'tblTempUsageDetail_20' ) start [2025-01-11 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222127', 'tblTempUsageDetail_20' ) end [2025-01-11 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:30:21] Production.INFO: ==8514== Releasing lock... [2025-01-11 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:31:04 [end_date_ymd] => 2025-01-11 05:31:04 [RateCDR] => 1 ) [2025-01-11 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-11 02:31:04' and `end` < '2025-01-11 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-11 05:31:17] Production.INFO: count ==121 [2025-01-11 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:31:04 - End Time 2025-01-11 05:31:04 [2025-01-11 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222133', 'tblTempUsageDetail_20' ) start [2025-01-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222133', 'tblTempUsageDetail_20' ) end [2025-01-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222133', 'tblTempVendorCDR_20' ) start [2025-01-11 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222133', 'tblTempVendorCDR_20' ) end [2025-01-11 05:31:17] Production.INFO: ProcessCDR(1,14222133,1,1,2) [2025-01-11 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222133', 'tblTempUsageDetail_20' ) start [2025-01-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222133', 'tblTempUsageDetail_20' ) end [2025-01-11 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:31:21] Production.INFO: ==8605== Releasing lock... [2025-01-11 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:32:04 [end_date_ymd] => 2025-01-11 05:32:04 [RateCDR] => 1 ) [2025-01-11 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-11 02:32:04' and `end` < '2025-01-11 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-11 05:32:17] Production.INFO: count ==121 [2025-01-11 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:32:04 - End Time 2025-01-11 05:32:04 [2025-01-11 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222138', 'tblTempUsageDetail_20' ) start [2025-01-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222138', 'tblTempUsageDetail_20' ) end [2025-01-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222138', 'tblTempVendorCDR_20' ) start [2025-01-11 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222138', 'tblTempVendorCDR_20' ) end [2025-01-11 05:32:17] Production.INFO: ProcessCDR(1,14222138,1,1,2) [2025-01-11 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222138', 'tblTempUsageDetail_20' ) start [2025-01-11 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222138', 'tblTempUsageDetail_20' ) end [2025-01-11 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:32:20] Production.INFO: ==8693== Releasing lock... [2025-01-11 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:33:05 [end_date_ymd] => 2025-01-11 05:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:33:05' and `end` < '2025-01-11 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-11 05:33:18] Production.INFO: count ==121 [2025-01-11 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:33:05 - End Time 2025-01-11 05:33:05 [2025-01-11 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222143', 'tblTempUsageDetail_20' ) start [2025-01-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222143', 'tblTempUsageDetail_20' ) end [2025-01-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222143', 'tblTempVendorCDR_20' ) start [2025-01-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222143', 'tblTempVendorCDR_20' ) end [2025-01-11 05:33:18] Production.INFO: ProcessCDR(1,14222143,1,1,2) [2025-01-11 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222143', 'tblTempUsageDetail_20' ) start [2025-01-11 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222143', 'tblTempUsageDetail_20' ) end [2025-01-11 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:33:22] Production.INFO: ==8777== Releasing lock... [2025-01-11 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:34:06 [end_date_ymd] => 2025-01-11 05:34:06 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:34:06' and `end` < '2025-01-11 05: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-11 05:34:20] Production.INFO: count ==121 [2025-01-11 05:34:20] Production.ERROR: pbx CDR StartTime 2025-01-11 02:34:06 - End Time 2025-01-11 05:34:06 [2025-01-11 05:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222148', 'tblTempUsageDetail_20' ) start [2025-01-11 05:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222148', 'tblTempUsageDetail_20' ) end [2025-01-11 05:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222148', 'tblTempVendorCDR_20' ) start [2025-01-11 05:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222148', 'tblTempVendorCDR_20' ) end [2025-01-11 05:34:20] Production.INFO: ProcessCDR(1,14222148,1,1,2) [2025-01-11 05:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222148', 'tblTempUsageDetail_20' ) start [2025-01-11 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222148', 'tblTempUsageDetail_20' ) end [2025-01-11 05:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:34:23] Production.INFO: ==8865== Releasing lock... [2025-01-11 05:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:34:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:35:04 [end_date_ymd] => 2025-01-11 05:35:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:35:04' and `end` < '2025-01-11 05: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-11 05:35:17] Production.INFO: count ==121 [2025-01-11 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:35:04 - End Time 2025-01-11 05:35:04 [2025-01-11 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222153', 'tblTempUsageDetail_20' ) start [2025-01-11 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222153', 'tblTempUsageDetail_20' ) end [2025-01-11 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222153', 'tblTempVendorCDR_20' ) start [2025-01-11 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222153', 'tblTempVendorCDR_20' ) end [2025-01-11 05:35:17] Production.INFO: ProcessCDR(1,14222153,1,1,2) [2025-01-11 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222153', 'tblTempUsageDetail_20' ) start [2025-01-11 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222153', 'tblTempUsageDetail_20' ) end [2025-01-11 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:35:21] Production.INFO: ==8952== Releasing lock... [2025-01-11 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:36:05 [end_date_ymd] => 2025-01-11 05:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:36:05' and `end` < '2025-01-11 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-11 05:36:18] Production.INFO: count ==121 [2025-01-11 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:36:05 - End Time 2025-01-11 05:36:05 [2025-01-11 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222158', 'tblTempUsageDetail_20' ) start [2025-01-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222158', 'tblTempUsageDetail_20' ) end [2025-01-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222158', 'tblTempVendorCDR_20' ) start [2025-01-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222158', 'tblTempVendorCDR_20' ) end [2025-01-11 05:36:18] Production.INFO: ProcessCDR(1,14222158,1,1,2) [2025-01-11 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222158', 'tblTempUsageDetail_20' ) start [2025-01-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222158', 'tblTempUsageDetail_20' ) end [2025-01-11 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:36:21] Production.INFO: ==9036== Releasing lock... [2025-01-11 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:37:04 [end_date_ymd] => 2025-01-11 05:37:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:37:04' and `end` < '2025-01-11 05: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-11 05:37:17] Production.INFO: count ==121 [2025-01-11 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:37:04 - End Time 2025-01-11 05:37:04 [2025-01-11 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222163', 'tblTempUsageDetail_20' ) start [2025-01-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222163', 'tblTempUsageDetail_20' ) end [2025-01-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222163', 'tblTempVendorCDR_20' ) start [2025-01-11 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222163', 'tblTempVendorCDR_20' ) end [2025-01-11 05:37:17] Production.INFO: ProcessCDR(1,14222163,1,1,2) [2025-01-11 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222163', 'tblTempUsageDetail_20' ) start [2025-01-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222163', 'tblTempUsageDetail_20' ) end [2025-01-11 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:37:21] Production.INFO: ==9124== Releasing lock... [2025-01-11 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:38:05 [end_date_ymd] => 2025-01-11 05:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:38:05' and `end` < '2025-01-11 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-11 05:38:18] Production.INFO: count ==121 [2025-01-11 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:38:05 - End Time 2025-01-11 05:38:05 [2025-01-11 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222168', 'tblTempUsageDetail_20' ) start [2025-01-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222168', 'tblTempUsageDetail_20' ) end [2025-01-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222168', 'tblTempVendorCDR_20' ) start [2025-01-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222168', 'tblTempVendorCDR_20' ) end [2025-01-11 05:38:18] Production.INFO: ProcessCDR(1,14222168,1,1,2) [2025-01-11 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222168', 'tblTempUsageDetail_20' ) start [2025-01-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222168', 'tblTempUsageDetail_20' ) end [2025-01-11 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:38:21] Production.INFO: ==9211== Releasing lock... [2025-01-11 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:39:05 [end_date_ymd] => 2025-01-11 05:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:39:05' and `end` < '2025-01-11 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-11 05:39:17] Production.INFO: count ==121 [2025-01-11 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:39:05 - End Time 2025-01-11 05:39:05 [2025-01-11 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222173', 'tblTempUsageDetail_20' ) start [2025-01-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222173', 'tblTempUsageDetail_20' ) end [2025-01-11 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222173', 'tblTempVendorCDR_20' ) start [2025-01-11 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222173', 'tblTempVendorCDR_20' ) end [2025-01-11 05:39:18] Production.INFO: ProcessCDR(1,14222173,1,1,2) [2025-01-11 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222173', 'tblTempUsageDetail_20' ) start [2025-01-11 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222173', 'tblTempUsageDetail_20' ) end [2025-01-11 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:39:21] Production.INFO: ==9295== Releasing lock... [2025-01-11 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:40:06 [end_date_ymd] => 2025-01-11 05:40:06 [RateCDR] => 1 ) [2025-01-11 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-11 02:40:06' and `end` < '2025-01-11 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-11 05:40:19] Production.INFO: count ==115 [2025-01-11 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:40:06 - End Time 2025-01-11 05:40:06 [2025-01-11 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222179', 'tblTempUsageDetail_20' ) start [2025-01-11 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222179', 'tblTempUsageDetail_20' ) end [2025-01-11 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222179', 'tblTempVendorCDR_20' ) start [2025-01-11 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222179', 'tblTempVendorCDR_20' ) end [2025-01-11 05:40:19] Production.INFO: ProcessCDR(1,14222179,1,1,2) [2025-01-11 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222179', 'tblTempUsageDetail_20' ) start [2025-01-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222179', 'tblTempUsageDetail_20' ) end [2025-01-11 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:40:22] Production.INFO: ==9384== Releasing lock... [2025-01-11 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:41:04 [end_date_ymd] => 2025-01-11 05:41:04 [RateCDR] => 1 ) [2025-01-11 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-11 02:41:04' and `end` < '2025-01-11 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-11 05:41:18] Production.INFO: count ==113 [2025-01-11 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:41:04 - End Time 2025-01-11 05:41:04 [2025-01-11 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222184', 'tblTempUsageDetail_20' ) start [2025-01-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222184', 'tblTempUsageDetail_20' ) end [2025-01-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222184', 'tblTempVendorCDR_20' ) start [2025-01-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222184', 'tblTempVendorCDR_20' ) end [2025-01-11 05:41:18] Production.INFO: ProcessCDR(1,14222184,1,1,2) [2025-01-11 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222184', 'tblTempUsageDetail_20' ) start [2025-01-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222184', 'tblTempUsageDetail_20' ) end [2025-01-11 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:41:21] Production.INFO: ==9472== Releasing lock... [2025-01-11 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:42:04 [end_date_ymd] => 2025-01-11 05:42:04 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:42:04' and `end` < '2025-01-11 05: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-11 05:42:18] Production.INFO: count ==113 [2025-01-11 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:42:04 - End Time 2025-01-11 05:42:04 [2025-01-11 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222189', 'tblTempUsageDetail_20' ) start [2025-01-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222189', 'tblTempUsageDetail_20' ) end [2025-01-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222189', 'tblTempVendorCDR_20' ) start [2025-01-11 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222189', 'tblTempVendorCDR_20' ) end [2025-01-11 05:42:18] Production.INFO: ProcessCDR(1,14222189,1,1,2) [2025-01-11 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222189', 'tblTempUsageDetail_20' ) start [2025-01-11 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222189', 'tblTempUsageDetail_20' ) end [2025-01-11 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:42:21] Production.INFO: ==9542== Releasing lock... [2025-01-11 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:43:05 [end_date_ymd] => 2025-01-11 05:43:05 [RateCDR] => 1 ) [2025-01-11 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:43:05' and `end` < '2025-01-11 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:43:19] Production.INFO: count ==113 [2025-01-11 05:43:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:43:05 - End Time 2025-01-11 05:43:05 [2025-01-11 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222194', 'tblTempUsageDetail_20' ) start [2025-01-11 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222194', 'tblTempUsageDetail_20' ) end [2025-01-11 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222194', 'tblTempVendorCDR_20' ) start [2025-01-11 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222194', 'tblTempVendorCDR_20' ) end [2025-01-11 05:43:19] Production.INFO: ProcessCDR(1,14222194,1,1,2) [2025-01-11 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222194', 'tblTempUsageDetail_20' ) start [2025-01-11 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222194', 'tblTempUsageDetail_20' ) end [2025-01-11 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:43:22] Production.INFO: ==9651== Releasing lock... [2025-01-11 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:44:05 [end_date_ymd] => 2025-01-11 05:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:44:05' and `end` < '2025-01-11 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-11 05:44:18] Production.INFO: count ==113 [2025-01-11 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:44:05 - End Time 2025-01-11 05:44:05 [2025-01-11 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222199', 'tblTempUsageDetail_20' ) start [2025-01-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222199', 'tblTempUsageDetail_20' ) end [2025-01-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222199', 'tblTempVendorCDR_20' ) start [2025-01-11 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222199', 'tblTempVendorCDR_20' ) end [2025-01-11 05:44:18] Production.INFO: ProcessCDR(1,14222199,1,1,2) [2025-01-11 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222199', 'tblTempUsageDetail_20' ) start [2025-01-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222199', 'tblTempUsageDetail_20' ) end [2025-01-11 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:44:22] Production.INFO: ==9721== Releasing lock... [2025-01-11 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:45:05 [end_date_ymd] => 2025-01-11 05:45:05 [RateCDR] => 1 ) [2025-01-11 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:45:05' and `end` < '2025-01-11 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:45:18] Production.INFO: count ==113 [2025-01-11 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:45:05 - End Time 2025-01-11 05:45:05 [2025-01-11 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222204', 'tblTempUsageDetail_20' ) start [2025-01-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222204', 'tblTempUsageDetail_20' ) end [2025-01-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222204', 'tblTempVendorCDR_20' ) start [2025-01-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222204', 'tblTempVendorCDR_20' ) end [2025-01-11 05:45:18] Production.INFO: ProcessCDR(1,14222204,1,1,2) [2025-01-11 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222204', 'tblTempUsageDetail_20' ) start [2025-01-11 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222204', 'tblTempUsageDetail_20' ) end [2025-01-11 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:45:21] Production.INFO: ==9798== Releasing lock... [2025-01-11 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:46:05 [end_date_ymd] => 2025-01-11 05:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:46:05' and `end` < '2025-01-11 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-11 05:46:18] Production.INFO: count ==113 [2025-01-11 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:46:05 - End Time 2025-01-11 05:46:05 [2025-01-11 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222209', 'tblTempUsageDetail_20' ) start [2025-01-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222209', 'tblTempUsageDetail_20' ) end [2025-01-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222209', 'tblTempVendorCDR_20' ) start [2025-01-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222209', 'tblTempVendorCDR_20' ) end [2025-01-11 05:46:18] Production.INFO: ProcessCDR(1,14222209,1,1,2) [2025-01-11 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222209', 'tblTempUsageDetail_20' ) start [2025-01-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222209', 'tblTempUsageDetail_20' ) end [2025-01-11 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:46:21] Production.INFO: ==9868== Releasing lock... [2025-01-11 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:47:05 [end_date_ymd] => 2025-01-11 05:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:47:05' and `end` < '2025-01-11 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-11 05:47:18] Production.INFO: count ==113 [2025-01-11 05:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:47:05 - End Time 2025-01-11 05:47:05 [2025-01-11 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222214', 'tblTempUsageDetail_20' ) start [2025-01-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222214', 'tblTempUsageDetail_20' ) end [2025-01-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222214', 'tblTempVendorCDR_20' ) start [2025-01-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222214', 'tblTempVendorCDR_20' ) end [2025-01-11 05:47:18] Production.INFO: ProcessCDR(1,14222214,1,1,2) [2025-01-11 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222214', 'tblTempUsageDetail_20' ) start [2025-01-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222214', 'tblTempUsageDetail_20' ) end [2025-01-11 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:47:21] Production.INFO: ==9942== Releasing lock... [2025-01-11 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:48:05 [end_date_ymd] => 2025-01-11 05:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:48:05' and `end` < '2025-01-11 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-11 05:48:19] Production.INFO: count ==113 [2025-01-11 05:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:48:05 - End Time 2025-01-11 05:48:05 [2025-01-11 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222219', 'tblTempUsageDetail_20' ) start [2025-01-11 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222219', 'tblTempUsageDetail_20' ) end [2025-01-11 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222219', 'tblTempVendorCDR_20' ) start [2025-01-11 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222219', 'tblTempVendorCDR_20' ) end [2025-01-11 05:48:19] Production.INFO: ProcessCDR(1,14222219,1,1,2) [2025-01-11 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222219', 'tblTempUsageDetail_20' ) start [2025-01-11 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222219', 'tblTempUsageDetail_20' ) end [2025-01-11 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:48:22] Production.INFO: ==10013== Releasing lock... [2025-01-11 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:49:05 [end_date_ymd] => 2025-01-11 05:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:49:05' and `end` < '2025-01-11 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-11 05:49:17] Production.INFO: count ==113 [2025-01-11 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-11 02:49:05 - End Time 2025-01-11 05:49:05 [2025-01-11 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222224', 'tblTempUsageDetail_20' ) start [2025-01-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222224', 'tblTempUsageDetail_20' ) end [2025-01-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222224', 'tblTempVendorCDR_20' ) start [2025-01-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222224', 'tblTempVendorCDR_20' ) end [2025-01-11 05:49:18] Production.INFO: ProcessCDR(1,14222224,1,1,2) [2025-01-11 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222224', 'tblTempUsageDetail_20' ) start [2025-01-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222224', 'tblTempUsageDetail_20' ) end [2025-01-11 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:49:21] Production.INFO: ==10084== Releasing lock... [2025-01-11 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:50:05 [end_date_ymd] => 2025-01-11 05:50:05 [RateCDR] => 1 ) [2025-01-11 05: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-11 02:50:05' and `end` < '2025-01-11 05: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-11 05:50:18] Production.INFO: count ==109 [2025-01-11 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:50:05 - End Time 2025-01-11 05:50:05 [2025-01-11 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222229', 'tblTempUsageDetail_20' ) start [2025-01-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222229', 'tblTempUsageDetail_20' ) end [2025-01-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222229', 'tblTempVendorCDR_20' ) start [2025-01-11 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222229', 'tblTempVendorCDR_20' ) end [2025-01-11 05:50:18] Production.INFO: ProcessCDR(1,14222229,1,1,2) [2025-01-11 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222229', 'tblTempUsageDetail_20' ) start [2025-01-11 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222229', 'tblTempUsageDetail_20' ) end [2025-01-11 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:50:22] Production.INFO: ==10157== Releasing lock... [2025-01-11 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:51:05 [end_date_ymd] => 2025-01-11 05:51:05 [RateCDR] => 1 ) [2025-01-11 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:51:05' and `end` < '2025-01-11 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:51:19] Production.INFO: count ==101 [2025-01-11 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:51:05 - End Time 2025-01-11 05:51:05 [2025-01-11 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222235', 'tblTempUsageDetail_20' ) start [2025-01-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222235', 'tblTempUsageDetail_20' ) end [2025-01-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222235', 'tblTempVendorCDR_20' ) start [2025-01-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222235', 'tblTempVendorCDR_20' ) end [2025-01-11 05:51:19] Production.INFO: ProcessCDR(1,14222235,1,1,2) [2025-01-11 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222235', 'tblTempUsageDetail_20' ) start [2025-01-11 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222235', 'tblTempUsageDetail_20' ) end [2025-01-11 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:51:22] Production.INFO: ==10229== Releasing lock... [2025-01-11 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:52:05 [end_date_ymd] => 2025-01-11 05:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:52:05' and `end` < '2025-01-11 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-11 05:52:19] Production.INFO: count ==101 [2025-01-11 05:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:52:05 - End Time 2025-01-11 05:52:05 [2025-01-11 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222240', 'tblTempUsageDetail_20' ) start [2025-01-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222240', 'tblTempUsageDetail_20' ) end [2025-01-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222240', 'tblTempVendorCDR_20' ) start [2025-01-11 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222240', 'tblTempVendorCDR_20' ) end [2025-01-11 05:52:19] Production.INFO: ProcessCDR(1,14222240,1,1,2) [2025-01-11 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222240', 'tblTempUsageDetail_20' ) start [2025-01-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222240', 'tblTempUsageDetail_20' ) end [2025-01-11 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:52:22] Production.INFO: ==10299== Releasing lock... [2025-01-11 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:53:05 [end_date_ymd] => 2025-01-11 05:53:05 [RateCDR] => 1 ) [2025-01-11 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:53:05' and `end` < '2025-01-11 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:53:18] Production.INFO: count ==100 [2025-01-11 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:53:05 - End Time 2025-01-11 05:53:05 [2025-01-11 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222245', 'tblTempUsageDetail_20' ) start [2025-01-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222245', 'tblTempUsageDetail_20' ) end [2025-01-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222245', 'tblTempVendorCDR_20' ) start [2025-01-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222245', 'tblTempVendorCDR_20' ) end [2025-01-11 05:53:18] Production.INFO: ProcessCDR(1,14222245,1,1,2) [2025-01-11 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222245', 'tblTempUsageDetail_20' ) start [2025-01-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222245', 'tblTempUsageDetail_20' ) end [2025-01-11 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:53:21] Production.INFO: ==10371== Releasing lock... [2025-01-11 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:54:05 [end_date_ymd] => 2025-01-11 05:54:05 [RateCDR] => 1 ) [2025-01-11 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:54:05' and `end` < '2025-01-11 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:54:19] Production.INFO: count ==100 [2025-01-11 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:54:05 - End Time 2025-01-11 05:54:05 [2025-01-11 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222250', 'tblTempUsageDetail_20' ) start [2025-01-11 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222250', 'tblTempUsageDetail_20' ) end [2025-01-11 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222250', 'tblTempVendorCDR_20' ) start [2025-01-11 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222250', 'tblTempVendorCDR_20' ) end [2025-01-11 05:54:19] Production.INFO: ProcessCDR(1,14222250,1,1,2) [2025-01-11 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222250', 'tblTempUsageDetail_20' ) start [2025-01-11 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222250', 'tblTempUsageDetail_20' ) end [2025-01-11 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:54:22] Production.INFO: ==10442== Releasing lock... [2025-01-11 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:55:05 [end_date_ymd] => 2025-01-11 05:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:55:05' and `end` < '2025-01-11 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-11 05:55:18] Production.INFO: count ==100 [2025-01-11 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:55:05 - End Time 2025-01-11 05:55:05 [2025-01-11 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222255', 'tblTempUsageDetail_20' ) start [2025-01-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222255', 'tblTempUsageDetail_20' ) end [2025-01-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222255', 'tblTempVendorCDR_20' ) start [2025-01-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222255', 'tblTempVendorCDR_20' ) end [2025-01-11 05:55:18] Production.INFO: ProcessCDR(1,14222255,1,1,2) [2025-01-11 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222255', 'tblTempUsageDetail_20' ) start [2025-01-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222255', 'tblTempUsageDetail_20' ) end [2025-01-11 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:55:21] Production.INFO: ==10514== Releasing lock... [2025-01-11 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:56:06 [end_date_ymd] => 2025-01-11 05:56:06 [RateCDR] => 1 ) [2025-01-11 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:56:06' and `end` < '2025-01-11 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:56:19] Production.INFO: count ==100 [2025-01-11 05:56:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:56:06 - End Time 2025-01-11 05:56:06 [2025-01-11 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222260', 'tblTempUsageDetail_20' ) start [2025-01-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222260', 'tblTempUsageDetail_20' ) end [2025-01-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222260', 'tblTempVendorCDR_20' ) start [2025-01-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222260', 'tblTempVendorCDR_20' ) end [2025-01-11 05:56:19] Production.INFO: ProcessCDR(1,14222260,1,1,2) [2025-01-11 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222260', 'tblTempUsageDetail_20' ) start [2025-01-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222260', 'tblTempUsageDetail_20' ) end [2025-01-11 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:56:22] Production.INFO: ==10585== Releasing lock... [2025-01-11 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:57:06 [end_date_ymd] => 2025-01-11 05:57:06 [RateCDR] => 1 ) [2025-01-11 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 02:57:06' and `end` < '2025-01-11 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 05:57:20] Production.INFO: count ==100 [2025-01-11 05:57:20] Production.ERROR: pbx CDR StartTime 2025-01-11 02:57:06 - End Time 2025-01-11 05:57:06 [2025-01-11 05:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222265', 'tblTempUsageDetail_20' ) start [2025-01-11 05:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222265', 'tblTempUsageDetail_20' ) end [2025-01-11 05:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222265', 'tblTempVendorCDR_20' ) start [2025-01-11 05:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222265', 'tblTempVendorCDR_20' ) end [2025-01-11 05:57:20] Production.INFO: ProcessCDR(1,14222265,1,1,2) [2025-01-11 05:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222265', 'tblTempUsageDetail_20' ) start [2025-01-11 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222265', 'tblTempUsageDetail_20' ) end [2025-01-11 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:57:23] Production.INFO: ==10674== Releasing lock... [2025-01-11 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:57:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:58:05 [end_date_ymd] => 2025-01-11 05:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:58:05' and `end` < '2025-01-11 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-11 05:58:19] Production.INFO: count ==100 [2025-01-11 05:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 02:58:05 - End Time 2025-01-11 05:58:05 [2025-01-11 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222270', 'tblTempUsageDetail_20' ) start [2025-01-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222270', 'tblTempUsageDetail_20' ) end [2025-01-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222270', 'tblTempVendorCDR_20' ) start [2025-01-11 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222270', 'tblTempVendorCDR_20' ) end [2025-01-11 05:58:19] Production.INFO: ProcessCDR(1,14222270,1,1,2) [2025-01-11 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222270', 'tblTempUsageDetail_20' ) start [2025-01-11 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222270', 'tblTempUsageDetail_20' ) end [2025-01-11 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:58:22] Production.INFO: ==10844== Releasing lock... [2025-01-11 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 02:59:05 [end_date_ymd] => 2025-01-11 05:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 02:59:05' and `end` < '2025-01-11 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-11 05:59:18] Production.INFO: count ==100 [2025-01-11 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 02:59:05 - End Time 2025-01-11 05:59:05 [2025-01-11 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222275', 'tblTempUsageDetail_20' ) start [2025-01-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222275', 'tblTempUsageDetail_20' ) end [2025-01-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222275', 'tblTempVendorCDR_20' ) start [2025-01-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222275', 'tblTempVendorCDR_20' ) end [2025-01-11 05:59:18] Production.INFO: ProcessCDR(1,14222275,1,1,2) [2025-01-11 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222275', 'tblTempUsageDetail_20' ) start [2025-01-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222275', 'tblTempUsageDetail_20' ) end [2025-01-11 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 05:59:21] Production.INFO: ==10972== Releasing lock... [2025-01-11 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:00:05 [end_date_ymd] => 2025-01-11 06:00:05 [RateCDR] => 1 ) [2025-01-11 06: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-11 03:00:05' and `end` < '2025-01-11 06: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-11 06:00:18] Production.INFO: count ==96 [2025-01-11 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:00:05 - End Time 2025-01-11 06:00:05 [2025-01-11 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222281', 'tblTempUsageDetail_20' ) start [2025-01-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222281', 'tblTempUsageDetail_20' ) end [2025-01-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222281', 'tblTempVendorCDR_20' ) start [2025-01-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222281', 'tblTempVendorCDR_20' ) end [2025-01-11 06:00:18] Production.INFO: ProcessCDR(1,14222281,1,1,2) [2025-01-11 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222281', 'tblTempUsageDetail_20' ) start [2025-01-11 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222281', 'tblTempUsageDetail_20' ) end [2025-01-11 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:00:21] Production.INFO: ==11102== Releasing lock... [2025-01-11 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:01:04 [end_date_ymd] => 2025-01-11 06:01:04 [RateCDR] => 1 ) [2025-01-11 06: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-11 03:01:04' and `end` < '2025-01-11 06: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-11 06:01:19] Production.INFO: count ==83 [2025-01-11 06:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:01:04 - End Time 2025-01-11 06:01:04 [2025-01-11 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222286', 'tblTempUsageDetail_20' ) start [2025-01-11 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222286', 'tblTempUsageDetail_20' ) end [2025-01-11 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222286', 'tblTempVendorCDR_20' ) start [2025-01-11 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222286', 'tblTempVendorCDR_20' ) end [2025-01-11 06:01:19] Production.INFO: ProcessCDR(1,14222286,1,1,2) [2025-01-11 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222286', 'tblTempUsageDetail_20' ) start [2025-01-11 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222286', 'tblTempUsageDetail_20' ) end [2025-01-11 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:01:22] Production.INFO: ==11240== Releasing lock... [2025-01-11 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:01:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:02:05 [end_date_ymd] => 2025-01-11 06:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:02:05' and `end` < '2025-01-11 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-11 06:02:19] Production.INFO: count ==83 [2025-01-11 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:02:05 - End Time 2025-01-11 06:02:05 [2025-01-11 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222291', 'tblTempUsageDetail_20' ) start [2025-01-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222291', 'tblTempUsageDetail_20' ) end [2025-01-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222291', 'tblTempVendorCDR_20' ) start [2025-01-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222291', 'tblTempVendorCDR_20' ) end [2025-01-11 06:02:19] Production.INFO: ProcessCDR(1,14222291,1,1,2) [2025-01-11 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222291', 'tblTempUsageDetail_20' ) start [2025-01-11 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222291', 'tblTempUsageDetail_20' ) end [2025-01-11 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:02:22] Production.INFO: ==11366== Releasing lock... [2025-01-11 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:03:04 [end_date_ymd] => 2025-01-11 06:03:04 [RateCDR] => 1 ) [2025-01-11 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-11 03:03:04' and `end` < '2025-01-11 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-11 06:03:17] Production.INFO: count ==83 [2025-01-11 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:03:04 - End Time 2025-01-11 06:03:04 [2025-01-11 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222296', 'tblTempUsageDetail_20' ) start [2025-01-11 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222296', 'tblTempUsageDetail_20' ) end [2025-01-11 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222296', 'tblTempVendorCDR_20' ) start [2025-01-11 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222296', 'tblTempVendorCDR_20' ) end [2025-01-11 06:03:17] Production.INFO: ProcessCDR(1,14222296,1,1,2) [2025-01-11 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222296', 'tblTempUsageDetail_20' ) start [2025-01-11 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222296', 'tblTempUsageDetail_20' ) end [2025-01-11 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:03:20] Production.INFO: ==11494== Releasing lock... [2025-01-11 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:03:20] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:04:05 [end_date_ymd] => 2025-01-11 06:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:04:05' and `end` < '2025-01-11 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-11 06:04:19] Production.INFO: count ==83 [2025-01-11 06:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:04:05 - End Time 2025-01-11 06:04:05 [2025-01-11 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222301', 'tblTempUsageDetail_20' ) start [2025-01-11 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222301', 'tblTempUsageDetail_20' ) end [2025-01-11 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222301', 'tblTempVendorCDR_20' ) start [2025-01-11 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222301', 'tblTempVendorCDR_20' ) end [2025-01-11 06:04:19] Production.INFO: ProcessCDR(1,14222301,1,1,2) [2025-01-11 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222301', 'tblTempUsageDetail_20' ) start [2025-01-11 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222301', 'tblTempUsageDetail_20' ) end [2025-01-11 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:04:22] Production.INFO: ==11624== Releasing lock... [2025-01-11 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:05:04 [end_date_ymd] => 2025-01-11 06:05:04 [RateCDR] => 1 ) [2025-01-11 06: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-11 03:05:04' and `end` < '2025-01-11 06: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-11 06:05:17] Production.INFO: count ==83 [2025-01-11 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:05:04 - End Time 2025-01-11 06:05:04 [2025-01-11 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222306', 'tblTempUsageDetail_20' ) start [2025-01-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222306', 'tblTempUsageDetail_20' ) end [2025-01-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222306', 'tblTempVendorCDR_20' ) start [2025-01-11 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222306', 'tblTempVendorCDR_20' ) end [2025-01-11 06:05:17] Production.INFO: ProcessCDR(1,14222306,1,1,2) [2025-01-11 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222306', 'tblTempUsageDetail_20' ) start [2025-01-11 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222306', 'tblTempUsageDetail_20' ) end [2025-01-11 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:05:21] Production.INFO: ==11756== Releasing lock... [2025-01-11 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:06:05 [end_date_ymd] => 2025-01-11 06:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:06:05' and `end` < '2025-01-11 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-11 06:06:18] Production.INFO: count ==83 [2025-01-11 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:06:05 - End Time 2025-01-11 06:06:05 [2025-01-11 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222311', 'tblTempUsageDetail_20' ) start [2025-01-11 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222311', 'tblTempUsageDetail_20' ) end [2025-01-11 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222311', 'tblTempVendorCDR_20' ) start [2025-01-11 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222311', 'tblTempVendorCDR_20' ) end [2025-01-11 06:06:18] Production.INFO: ProcessCDR(1,14222311,1,1,2) [2025-01-11 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222311', 'tblTempUsageDetail_20' ) start [2025-01-11 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222311', 'tblTempUsageDetail_20' ) end [2025-01-11 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:06:21] Production.INFO: ==11875== Releasing lock... [2025-01-11 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:07:05 [end_date_ymd] => 2025-01-11 06:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:07:05' and `end` < '2025-01-11 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-11 06:07:17] Production.INFO: count ==83 [2025-01-11 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:07:05 - End Time 2025-01-11 06:07:05 [2025-01-11 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222316', 'tblTempUsageDetail_20' ) start [2025-01-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222316', 'tblTempUsageDetail_20' ) end [2025-01-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222316', 'tblTempVendorCDR_20' ) start [2025-01-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222316', 'tblTempVendorCDR_20' ) end [2025-01-11 06:07:18] Production.INFO: ProcessCDR(1,14222316,1,1,2) [2025-01-11 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222316', 'tblTempUsageDetail_20' ) start [2025-01-11 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222316', 'tblTempUsageDetail_20' ) end [2025-01-11 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:07:21] Production.INFO: ==11954== Releasing lock... [2025-01-11 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:08:05 [end_date_ymd] => 2025-01-11 06:08:05 [RateCDR] => 1 ) [2025-01-11 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:08:05' and `end` < '2025-01-11 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:08:19] Production.INFO: count ==83 [2025-01-11 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:08:05 - End Time 2025-01-11 06:08:05 [2025-01-11 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222321', 'tblTempUsageDetail_20' ) start [2025-01-11 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222321', 'tblTempUsageDetail_20' ) end [2025-01-11 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222321', 'tblTempVendorCDR_20' ) start [2025-01-11 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222321', 'tblTempVendorCDR_20' ) end [2025-01-11 06:08:19] Production.INFO: ProcessCDR(1,14222321,1,1,2) [2025-01-11 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222321', 'tblTempUsageDetail_20' ) start [2025-01-11 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222321', 'tblTempUsageDetail_20' ) end [2025-01-11 06:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:08:23] Production.INFO: ==12028== Releasing lock... [2025-01-11 06:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:09:05 [end_date_ymd] => 2025-01-11 06:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:09:05' and `end` < '2025-01-11 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-11 06:09:19] Production.INFO: count ==83 [2025-01-11 06:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:09:05 - End Time 2025-01-11 06:09:05 [2025-01-11 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222326', 'tblTempUsageDetail_20' ) start [2025-01-11 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222326', 'tblTempUsageDetail_20' ) end [2025-01-11 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222326', 'tblTempVendorCDR_20' ) start [2025-01-11 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222326', 'tblTempVendorCDR_20' ) end [2025-01-11 06:09:19] Production.INFO: ProcessCDR(1,14222326,1,1,2) [2025-01-11 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222326', 'tblTempUsageDetail_20' ) start [2025-01-11 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222326', 'tblTempUsageDetail_20' ) end [2025-01-11 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:09:22] Production.INFO: ==12115== Releasing lock... [2025-01-11 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:10:06 [end_date_ymd] => 2025-01-11 06:10:06 [RateCDR] => 1 ) [2025-01-11 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:10:06' and `end` < '2025-01-11 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:10:19] Production.INFO: count ==77 [2025-01-11 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:10:06 - End Time 2025-01-11 06:10:06 [2025-01-11 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222332', 'tblTempUsageDetail_20' ) start [2025-01-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222332', 'tblTempUsageDetail_20' ) end [2025-01-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222332', 'tblTempVendorCDR_20' ) start [2025-01-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222332', 'tblTempVendorCDR_20' ) end [2025-01-11 06:10:19] Production.INFO: ProcessCDR(1,14222332,1,1,2) [2025-01-11 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222332', 'tblTempUsageDetail_20' ) start [2025-01-11 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222332', 'tblTempUsageDetail_20' ) end [2025-01-11 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:10:22] Production.INFO: ==12193== Releasing lock... [2025-01-11 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:11:05 [end_date_ymd] => 2025-01-11 06:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:11:05' and `end` < '2025-01-11 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-11 06:11:18] Production.INFO: count ==77 [2025-01-11 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:11:05 - End Time 2025-01-11 06:11:05 [2025-01-11 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222337', 'tblTempUsageDetail_20' ) start [2025-01-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222337', 'tblTempUsageDetail_20' ) end [2025-01-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222337', 'tblTempVendorCDR_20' ) start [2025-01-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222337', 'tblTempVendorCDR_20' ) end [2025-01-11 06:11:18] Production.INFO: ProcessCDR(1,14222337,1,1,2) [2025-01-11 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222337', 'tblTempUsageDetail_20' ) start [2025-01-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222337', 'tblTempUsageDetail_20' ) end [2025-01-11 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:11:21] Production.INFO: ==12271== Releasing lock... [2025-01-11 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:12:05 [end_date_ymd] => 2025-01-11 06:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:12:05' and `end` < '2025-01-11 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-11 06:12:19] Production.INFO: count ==77 [2025-01-11 06:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:12:05 - End Time 2025-01-11 06:12:05 [2025-01-11 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222342', 'tblTempUsageDetail_20' ) start [2025-01-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222342', 'tblTempUsageDetail_20' ) end [2025-01-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222342', 'tblTempVendorCDR_20' ) start [2025-01-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222342', 'tblTempVendorCDR_20' ) end [2025-01-11 06:12:19] Production.INFO: ProcessCDR(1,14222342,1,1,2) [2025-01-11 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222342', 'tblTempUsageDetail_20' ) start [2025-01-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222342', 'tblTempUsageDetail_20' ) end [2025-01-11 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:12:22] Production.INFO: ==12348== Releasing lock... [2025-01-11 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:13:04 [end_date_ymd] => 2025-01-11 06:13:04 [RateCDR] => 1 ) [2025-01-11 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-11 03:13:04' and `end` < '2025-01-11 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-11 06:13:17] Production.INFO: count ==75 [2025-01-11 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:13:04 - End Time 2025-01-11 06:13:04 [2025-01-11 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222347', 'tblTempUsageDetail_20' ) start [2025-01-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222347', 'tblTempUsageDetail_20' ) end [2025-01-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222347', 'tblTempVendorCDR_20' ) start [2025-01-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222347', 'tblTempVendorCDR_20' ) end [2025-01-11 06:13:17] Production.INFO: ProcessCDR(1,14222347,1,1,2) [2025-01-11 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222347', 'tblTempUsageDetail_20' ) start [2025-01-11 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222347', 'tblTempUsageDetail_20' ) end [2025-01-11 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:13:21] Production.INFO: ==12423== Releasing lock... [2025-01-11 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:14:05 [end_date_ymd] => 2025-01-11 06:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:14:05' and `end` < '2025-01-11 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-11 06:14:18] Production.INFO: count ==75 [2025-01-11 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:14:05 - End Time 2025-01-11 06:14:05 [2025-01-11 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222352', 'tblTempUsageDetail_20' ) start [2025-01-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222352', 'tblTempUsageDetail_20' ) end [2025-01-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222352', 'tblTempVendorCDR_20' ) start [2025-01-11 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222352', 'tblTempVendorCDR_20' ) end [2025-01-11 06:14:18] Production.INFO: ProcessCDR(1,14222352,1,1,2) [2025-01-11 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222352', 'tblTempUsageDetail_20' ) start [2025-01-11 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222352', 'tblTempUsageDetail_20' ) end [2025-01-11 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:14:21] Production.INFO: ==12545== Releasing lock... [2025-01-11 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:15:05 [end_date_ymd] => 2025-01-11 06:15:05 [RateCDR] => 1 ) [2025-01-11 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:15:05' and `end` < '2025-01-11 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:15:18] Production.INFO: count ==75 [2025-01-11 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:15:05 - End Time 2025-01-11 06:15:05 [2025-01-11 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222357', 'tblTempUsageDetail_20' ) start [2025-01-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222357', 'tblTempUsageDetail_20' ) end [2025-01-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222357', 'tblTempVendorCDR_20' ) start [2025-01-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222357', 'tblTempVendorCDR_20' ) end [2025-01-11 06:15:18] Production.INFO: ProcessCDR(1,14222357,1,1,2) [2025-01-11 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222357', 'tblTempUsageDetail_20' ) start [2025-01-11 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222357', 'tblTempUsageDetail_20' ) end [2025-01-11 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:15:21] Production.INFO: ==12627== Releasing lock... [2025-01-11 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:16:05 [end_date_ymd] => 2025-01-11 06:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:16:05' and `end` < '2025-01-11 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-11 06:16:19] Production.INFO: count ==75 [2025-01-11 06:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:16:05 - End Time 2025-01-11 06:16:05 [2025-01-11 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222362', 'tblTempUsageDetail_20' ) start [2025-01-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222362', 'tblTempUsageDetail_20' ) end [2025-01-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222362', 'tblTempVendorCDR_20' ) start [2025-01-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222362', 'tblTempVendorCDR_20' ) end [2025-01-11 06:16:19] Production.INFO: ProcessCDR(1,14222362,1,1,2) [2025-01-11 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222362', 'tblTempUsageDetail_20' ) start [2025-01-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222362', 'tblTempUsageDetail_20' ) end [2025-01-11 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:16:22] Production.INFO: ==12698== Releasing lock... [2025-01-11 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:17:05 [end_date_ymd] => 2025-01-11 06:17:05 [RateCDR] => 1 ) [2025-01-11 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:17:05' and `end` < '2025-01-11 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:17:18] Production.INFO: count ==75 [2025-01-11 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:17:05 - End Time 2025-01-11 06:17:05 [2025-01-11 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222367', 'tblTempUsageDetail_20' ) start [2025-01-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222367', 'tblTempUsageDetail_20' ) end [2025-01-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222367', 'tblTempVendorCDR_20' ) start [2025-01-11 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222367', 'tblTempVendorCDR_20' ) end [2025-01-11 06:17:18] Production.INFO: ProcessCDR(1,14222367,1,1,2) [2025-01-11 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222367', 'tblTempUsageDetail_20' ) start [2025-01-11 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222367', 'tblTempUsageDetail_20' ) end [2025-01-11 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:17:21] Production.INFO: ==12776== Releasing lock... [2025-01-11 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:18:05 [end_date_ymd] => 2025-01-11 06:18:05 [RateCDR] => 1 ) [2025-01-11 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:18:05' and `end` < '2025-01-11 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:18:19] Production.INFO: count ==75 [2025-01-11 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:18:05 - End Time 2025-01-11 06:18:05 [2025-01-11 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222372', 'tblTempUsageDetail_20' ) start [2025-01-11 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222372', 'tblTempUsageDetail_20' ) end [2025-01-11 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222372', 'tblTempVendorCDR_20' ) start [2025-01-11 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222372', 'tblTempVendorCDR_20' ) end [2025-01-11 06:18:19] Production.INFO: ProcessCDR(1,14222372,1,1,2) [2025-01-11 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222372', 'tblTempUsageDetail_20' ) start [2025-01-11 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222372', 'tblTempUsageDetail_20' ) end [2025-01-11 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:18:22] Production.INFO: ==12855== Releasing lock... [2025-01-11 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:19:04 [end_date_ymd] => 2025-01-11 06:19:04 [RateCDR] => 1 ) [2025-01-11 06: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-11 03:19:04' and `end` < '2025-01-11 06: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-11 06:19:17] Production.INFO: count ==75 [2025-01-11 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:19:04 - End Time 2025-01-11 06:19:04 [2025-01-11 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222377', 'tblTempUsageDetail_20' ) start [2025-01-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222377', 'tblTempUsageDetail_20' ) end [2025-01-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222377', 'tblTempVendorCDR_20' ) start [2025-01-11 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222377', 'tblTempVendorCDR_20' ) end [2025-01-11 06:19:17] Production.INFO: ProcessCDR(1,14222377,1,1,2) [2025-01-11 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222377', 'tblTempUsageDetail_20' ) start [2025-01-11 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222377', 'tblTempUsageDetail_20' ) end [2025-01-11 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:19:20] Production.INFO: ==12930== Releasing lock... [2025-01-11 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:19:20] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:20:05 [end_date_ymd] => 2025-01-11 06:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:20:05' and `end` < '2025-01-11 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-11 06:20:18] Production.INFO: count ==71 [2025-01-11 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:20:05 - End Time 2025-01-11 06:20:05 [2025-01-11 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222383', 'tblTempUsageDetail_20' ) start [2025-01-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222383', 'tblTempUsageDetail_20' ) end [2025-01-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222383', 'tblTempVendorCDR_20' ) start [2025-01-11 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222383', 'tblTempVendorCDR_20' ) end [2025-01-11 06:20:18] Production.INFO: ProcessCDR(1,14222383,1,1,2) [2025-01-11 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222383', 'tblTempUsageDetail_20' ) start [2025-01-11 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222383', 'tblTempUsageDetail_20' ) end [2025-01-11 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:20:21] Production.INFO: ==13006== Releasing lock... [2025-01-11 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:21:05 [end_date_ymd] => 2025-01-11 06:21:05 [RateCDR] => 1 ) [2025-01-11 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:21:05' and `end` < '2025-01-11 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:21:18] Production.INFO: count ==66 [2025-01-11 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:21:05 - End Time 2025-01-11 06:21:05 [2025-01-11 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222388', 'tblTempUsageDetail_20' ) start [2025-01-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222388', 'tblTempUsageDetail_20' ) end [2025-01-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222388', 'tblTempVendorCDR_20' ) start [2025-01-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222388', 'tblTempVendorCDR_20' ) end [2025-01-11 06:21:18] Production.INFO: ProcessCDR(1,14222388,1,1,2) [2025-01-11 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222388', 'tblTempUsageDetail_20' ) start [2025-01-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222388', 'tblTempUsageDetail_20' ) end [2025-01-11 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:21:21] Production.INFO: ==13086== Releasing lock... [2025-01-11 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:22:05 [end_date_ymd] => 2025-01-11 06:22:05 [RateCDR] => 1 ) [2025-01-11 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:22:05' and `end` < '2025-01-11 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:22:19] Production.INFO: count ==65 [2025-01-11 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:22:05 - End Time 2025-01-11 06:22:05 [2025-01-11 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222393', 'tblTempUsageDetail_20' ) start [2025-01-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222393', 'tblTempUsageDetail_20' ) end [2025-01-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222393', 'tblTempVendorCDR_20' ) start [2025-01-11 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222393', 'tblTempVendorCDR_20' ) end [2025-01-11 06:22:19] Production.INFO: ProcessCDR(1,14222393,1,1,2) [2025-01-11 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222393', 'tblTempUsageDetail_20' ) start [2025-01-11 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222393', 'tblTempUsageDetail_20' ) end [2025-01-11 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:22:22] Production.INFO: ==13165== Releasing lock... [2025-01-11 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:23:06 [end_date_ymd] => 2025-01-11 06:23:06 [RateCDR] => 1 ) [2025-01-11 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:23:06' and `end` < '2025-01-11 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:23:19] Production.INFO: count ==65 [2025-01-11 06:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:23:06 - End Time 2025-01-11 06:23:06 [2025-01-11 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222398', 'tblTempUsageDetail_20' ) start [2025-01-11 06:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222398', 'tblTempUsageDetail_20' ) end [2025-01-11 06:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222398', 'tblTempVendorCDR_20' ) start [2025-01-11 06:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222398', 'tblTempVendorCDR_20' ) end [2025-01-11 06:23:20] Production.INFO: ProcessCDR(1,14222398,1,1,2) [2025-01-11 06:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222398', 'tblTempUsageDetail_20' ) start [2025-01-11 06:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222398', 'tblTempUsageDetail_20' ) end [2025-01-11 06:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:23:23] Production.INFO: ==13244== Releasing lock... [2025-01-11 06:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:23:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:24:05 [end_date_ymd] => 2025-01-11 06:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:24:05' and `end` < '2025-01-11 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-11 06:24:18] Production.INFO: count ==63 [2025-01-11 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:24:05 - End Time 2025-01-11 06:24:05 [2025-01-11 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222403', 'tblTempUsageDetail_20' ) start [2025-01-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222403', 'tblTempUsageDetail_20' ) end [2025-01-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222403', 'tblTempVendorCDR_20' ) start [2025-01-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222403', 'tblTempVendorCDR_20' ) end [2025-01-11 06:24:18] Production.INFO: ProcessCDR(1,14222403,1,1,2) [2025-01-11 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222403', 'tblTempUsageDetail_20' ) start [2025-01-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222403', 'tblTempUsageDetail_20' ) end [2025-01-11 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:24:21] Production.INFO: ==13320== Releasing lock... [2025-01-11 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:25:05 [end_date_ymd] => 2025-01-11 06:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:25:05' and `end` < '2025-01-11 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-11 06:25:18] Production.INFO: count ==62 [2025-01-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:25:05 - End Time 2025-01-11 06:25:05 [2025-01-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222408', 'tblTempUsageDetail_20' ) start [2025-01-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222408', 'tblTempUsageDetail_20' ) end [2025-01-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222408', 'tblTempVendorCDR_20' ) start [2025-01-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222408', 'tblTempVendorCDR_20' ) end [2025-01-11 06:25:18] Production.INFO: ProcessCDR(1,14222408,1,1,2) [2025-01-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222408', 'tblTempUsageDetail_20' ) start [2025-01-11 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222408', 'tblTempUsageDetail_20' ) end [2025-01-11 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:25:21] Production.INFO: ==13400== Releasing lock... [2025-01-11 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:26:05 [end_date_ymd] => 2025-01-11 06:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:26:05' and `end` < '2025-01-11 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-11 06:26:18] Production.INFO: count ==62 [2025-01-11 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:26:05 - End Time 2025-01-11 06:26:05 [2025-01-11 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222413', 'tblTempUsageDetail_20' ) start [2025-01-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222413', 'tblTempUsageDetail_20' ) end [2025-01-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222413', 'tblTempVendorCDR_20' ) start [2025-01-11 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222413', 'tblTempVendorCDR_20' ) end [2025-01-11 06:26:18] Production.INFO: ProcessCDR(1,14222413,1,1,2) [2025-01-11 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222413', 'tblTempUsageDetail_20' ) start [2025-01-11 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222413', 'tblTempUsageDetail_20' ) end [2025-01-11 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:26:22] Production.INFO: ==13480== Releasing lock... [2025-01-11 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:27:05 [end_date_ymd] => 2025-01-11 06:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:27:05' and `end` < '2025-01-11 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-11 06:27:19] Production.INFO: count ==62 [2025-01-11 06:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:27:05 - End Time 2025-01-11 06:27:05 [2025-01-11 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222418', 'tblTempUsageDetail_20' ) start [2025-01-11 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222418', 'tblTempUsageDetail_20' ) end [2025-01-11 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222418', 'tblTempVendorCDR_20' ) start [2025-01-11 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222418', 'tblTempVendorCDR_20' ) end [2025-01-11 06:27:19] Production.INFO: ProcessCDR(1,14222418,1,1,2) [2025-01-11 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222418', 'tblTempUsageDetail_20' ) start [2025-01-11 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222418', 'tblTempUsageDetail_20' ) end [2025-01-11 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:27:22] Production.INFO: ==13558== Releasing lock... [2025-01-11 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:28:05 [end_date_ymd] => 2025-01-11 06:28:05 [RateCDR] => 1 ) [2025-01-11 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:28:05' and `end` < '2025-01-11 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:28:18] Production.INFO: count ==62 [2025-01-11 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:28:05 - End Time 2025-01-11 06:28:05 [2025-01-11 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222423', 'tblTempUsageDetail_20' ) start [2025-01-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222423', 'tblTempUsageDetail_20' ) end [2025-01-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222423', 'tblTempVendorCDR_20' ) start [2025-01-11 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222423', 'tblTempVendorCDR_20' ) end [2025-01-11 06:28:18] Production.INFO: ProcessCDR(1,14222423,1,1,2) [2025-01-11 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222423', 'tblTempUsageDetail_20' ) start [2025-01-11 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222423', 'tblTempUsageDetail_20' ) end [2025-01-11 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:28:21] Production.INFO: ==13630== Releasing lock... [2025-01-11 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:29:05 [end_date_ymd] => 2025-01-11 06:29:05 [RateCDR] => 1 ) [2025-01-11 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:29:05' and `end` < '2025-01-11 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:29:18] Production.INFO: count ==62 [2025-01-11 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:29:05 - End Time 2025-01-11 06:29:05 [2025-01-11 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222428', 'tblTempUsageDetail_20' ) start [2025-01-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222428', 'tblTempUsageDetail_20' ) end [2025-01-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222428', 'tblTempVendorCDR_20' ) start [2025-01-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222428', 'tblTempVendorCDR_20' ) end [2025-01-11 06:29:18] Production.INFO: ProcessCDR(1,14222428,1,1,2) [2025-01-11 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222428', 'tblTempUsageDetail_20' ) start [2025-01-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222428', 'tblTempUsageDetail_20' ) end [2025-01-11 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:29:22] Production.INFO: ==13705== Releasing lock... [2025-01-11 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:29:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:30:05 [end_date_ymd] => 2025-01-11 06:30:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:30:05' and `end` < '2025-01-11 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-11 06:30:18] Production.INFO: count ==62 [2025-01-11 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:30:05 - End Time 2025-01-11 06:30:05 [2025-01-11 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222433', 'tblTempUsageDetail_20' ) start [2025-01-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222433', 'tblTempUsageDetail_20' ) end [2025-01-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222433', 'tblTempVendorCDR_20' ) start [2025-01-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222433', 'tblTempVendorCDR_20' ) end [2025-01-11 06:30:18] Production.INFO: ProcessCDR(1,14222433,1,1,2) [2025-01-11 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222433', 'tblTempUsageDetail_20' ) start [2025-01-11 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222433', 'tblTempUsageDetail_20' ) end [2025-01-11 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:30:21] Production.INFO: ==13829== Releasing lock... [2025-01-11 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:31:05 [end_date_ymd] => 2025-01-11 06:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:31:05' and `end` < '2025-01-11 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-11 06:31:20] Production.INFO: count ==62 [2025-01-11 06:31:20] Production.ERROR: pbx CDR StartTime 2025-01-11 03:31:05 - End Time 2025-01-11 06:31:05 [2025-01-11 06:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222439', 'tblTempUsageDetail_20' ) start [2025-01-11 06:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222439', 'tblTempUsageDetail_20' ) end [2025-01-11 06:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222439', 'tblTempVendorCDR_20' ) start [2025-01-11 06:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222439', 'tblTempVendorCDR_20' ) end [2025-01-11 06:31:20] Production.INFO: ProcessCDR(1,14222439,1,1,2) [2025-01-11 06:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222439', 'tblTempUsageDetail_20' ) start [2025-01-11 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222439', 'tblTempUsageDetail_20' ) end [2025-01-11 06:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:31:23] Production.INFO: ==13904== Releasing lock... [2025-01-11 06:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:31:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:32:05 [end_date_ymd] => 2025-01-11 06:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:32:05' and `end` < '2025-01-11 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-11 06:32:18] Production.INFO: count ==62 [2025-01-11 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:32:05 - End Time 2025-01-11 06:32:05 [2025-01-11 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222444', 'tblTempUsageDetail_20' ) start [2025-01-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222444', 'tblTempUsageDetail_20' ) end [2025-01-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222444', 'tblTempVendorCDR_20' ) start [2025-01-11 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222444', 'tblTempVendorCDR_20' ) end [2025-01-11 06:32:18] Production.INFO: ProcessCDR(1,14222444,1,1,2) [2025-01-11 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222444', 'tblTempUsageDetail_20' ) start [2025-01-11 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222444', 'tblTempUsageDetail_20' ) end [2025-01-11 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:32:21] Production.INFO: ==13980== Releasing lock... [2025-01-11 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:33:05 [end_date_ymd] => 2025-01-11 06:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:33:05' and `end` < '2025-01-11 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-11 06:33:18] Production.INFO: count ==62 [2025-01-11 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:33:05 - End Time 2025-01-11 06:33:05 [2025-01-11 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222449', 'tblTempUsageDetail_20' ) start [2025-01-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222449', 'tblTempUsageDetail_20' ) end [2025-01-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222449', 'tblTempVendorCDR_20' ) start [2025-01-11 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222449', 'tblTempVendorCDR_20' ) end [2025-01-11 06:33:18] Production.INFO: ProcessCDR(1,14222449,1,1,2) [2025-01-11 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222449', 'tblTempUsageDetail_20' ) start [2025-01-11 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222449', 'tblTempUsageDetail_20' ) end [2025-01-11 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:33:21] Production.INFO: ==14058== Releasing lock... [2025-01-11 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:34:04 [end_date_ymd] => 2025-01-11 06:34:04 [RateCDR] => 1 ) [2025-01-11 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-11 03:34:04' and `end` < '2025-01-11 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-11 06:34:17] Production.INFO: count ==62 [2025-01-11 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:34:04 - End Time 2025-01-11 06:34:04 [2025-01-11 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222454', 'tblTempUsageDetail_20' ) start [2025-01-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222454', 'tblTempUsageDetail_20' ) end [2025-01-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222454', 'tblTempVendorCDR_20' ) start [2025-01-11 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222454', 'tblTempVendorCDR_20' ) end [2025-01-11 06:34:17] Production.INFO: ProcessCDR(1,14222454,1,1,2) [2025-01-11 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222454', 'tblTempUsageDetail_20' ) start [2025-01-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222454', 'tblTempUsageDetail_20' ) end [2025-01-11 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:34:21] Production.INFO: ==14132== Releasing lock... [2025-01-11 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:35:05 [end_date_ymd] => 2025-01-11 06:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:35:05' and `end` < '2025-01-11 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:35:18] Production.INFO: count ==62 [2025-01-11 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:35:05 - End Time 2025-01-11 06:35:05 [2025-01-11 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222459', 'tblTempUsageDetail_20' ) start [2025-01-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222459', 'tblTempUsageDetail_20' ) end [2025-01-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222459', 'tblTempVendorCDR_20' ) start [2025-01-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222459', 'tblTempVendorCDR_20' ) end [2025-01-11 06:35:18] Production.INFO: ProcessCDR(1,14222459,1,1,2) [2025-01-11 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222459', 'tblTempUsageDetail_20' ) start [2025-01-11 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222459', 'tblTempUsageDetail_20' ) end [2025-01-11 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:35:21] Production.INFO: ==14210== Releasing lock... [2025-01-11 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:36:05 [end_date_ymd] => 2025-01-11 06:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:36:05' and `end` < '2025-01-11 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-11 06:36:18] Production.INFO: count ==62 [2025-01-11 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:36:05 - End Time 2025-01-11 06:36:05 [2025-01-11 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222464', 'tblTempUsageDetail_20' ) start [2025-01-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222464', 'tblTempUsageDetail_20' ) end [2025-01-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222464', 'tblTempVendorCDR_20' ) start [2025-01-11 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222464', 'tblTempVendorCDR_20' ) end [2025-01-11 06:36:18] Production.INFO: ProcessCDR(1,14222464,1,1,2) [2025-01-11 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222464', 'tblTempUsageDetail_20' ) start [2025-01-11 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222464', 'tblTempUsageDetail_20' ) end [2025-01-11 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:36:21] Production.INFO: ==14287== Releasing lock... [2025-01-11 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:37:05 [end_date_ymd] => 2025-01-11 06:37:05 [RateCDR] => 1 ) [2025-01-11 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:37:05' and `end` < '2025-01-11 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:37:18] Production.INFO: count ==62 [2025-01-11 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:37:05 - End Time 2025-01-11 06:37:05 [2025-01-11 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222469', 'tblTempUsageDetail_20' ) start [2025-01-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222469', 'tblTempUsageDetail_20' ) end [2025-01-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222469', 'tblTempVendorCDR_20' ) start [2025-01-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222469', 'tblTempVendorCDR_20' ) end [2025-01-11 06:37:18] Production.INFO: ProcessCDR(1,14222469,1,1,2) [2025-01-11 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222469', 'tblTempUsageDetail_20' ) start [2025-01-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222469', 'tblTempUsageDetail_20' ) end [2025-01-11 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:37:21] Production.INFO: ==14376== Releasing lock... [2025-01-11 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:38:05 [end_date_ymd] => 2025-01-11 06:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:38:05' and `end` < '2025-01-11 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-11 06:38:19] Production.INFO: count ==62 [2025-01-11 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:38:05 - End Time 2025-01-11 06:38:05 [2025-01-11 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222474', 'tblTempUsageDetail_20' ) start [2025-01-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222474', 'tblTempUsageDetail_20' ) end [2025-01-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222474', 'tblTempVendorCDR_20' ) start [2025-01-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222474', 'tblTempVendorCDR_20' ) end [2025-01-11 06:38:19] Production.INFO: ProcessCDR(1,14222474,1,1,2) [2025-01-11 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222474', 'tblTempUsageDetail_20' ) start [2025-01-11 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222474', 'tblTempUsageDetail_20' ) end [2025-01-11 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:38:22] Production.INFO: ==14463== Releasing lock... [2025-01-11 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:39:05 [end_date_ymd] => 2025-01-11 06:39:05 [RateCDR] => 1 ) [2025-01-11 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:39:05' and `end` < '2025-01-11 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:39:18] Production.INFO: count ==62 [2025-01-11 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:39:05 - End Time 2025-01-11 06:39:05 [2025-01-11 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222479', 'tblTempUsageDetail_20' ) start [2025-01-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222479', 'tblTempUsageDetail_20' ) end [2025-01-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222479', 'tblTempVendorCDR_20' ) start [2025-01-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222479', 'tblTempVendorCDR_20' ) end [2025-01-11 06:39:18] Production.INFO: ProcessCDR(1,14222479,1,1,2) [2025-01-11 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222479', 'tblTempUsageDetail_20' ) start [2025-01-11 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222479', 'tblTempUsageDetail_20' ) end [2025-01-11 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:39:21] Production.INFO: ==14548== Releasing lock... [2025-01-11 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:40:06 [end_date_ymd] => 2025-01-11 06:40:06 [RateCDR] => 1 ) [2025-01-11 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-11 03:40:06' and `end` < '2025-01-11 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-11 06:40:20] Production.INFO: count ==64 [2025-01-11 06:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 03:40:06 - End Time 2025-01-11 06:40:06 [2025-01-11 06:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222485', 'tblTempUsageDetail_20' ) start [2025-01-11 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222485', 'tblTempUsageDetail_20' ) end [2025-01-11 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222485', 'tblTempVendorCDR_20' ) start [2025-01-11 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222485', 'tblTempVendorCDR_20' ) end [2025-01-11 06:40:20] Production.INFO: ProcessCDR(1,14222485,1,1,2) [2025-01-11 06:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222485', 'tblTempUsageDetail_20' ) start [2025-01-11 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222485', 'tblTempUsageDetail_20' ) end [2025-01-11 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:40:23] Production.INFO: ==14637== Releasing lock... [2025-01-11 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:40:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:41:05 [end_date_ymd] => 2025-01-11 06:41:05 [RateCDR] => 1 ) [2025-01-11 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:41:05' and `end` < '2025-01-11 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:41:18] Production.INFO: count ==64 [2025-01-11 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:41:05 - End Time 2025-01-11 06:41:05 [2025-01-11 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222490', 'tblTempUsageDetail_20' ) start [2025-01-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222490', 'tblTempUsageDetail_20' ) end [2025-01-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222490', 'tblTempVendorCDR_20' ) start [2025-01-11 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222490', 'tblTempVendorCDR_20' ) end [2025-01-11 06:41:18] Production.INFO: ProcessCDR(1,14222490,1,1,2) [2025-01-11 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222490', 'tblTempUsageDetail_20' ) start [2025-01-11 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222490', 'tblTempUsageDetail_20' ) end [2025-01-11 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:41:21] Production.INFO: ==14719== Releasing lock... [2025-01-11 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:42:05 [end_date_ymd] => 2025-01-11 06:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:42:05' and `end` < '2025-01-11 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-11 06:42:18] Production.INFO: count ==64 [2025-01-11 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:42:05 - End Time 2025-01-11 06:42:05 [2025-01-11 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222495', 'tblTempUsageDetail_20' ) start [2025-01-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222495', 'tblTempUsageDetail_20' ) end [2025-01-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222495', 'tblTempVendorCDR_20' ) start [2025-01-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222495', 'tblTempVendorCDR_20' ) end [2025-01-11 06:42:18] Production.INFO: ProcessCDR(1,14222495,1,1,2) [2025-01-11 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222495', 'tblTempUsageDetail_20' ) start [2025-01-11 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222495', 'tblTempUsageDetail_20' ) end [2025-01-11 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:42:22] Production.INFO: ==14801== Releasing lock... [2025-01-11 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:43:04 [end_date_ymd] => 2025-01-11 06:43:04 [RateCDR] => 1 ) [2025-01-11 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:43:04' and `end` < '2025-01-11 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:43:17] Production.INFO: count ==64 [2025-01-11 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:43:04 - End Time 2025-01-11 06:43:04 [2025-01-11 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222500', 'tblTempUsageDetail_20' ) start [2025-01-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222500', 'tblTempUsageDetail_20' ) end [2025-01-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222500', 'tblTempVendorCDR_20' ) start [2025-01-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222500', 'tblTempVendorCDR_20' ) end [2025-01-11 06:43:17] Production.INFO: ProcessCDR(1,14222500,1,1,2) [2025-01-11 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222500', 'tblTempUsageDetail_20' ) start [2025-01-11 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222500', 'tblTempUsageDetail_20' ) end [2025-01-11 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:43:21] Production.INFO: ==14881== Releasing lock... [2025-01-11 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:44:05 [end_date_ymd] => 2025-01-11 06:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:44:05' and `end` < '2025-01-11 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-11 06:44:18] Production.INFO: count ==64 [2025-01-11 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:44:05 - End Time 2025-01-11 06:44:05 [2025-01-11 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222505', 'tblTempUsageDetail_20' ) start [2025-01-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222505', 'tblTempUsageDetail_20' ) end [2025-01-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222505', 'tblTempVendorCDR_20' ) start [2025-01-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222505', 'tblTempVendorCDR_20' ) end [2025-01-11 06:44:18] Production.INFO: ProcessCDR(1,14222505,1,1,2) [2025-01-11 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222505', 'tblTempUsageDetail_20' ) start [2025-01-11 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222505', 'tblTempUsageDetail_20' ) end [2025-01-11 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:44:21] Production.INFO: ==14961== Releasing lock... [2025-01-11 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:45:05 [end_date_ymd] => 2025-01-11 06:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:45:05' and `end` < '2025-01-11 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-11 06:45:18] Production.INFO: count ==64 [2025-01-11 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:45:05 - End Time 2025-01-11 06:45:05 [2025-01-11 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222510', 'tblTempUsageDetail_20' ) start [2025-01-11 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222510', 'tblTempUsageDetail_20' ) end [2025-01-11 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222510', 'tblTempVendorCDR_20' ) start [2025-01-11 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222510', 'tblTempVendorCDR_20' ) end [2025-01-11 06:45:18] Production.INFO: ProcessCDR(1,14222510,1,1,2) [2025-01-11 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222510', 'tblTempUsageDetail_20' ) start [2025-01-11 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222510', 'tblTempUsageDetail_20' ) end [2025-01-11 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:45:21] Production.INFO: ==15079== Releasing lock... [2025-01-11 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:46:06 [end_date_ymd] => 2025-01-11 06:46:06 [RateCDR] => 1 ) [2025-01-11 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:46:06' and `end` < '2025-01-11 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:46:19] Production.INFO: count ==64 [2025-01-11 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:46:06 - End Time 2025-01-11 06:46:06 [2025-01-11 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222515', 'tblTempUsageDetail_20' ) start [2025-01-11 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222515', 'tblTempUsageDetail_20' ) end [2025-01-11 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222515', 'tblTempVendorCDR_20' ) start [2025-01-11 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222515', 'tblTempVendorCDR_20' ) end [2025-01-11 06:46:19] Production.INFO: ProcessCDR(1,14222515,1,1,2) [2025-01-11 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222515', 'tblTempUsageDetail_20' ) start [2025-01-11 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222515', 'tblTempUsageDetail_20' ) end [2025-01-11 06:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:46:23] Production.INFO: ==15160== Releasing lock... [2025-01-11 06:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:46:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:47:05 [end_date_ymd] => 2025-01-11 06:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:47:05' and `end` < '2025-01-11 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-11 06:47:19] Production.INFO: count ==64 [2025-01-11 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:47:05 - End Time 2025-01-11 06:47:05 [2025-01-11 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222520', 'tblTempUsageDetail_20' ) start [2025-01-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222520', 'tblTempUsageDetail_20' ) end [2025-01-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222520', 'tblTempVendorCDR_20' ) start [2025-01-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222520', 'tblTempVendorCDR_20' ) end [2025-01-11 06:47:19] Production.INFO: ProcessCDR(1,14222520,1,1,2) [2025-01-11 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222520', 'tblTempUsageDetail_20' ) start [2025-01-11 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222520', 'tblTempUsageDetail_20' ) end [2025-01-11 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:47:22] Production.INFO: ==15239== Releasing lock... [2025-01-11 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:48:05 [end_date_ymd] => 2025-01-11 06:48:05 [RateCDR] => 1 ) [2025-01-11 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:48:05' and `end` < '2025-01-11 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:48:19] Production.INFO: count ==64 [2025-01-11 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:48:05 - End Time 2025-01-11 06:48:05 [2025-01-11 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222525', 'tblTempUsageDetail_20' ) start [2025-01-11 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222525', 'tblTempUsageDetail_20' ) end [2025-01-11 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222525', 'tblTempVendorCDR_20' ) start [2025-01-11 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222525', 'tblTempVendorCDR_20' ) end [2025-01-11 06:48:19] Production.INFO: ProcessCDR(1,14222525,1,1,2) [2025-01-11 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222525', 'tblTempUsageDetail_20' ) start [2025-01-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222525', 'tblTempUsageDetail_20' ) end [2025-01-11 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:48:22] Production.INFO: ==15314== Releasing lock... [2025-01-11 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:49:05 [end_date_ymd] => 2025-01-11 06:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:49:05' and `end` < '2025-01-11 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-11 06:49:19] Production.INFO: count ==64 [2025-01-11 06:49:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:49:05 - End Time 2025-01-11 06:49:05 [2025-01-11 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222530', 'tblTempUsageDetail_20' ) start [2025-01-11 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222530', 'tblTempUsageDetail_20' ) end [2025-01-11 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222530', 'tblTempVendorCDR_20' ) start [2025-01-11 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222530', 'tblTempVendorCDR_20' ) end [2025-01-11 06:49:19] Production.INFO: ProcessCDR(1,14222530,1,1,2) [2025-01-11 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222530', 'tblTempUsageDetail_20' ) start [2025-01-11 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222530', 'tblTempUsageDetail_20' ) end [2025-01-11 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:49:22] Production.INFO: ==15383== Releasing lock... [2025-01-11 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:50:07 [end_date_ymd] => 2025-01-11 06:50:07 [RateCDR] => 1 ) [2025-01-11 06:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:50:07' and `end` < '2025-01-11 06:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:50:20] Production.INFO: count ==64 [2025-01-11 06:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 03:50:07 - End Time 2025-01-11 06:50:07 [2025-01-11 06:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222536', 'tblTempUsageDetail_20' ) start [2025-01-11 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222536', 'tblTempUsageDetail_20' ) end [2025-01-11 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222536', 'tblTempVendorCDR_20' ) start [2025-01-11 06:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222536', 'tblTempVendorCDR_20' ) end [2025-01-11 06:50:20] Production.INFO: ProcessCDR(1,14222536,1,1,2) [2025-01-11 06:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222536', 'tblTempUsageDetail_20' ) start [2025-01-11 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222536', 'tblTempUsageDetail_20' ) end [2025-01-11 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:50:23] Production.INFO: ==15458== Releasing lock... [2025-01-11 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:50:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:51:05 [end_date_ymd] => 2025-01-11 06:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:51:05' and `end` < '2025-01-11 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-11 06:51:19] Production.INFO: count ==64 [2025-01-11 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:51:05 - End Time 2025-01-11 06:51:05 [2025-01-11 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222540', 'tblTempUsageDetail_20' ) start [2025-01-11 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222540', 'tblTempUsageDetail_20' ) end [2025-01-11 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222540', 'tblTempVendorCDR_20' ) start [2025-01-11 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222540', 'tblTempVendorCDR_20' ) end [2025-01-11 06:51:19] Production.INFO: ProcessCDR(1,14222540,1,1,2) [2025-01-11 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222540', 'tblTempUsageDetail_20' ) start [2025-01-11 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222540', 'tblTempUsageDetail_20' ) end [2025-01-11 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:51:22] Production.INFO: ==15536== Releasing lock... [2025-01-11 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:52:05 [end_date_ymd] => 2025-01-11 06:52:05 [RateCDR] => 1 ) [2025-01-11 06: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-11 03:52:05' and `end` < '2025-01-11 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-11 06:52:19] Production.INFO: count ==64 [2025-01-11 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 03:52:05 - End Time 2025-01-11 06:52:05 [2025-01-11 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222546', 'tblTempUsageDetail_20' ) start [2025-01-11 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222546', 'tblTempUsageDetail_20' ) end [2025-01-11 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222546', 'tblTempVendorCDR_20' ) start [2025-01-11 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222546', 'tblTempVendorCDR_20' ) end [2025-01-11 06:52:19] Production.INFO: ProcessCDR(1,14222546,1,1,2) [2025-01-11 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222546', 'tblTempUsageDetail_20' ) start [2025-01-11 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222546', 'tblTempUsageDetail_20' ) end [2025-01-11 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:52:22] Production.INFO: ==15607== Releasing lock... [2025-01-11 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:53:05 [end_date_ymd] => 2025-01-11 06:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:53:05' and `end` < '2025-01-11 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-11 06:53:18] Production.INFO: count ==64 [2025-01-11 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:53:05 - End Time 2025-01-11 06:53:05 [2025-01-11 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222551', 'tblTempUsageDetail_20' ) start [2025-01-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222551', 'tblTempUsageDetail_20' ) end [2025-01-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222551', 'tblTempVendorCDR_20' ) start [2025-01-11 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222551', 'tblTempVendorCDR_20' ) end [2025-01-11 06:53:18] Production.INFO: ProcessCDR(1,14222551,1,1,2) [2025-01-11 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222551', 'tblTempUsageDetail_20' ) start [2025-01-11 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222551', 'tblTempUsageDetail_20' ) end [2025-01-11 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:53:21] Production.INFO: ==15676== Releasing lock... [2025-01-11 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:54:05 [end_date_ymd] => 2025-01-11 06:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:54:05' and `end` < '2025-01-11 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-11 06:54:18] Production.INFO: count ==64 [2025-01-11 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:54:05 - End Time 2025-01-11 06:54:05 [2025-01-11 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222556', 'tblTempUsageDetail_20' ) start [2025-01-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222556', 'tblTempUsageDetail_20' ) end [2025-01-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222556', 'tblTempVendorCDR_20' ) start [2025-01-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222556', 'tblTempVendorCDR_20' ) end [2025-01-11 06:54:18] Production.INFO: ProcessCDR(1,14222556,1,1,2) [2025-01-11 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222556', 'tblTempUsageDetail_20' ) start [2025-01-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222556', 'tblTempUsageDetail_20' ) end [2025-01-11 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:54:21] Production.INFO: ==15747== Releasing lock... [2025-01-11 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:55:04 [end_date_ymd] => 2025-01-11 06:55:04 [RateCDR] => 1 ) [2025-01-11 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-11 03:55:04' and `end` < '2025-01-11 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-11 06:55:17] Production.INFO: count ==64 [2025-01-11 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-11 03:55:04 - End Time 2025-01-11 06:55:04 [2025-01-11 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222561', 'tblTempUsageDetail_20' ) start [2025-01-11 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222561', 'tblTempUsageDetail_20' ) end [2025-01-11 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222561', 'tblTempVendorCDR_20' ) start [2025-01-11 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222561', 'tblTempVendorCDR_20' ) end [2025-01-11 06:55:17] Production.INFO: ProcessCDR(1,14222561,1,1,2) [2025-01-11 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222561', 'tblTempUsageDetail_20' ) start [2025-01-11 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222561', 'tblTempUsageDetail_20' ) end [2025-01-11 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:55:20] Production.INFO: ==15816== Releasing lock... [2025-01-11 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:56:05 [end_date_ymd] => 2025-01-11 06:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:56:05' and `end` < '2025-01-11 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-11 06:56:18] Production.INFO: count ==64 [2025-01-11 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:56:05 - End Time 2025-01-11 06:56:05 [2025-01-11 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222566', 'tblTempUsageDetail_20' ) start [2025-01-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222566', 'tblTempUsageDetail_20' ) end [2025-01-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222566', 'tblTempVendorCDR_20' ) start [2025-01-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222566', 'tblTempVendorCDR_20' ) end [2025-01-11 06:56:18] Production.INFO: ProcessCDR(1,14222566,1,1,2) [2025-01-11 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222566', 'tblTempUsageDetail_20' ) start [2025-01-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222566', 'tblTempUsageDetail_20' ) end [2025-01-11 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:56:21] Production.INFO: ==15886== Releasing lock... [2025-01-11 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:57:04 [end_date_ymd] => 2025-01-11 06:57:04 [RateCDR] => 1 ) [2025-01-11 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-11 03:57:04' and `end` < '2025-01-11 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-11 06:57:18] Production.INFO: count ==64 [2025-01-11 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:57:04 - End Time 2025-01-11 06:57:04 [2025-01-11 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222571', 'tblTempUsageDetail_20' ) start [2025-01-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222571', 'tblTempUsageDetail_20' ) end [2025-01-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222571', 'tblTempVendorCDR_20' ) start [2025-01-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222571', 'tblTempVendorCDR_20' ) end [2025-01-11 06:57:18] Production.INFO: ProcessCDR(1,14222571,1,1,2) [2025-01-11 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222571', 'tblTempUsageDetail_20' ) start [2025-01-11 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222571', 'tblTempUsageDetail_20' ) end [2025-01-11 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:57:22] Production.INFO: ==15957== Releasing lock... [2025-01-11 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:57:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:58:05 [end_date_ymd] => 2025-01-11 06:58:05 [RateCDR] => 1 ) [2025-01-11 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 03:58:05' and `end` < '2025-01-11 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 06:58:18] Production.INFO: count ==64 [2025-01-11 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:58:05 - End Time 2025-01-11 06:58:05 [2025-01-11 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222576', 'tblTempUsageDetail_20' ) start [2025-01-11 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222576', 'tblTempUsageDetail_20' ) end [2025-01-11 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222576', 'tblTempVendorCDR_20' ) start [2025-01-11 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222576', 'tblTempVendorCDR_20' ) end [2025-01-11 06:58:18] Production.INFO: ProcessCDR(1,14222576,1,1,2) [2025-01-11 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222576', 'tblTempUsageDetail_20' ) start [2025-01-11 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222576', 'tblTempUsageDetail_20' ) end [2025-01-11 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:58:21] Production.INFO: ==16030== Releasing lock... [2025-01-11 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 03:59:05 [end_date_ymd] => 2025-01-11 06:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 03:59:05' and `end` < '2025-01-11 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-11 06:59:18] Production.INFO: count ==64 [2025-01-11 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 03:59:05 - End Time 2025-01-11 06:59:05 [2025-01-11 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222581', 'tblTempUsageDetail_20' ) start [2025-01-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222581', 'tblTempUsageDetail_20' ) end [2025-01-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222581', 'tblTempVendorCDR_20' ) start [2025-01-11 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222581', 'tblTempVendorCDR_20' ) end [2025-01-11 06:59:18] Production.INFO: ProcessCDR(1,14222581,1,1,2) [2025-01-11 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222581', 'tblTempUsageDetail_20' ) start [2025-01-11 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222581', 'tblTempUsageDetail_20' ) end [2025-01-11 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 06:59:21] Production.INFO: ==16099== Releasing lock... [2025-01-11 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:00:05 [end_date_ymd] => 2025-01-11 07:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:00:05' and `end` < '2025-01-11 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-11 07:00:18] Production.INFO: count ==60 [2025-01-11 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:00:05 - End Time 2025-01-11 07:00:05 [2025-01-11 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222585', 'tblTempUsageDetail_20' ) start [2025-01-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222585', 'tblTempUsageDetail_20' ) end [2025-01-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222585', 'tblTempVendorCDR_20' ) start [2025-01-11 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222585', 'tblTempVendorCDR_20' ) end [2025-01-11 07:00:18] Production.INFO: ProcessCDR(1,14222585,1,1,2) [2025-01-11 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222585', 'tblTempUsageDetail_20' ) start [2025-01-11 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222585', 'tblTempUsageDetail_20' ) end [2025-01-11 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:00:21] Production.INFO: ==16171== Releasing lock... [2025-01-11 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:01:05 [end_date_ymd] => 2025-01-11 07:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:01:05' and `end` < '2025-01-11 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-11 07:01:24] Production.INFO: count ==57 [2025-01-11 07:01:24] Production.ERROR: pbx CDR StartTime 2025-01-11 04:01:05 - End Time 2025-01-11 07:01:05 [2025-01-11 07:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222592', 'tblTempUsageDetail_20' ) start [2025-01-11 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222592', 'tblTempUsageDetail_20' ) end [2025-01-11 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222592', 'tblTempVendorCDR_20' ) start [2025-01-11 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222592', 'tblTempVendorCDR_20' ) end [2025-01-11 07:01:24] Production.INFO: ProcessCDR(1,14222592,1,1,2) [2025-01-11 07:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222592', 'tblTempUsageDetail_20' ) start [2025-01-11 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222592', 'tblTempUsageDetail_20' ) end [2025-01-11 07:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:01:27] Production.INFO: ==16374== Releasing lock... [2025-01-11 07:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:01:27] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:02:04 [end_date_ymd] => 2025-01-11 07:02:04 [RateCDR] => 1 ) [2025-01-11 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-11 04:02:04' and `end` < '2025-01-11 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-11 07:02:20] Production.INFO: count ==57 [2025-01-11 07:02:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:02:04 - End Time 2025-01-11 07:02:04 [2025-01-11 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222597', 'tblTempUsageDetail_20' ) start [2025-01-11 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222597', 'tblTempUsageDetail_20' ) end [2025-01-11 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222597', 'tblTempVendorCDR_20' ) start [2025-01-11 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222597', 'tblTempVendorCDR_20' ) end [2025-01-11 07:02:20] Production.INFO: ProcessCDR(1,14222597,1,1,2) [2025-01-11 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222597', 'tblTempUsageDetail_20' ) start [2025-01-11 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222597', 'tblTempUsageDetail_20' ) end [2025-01-11 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:02:24] Production.INFO: ==16449== Releasing lock... [2025-01-11 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:03:05 [end_date_ymd] => 2025-01-11 07:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:03:05' and `end` < '2025-01-11 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-11 07:03:21] Production.INFO: count ==56 [2025-01-11 07:03:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:03:05 - End Time 2025-01-11 07:03:05 [2025-01-11 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222602', 'tblTempUsageDetail_20' ) start [2025-01-11 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222602', 'tblTempUsageDetail_20' ) end [2025-01-11 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222602', 'tblTempVendorCDR_20' ) start [2025-01-11 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222602', 'tblTempVendorCDR_20' ) end [2025-01-11 07:03:21] Production.INFO: ProcessCDR(1,14222602,1,1,2) [2025-01-11 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222602', 'tblTempUsageDetail_20' ) start [2025-01-11 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222602', 'tblTempUsageDetail_20' ) end [2025-01-11 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:03:24] Production.INFO: ==16520== Releasing lock... [2025-01-11 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:04:05 [end_date_ymd] => 2025-01-11 07:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:04:05' and `end` < '2025-01-11 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-11 07:04:21] Production.INFO: count ==56 [2025-01-11 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:04:05 - End Time 2025-01-11 07:04:05 [2025-01-11 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222607', 'tblTempUsageDetail_20' ) start [2025-01-11 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222607', 'tblTempUsageDetail_20' ) end [2025-01-11 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222607', 'tblTempVendorCDR_20' ) start [2025-01-11 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222607', 'tblTempVendorCDR_20' ) end [2025-01-11 07:04:21] Production.INFO: ProcessCDR(1,14222607,1,1,2) [2025-01-11 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222607', 'tblTempUsageDetail_20' ) start [2025-01-11 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222607', 'tblTempUsageDetail_20' ) end [2025-01-11 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:04:24] Production.INFO: ==16594== Releasing lock... [2025-01-11 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:04:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:05:05 [end_date_ymd] => 2025-01-11 07:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:05:05' and `end` < '2025-01-11 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-11 07:05:20] Production.INFO: count ==56 [2025-01-11 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:05:05 - End Time 2025-01-11 07:05:05 [2025-01-11 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222611', 'tblTempUsageDetail_20' ) start [2025-01-11 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222611', 'tblTempUsageDetail_20' ) end [2025-01-11 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222611', 'tblTempVendorCDR_20' ) start [2025-01-11 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222611', 'tblTempVendorCDR_20' ) end [2025-01-11 07:05:20] Production.INFO: ProcessCDR(1,14222611,1,1,2) [2025-01-11 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222611', 'tblTempUsageDetail_20' ) start [2025-01-11 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222611', 'tblTempUsageDetail_20' ) end [2025-01-11 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:05:23] Production.INFO: ==16746== Releasing lock... [2025-01-11 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:06:04 [end_date_ymd] => 2025-01-11 07:06:04 [RateCDR] => 1 ) [2025-01-11 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-11 04:06:04' and `end` < '2025-01-11 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-11 07:06:19] Production.INFO: count ==56 [2025-01-11 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:06:04 - End Time 2025-01-11 07:06:04 [2025-01-11 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222617', 'tblTempUsageDetail_20' ) start [2025-01-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222617', 'tblTempUsageDetail_20' ) end [2025-01-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222617', 'tblTempVendorCDR_20' ) start [2025-01-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222617', 'tblTempVendorCDR_20' ) end [2025-01-11 07:06:19] Production.INFO: ProcessCDR(1,14222617,1,1,2) [2025-01-11 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222617', 'tblTempUsageDetail_20' ) start [2025-01-11 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222617', 'tblTempUsageDetail_20' ) end [2025-01-11 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:06:22] Production.INFO: ==16817== Releasing lock... [2025-01-11 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:07:05 [end_date_ymd] => 2025-01-11 07:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:07:05' and `end` < '2025-01-11 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-11 07:07:21] Production.INFO: count ==56 [2025-01-11 07:07:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:07:05 - End Time 2025-01-11 07:07:05 [2025-01-11 07:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222622', 'tblTempUsageDetail_20' ) start [2025-01-11 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222622', 'tblTempUsageDetail_20' ) end [2025-01-11 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222622', 'tblTempVendorCDR_20' ) start [2025-01-11 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222622', 'tblTempVendorCDR_20' ) end [2025-01-11 07:07:21] Production.INFO: ProcessCDR(1,14222622,1,1,2) [2025-01-11 07:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222622', 'tblTempUsageDetail_20' ) start [2025-01-11 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222622', 'tblTempUsageDetail_20' ) end [2025-01-11 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:07:24] Production.INFO: ==16888== Releasing lock... [2025-01-11 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:07:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:08:05 [end_date_ymd] => 2025-01-11 07:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:08:05' and `end` < '2025-01-11 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-11 07:08:20] Production.INFO: count ==56 [2025-01-11 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:08:05 - End Time 2025-01-11 07:08:05 [2025-01-11 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222627', 'tblTempUsageDetail_20' ) start [2025-01-11 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222627', 'tblTempUsageDetail_20' ) end [2025-01-11 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222627', 'tblTempVendorCDR_20' ) start [2025-01-11 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222627', 'tblTempVendorCDR_20' ) end [2025-01-11 07:08:20] Production.INFO: ProcessCDR(1,14222627,1,1,2) [2025-01-11 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222627', 'tblTempUsageDetail_20' ) start [2025-01-11 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222627', 'tblTempUsageDetail_20' ) end [2025-01-11 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:08:23] Production.INFO: ==17037== Releasing lock... [2025-01-11 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:09:04 [end_date_ymd] => 2025-01-11 07:09:04 [RateCDR] => 1 ) [2025-01-11 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-11 04:09:04' and `end` < '2025-01-11 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-11 07:09:20] Production.INFO: count ==56 [2025-01-11 07:09:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:09:04 - End Time 2025-01-11 07:09:04 [2025-01-11 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222632', 'tblTempUsageDetail_20' ) start [2025-01-11 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222632', 'tblTempUsageDetail_20' ) end [2025-01-11 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222632', 'tblTempVendorCDR_20' ) start [2025-01-11 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222632', 'tblTempVendorCDR_20' ) end [2025-01-11 07:09:20] Production.INFO: ProcessCDR(1,14222632,1,1,2) [2025-01-11 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222632', 'tblTempUsageDetail_20' ) start [2025-01-11 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222632', 'tblTempUsageDetail_20' ) end [2025-01-11 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:09:23] Production.INFO: ==17107== Releasing lock... [2025-01-11 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:10:06 [end_date_ymd] => 2025-01-11 07:10:06 [RateCDR] => 1 ) [2025-01-11 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-11 04:10:06' and `end` < '2025-01-11 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-11 07:10:23] Production.INFO: count ==54 [2025-01-11 07:10:23] Production.ERROR: pbx CDR StartTime 2025-01-11 04:10:06 - End Time 2025-01-11 07:10:06 [2025-01-11 07:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222638', 'tblTempUsageDetail_20' ) start [2025-01-11 07:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222638', 'tblTempUsageDetail_20' ) end [2025-01-11 07:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222638', 'tblTempVendorCDR_20' ) start [2025-01-11 07:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222638', 'tblTempVendorCDR_20' ) end [2025-01-11 07:10:23] Production.INFO: ProcessCDR(1,14222638,1,1,2) [2025-01-11 07:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222638', 'tblTempUsageDetail_20' ) start [2025-01-11 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222638', 'tblTempUsageDetail_20' ) end [2025-01-11 07:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:10:26] Production.INFO: ==17179== Releasing lock... [2025-01-11 07:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:10:26] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:11:05 [end_date_ymd] => 2025-01-11 07:11:05 [RateCDR] => 1 ) [2025-01-11 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:11:05' and `end` < '2025-01-11 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:11:20] Production.INFO: count ==54 [2025-01-11 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:11:05 - End Time 2025-01-11 07:11:05 [2025-01-11 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222643', 'tblTempUsageDetail_20' ) start [2025-01-11 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222643', 'tblTempUsageDetail_20' ) end [2025-01-11 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222643', 'tblTempVendorCDR_20' ) start [2025-01-11 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222643', 'tblTempVendorCDR_20' ) end [2025-01-11 07:11:20] Production.INFO: ProcessCDR(1,14222643,1,1,2) [2025-01-11 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222643', 'tblTempUsageDetail_20' ) start [2025-01-11 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222643', 'tblTempUsageDetail_20' ) end [2025-01-11 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:11:23] Production.INFO: ==17250== Releasing lock... [2025-01-11 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:12:05 [end_date_ymd] => 2025-01-11 07:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:12:05' and `end` < '2025-01-11 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-11 07:12:21] Production.INFO: count ==54 [2025-01-11 07:12:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:12:05 - End Time 2025-01-11 07:12:05 [2025-01-11 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222648', 'tblTempUsageDetail_20' ) start [2025-01-11 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222648', 'tblTempUsageDetail_20' ) end [2025-01-11 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222648', 'tblTempVendorCDR_20' ) start [2025-01-11 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222648', 'tblTempVendorCDR_20' ) end [2025-01-11 07:12:21] Production.INFO: ProcessCDR(1,14222648,1,1,2) [2025-01-11 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222648', 'tblTempUsageDetail_20' ) start [2025-01-11 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222648', 'tblTempUsageDetail_20' ) end [2025-01-11 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:12:23] Production.INFO: ==17403== Releasing lock... [2025-01-11 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:13:05 [end_date_ymd] => 2025-01-11 07:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:13:05' and `end` < '2025-01-11 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-11 07:13:20] Production.INFO: count ==54 [2025-01-11 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:13:05 - End Time 2025-01-11 07:13:05 [2025-01-11 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222653', 'tblTempUsageDetail_20' ) start [2025-01-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222653', 'tblTempUsageDetail_20' ) end [2025-01-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222653', 'tblTempVendorCDR_20' ) start [2025-01-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222653', 'tblTempVendorCDR_20' ) end [2025-01-11 07:13:20] Production.INFO: ProcessCDR(1,14222653,1,1,2) [2025-01-11 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222653', 'tblTempUsageDetail_20' ) start [2025-01-11 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222653', 'tblTempUsageDetail_20' ) end [2025-01-11 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:13:23] Production.INFO: ==17473== Releasing lock... [2025-01-11 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:14:05 [end_date_ymd] => 2025-01-11 07:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:14:05' and `end` < '2025-01-11 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-11 07:14:20] Production.INFO: count ==54 [2025-01-11 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:14:05 - End Time 2025-01-11 07:14:05 [2025-01-11 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222658', 'tblTempUsageDetail_20' ) start [2025-01-11 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222658', 'tblTempUsageDetail_20' ) end [2025-01-11 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222658', 'tblTempVendorCDR_20' ) start [2025-01-11 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222658', 'tblTempVendorCDR_20' ) end [2025-01-11 07:14:20] Production.INFO: ProcessCDR(1,14222658,1,1,2) [2025-01-11 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222658', 'tblTempUsageDetail_20' ) start [2025-01-11 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222658', 'tblTempUsageDetail_20' ) end [2025-01-11 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:14:23] Production.INFO: ==17543== Releasing lock... [2025-01-11 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:15:05 [end_date_ymd] => 2025-01-11 07:15:05 [RateCDR] => 1 ) [2025-01-11 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:15:05' and `end` < '2025-01-11 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:15:20] Production.INFO: count ==54 [2025-01-11 07:15:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:15:05 - End Time 2025-01-11 07:15:05 [2025-01-11 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222663', 'tblTempUsageDetail_20' ) start [2025-01-11 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222663', 'tblTempUsageDetail_20' ) end [2025-01-11 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222663', 'tblTempVendorCDR_20' ) start [2025-01-11 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222663', 'tblTempVendorCDR_20' ) end [2025-01-11 07:15:20] Production.INFO: ProcessCDR(1,14222663,1,1,2) [2025-01-11 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222663', 'tblTempUsageDetail_20' ) start [2025-01-11 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222663', 'tblTempUsageDetail_20' ) end [2025-01-11 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:15:23] Production.INFO: ==17691== Releasing lock... [2025-01-11 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:15:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:16:05 [end_date_ymd] => 2025-01-11 07:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:16:05' and `end` < '2025-01-11 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-11 07:16:20] Production.INFO: count ==54 [2025-01-11 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:16:05 - End Time 2025-01-11 07:16:05 [2025-01-11 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222668', 'tblTempUsageDetail_20' ) start [2025-01-11 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222668', 'tblTempUsageDetail_20' ) end [2025-01-11 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222668', 'tblTempVendorCDR_20' ) start [2025-01-11 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222668', 'tblTempVendorCDR_20' ) end [2025-01-11 07:16:20] Production.INFO: ProcessCDR(1,14222668,1,1,2) [2025-01-11 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222668', 'tblTempUsageDetail_20' ) start [2025-01-11 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222668', 'tblTempUsageDetail_20' ) end [2025-01-11 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:16:24] Production.INFO: ==17762== Releasing lock... [2025-01-11 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:16:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:17:04 [end_date_ymd] => 2025-01-11 07:17:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:17:04' and `end` < '2025-01-11 07: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-11 07:17:19] Production.INFO: count ==54 [2025-01-11 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:17:04 - End Time 2025-01-11 07:17:04 [2025-01-11 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222673', 'tblTempUsageDetail_20' ) start [2025-01-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222673', 'tblTempUsageDetail_20' ) end [2025-01-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222673', 'tblTempVendorCDR_20' ) start [2025-01-11 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222673', 'tblTempVendorCDR_20' ) end [2025-01-11 07:17:19] Production.INFO: ProcessCDR(1,14222673,1,1,2) [2025-01-11 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222673', 'tblTempUsageDetail_20' ) start [2025-01-11 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222673', 'tblTempUsageDetail_20' ) end [2025-01-11 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:17:22] Production.INFO: ==17876== Releasing lock... [2025-01-11 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:18:05 [end_date_ymd] => 2025-01-11 07:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:18:05' and `end` < '2025-01-11 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-11 07:18:20] Production.INFO: count ==54 [2025-01-11 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:18:05 - End Time 2025-01-11 07:18:05 [2025-01-11 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222678', 'tblTempUsageDetail_20' ) start [2025-01-11 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222678', 'tblTempUsageDetail_20' ) end [2025-01-11 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222678', 'tblTempVendorCDR_20' ) start [2025-01-11 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222678', 'tblTempVendorCDR_20' ) end [2025-01-11 07:18:20] Production.INFO: ProcessCDR(1,14222678,1,1,2) [2025-01-11 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222678', 'tblTempUsageDetail_20' ) start [2025-01-11 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222678', 'tblTempUsageDetail_20' ) end [2025-01-11 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:18:23] Production.INFO: ==17949== Releasing lock... [2025-01-11 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:18:23] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:19:04 [end_date_ymd] => 2025-01-11 07:19:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:19:04' and `end` < '2025-01-11 07: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-11 07:19:19] Production.INFO: count ==54 [2025-01-11 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:19:04 - End Time 2025-01-11 07:19:04 [2025-01-11 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222683', 'tblTempUsageDetail_20' ) start [2025-01-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222683', 'tblTempUsageDetail_20' ) end [2025-01-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222683', 'tblTempVendorCDR_20' ) start [2025-01-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222683', 'tblTempVendorCDR_20' ) end [2025-01-11 07:19:19] Production.INFO: ProcessCDR(1,14222683,1,1,2) [2025-01-11 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222683', 'tblTempUsageDetail_20' ) start [2025-01-11 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222683', 'tblTempUsageDetail_20' ) end [2025-01-11 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:19:22] Production.INFO: ==18021== Releasing lock... [2025-01-11 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:20:06 [end_date_ymd] => 2025-01-11 07:20:06 [RateCDR] => 1 ) [2025-01-11 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-11 04:20:06' and `end` < '2025-01-11 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-11 07:20:19] Production.INFO: count ==52 [2025-01-11 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:20:06 - End Time 2025-01-11 07:20:06 [2025-01-11 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222689', 'tblTempUsageDetail_20' ) start [2025-01-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222689', 'tblTempUsageDetail_20' ) end [2025-01-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222689', 'tblTempVendorCDR_20' ) start [2025-01-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222689', 'tblTempVendorCDR_20' ) end [2025-01-11 07:20:19] Production.INFO: ProcessCDR(1,14222689,1,1,2) [2025-01-11 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222689', 'tblTempUsageDetail_20' ) start [2025-01-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222689', 'tblTempUsageDetail_20' ) end [2025-01-11 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:20:22] Production.INFO: ==18095== Releasing lock... [2025-01-11 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:21:04 [end_date_ymd] => 2025-01-11 07:21:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:21:04' and `end` < '2025-01-11 07: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-11 07:21:21] Production.INFO: count ==52 [2025-01-11 07:21:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:21:04 - End Time 2025-01-11 07:21:04 [2025-01-11 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222694', 'tblTempUsageDetail_20' ) start [2025-01-11 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222694', 'tblTempUsageDetail_20' ) end [2025-01-11 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222694', 'tblTempVendorCDR_20' ) start [2025-01-11 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222694', 'tblTempVendorCDR_20' ) end [2025-01-11 07:21:21] Production.INFO: ProcessCDR(1,14222694,1,1,2) [2025-01-11 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222694', 'tblTempUsageDetail_20' ) start [2025-01-11 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222694', 'tblTempUsageDetail_20' ) end [2025-01-11 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:21:24] Production.INFO: ==18166== Releasing lock... [2025-01-11 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:21:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:22:05 [end_date_ymd] => 2025-01-11 07:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:22:05' and `end` < '2025-01-11 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-11 07:22:35] Production.INFO: count ==52 [2025-01-11 07:22:35] Production.ERROR: pbx CDR StartTime 2025-01-11 04:22:05 - End Time 2025-01-11 07:22:05 [2025-01-11 07:22:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222699', 'tblTempUsageDetail_20' ) start [2025-01-11 07:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222699', 'tblTempUsageDetail_20' ) end [2025-01-11 07:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222699', 'tblTempVendorCDR_20' ) start [2025-01-11 07:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222699', 'tblTempVendorCDR_20' ) end [2025-01-11 07:22:35] Production.INFO: ProcessCDR(1,14222699,1,1,2) [2025-01-11 07:22:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222699', 'tblTempUsageDetail_20' ) start [2025-01-11 07:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222699', 'tblTempUsageDetail_20' ) end [2025-01-11 07:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:22:39] Production.INFO: ==18238== Releasing lock... [2025-01-11 07:22:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:22:39] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:23:05 [end_date_ymd] => 2025-01-11 07:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:23:05' and `end` < '2025-01-11 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-11 07:23:21] Production.INFO: count ==52 [2025-01-11 07:23:21] Production.ERROR: pbx CDR StartTime 2025-01-11 04:23:05 - End Time 2025-01-11 07:23:05 [2025-01-11 07:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222704', 'tblTempUsageDetail_20' ) start [2025-01-11 07:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222704', 'tblTempUsageDetail_20' ) end [2025-01-11 07:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222704', 'tblTempVendorCDR_20' ) start [2025-01-11 07:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222704', 'tblTempVendorCDR_20' ) end [2025-01-11 07:23:21] Production.INFO: ProcessCDR(1,14222704,1,1,2) [2025-01-11 07:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222704', 'tblTempUsageDetail_20' ) start [2025-01-11 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222704', 'tblTempUsageDetail_20' ) end [2025-01-11 07:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:23:24] Production.INFO: ==18310== Releasing lock... [2025-01-11 07:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:23:24] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:24:04 [end_date_ymd] => 2025-01-11 07:24:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:24:04' and `end` < '2025-01-11 07: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-11 07:24:17] Production.INFO: count ==52 [2025-01-11 07:24:17] Production.ERROR: pbx CDR StartTime 2025-01-11 04:24:04 - End Time 2025-01-11 07:24:04 [2025-01-11 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222709', 'tblTempUsageDetail_20' ) start [2025-01-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222709', 'tblTempUsageDetail_20' ) end [2025-01-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222709', 'tblTempVendorCDR_20' ) start [2025-01-11 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222709', 'tblTempVendorCDR_20' ) end [2025-01-11 07:24:17] Production.INFO: ProcessCDR(1,14222709,1,1,2) [2025-01-11 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222709', 'tblTempUsageDetail_20' ) start [2025-01-11 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222709', 'tblTempUsageDetail_20' ) end [2025-01-11 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:24:21] Production.INFO: ==18381== Releasing lock... [2025-01-11 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:25:05 [end_date_ymd] => 2025-01-11 07:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:25:05' and `end` < '2025-01-11 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-11 07:25:19] Production.INFO: count ==52 [2025-01-11 07:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:25:05 - End Time 2025-01-11 07:25:05 [2025-01-11 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222714', 'tblTempUsageDetail_20' ) start [2025-01-11 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222714', 'tblTempUsageDetail_20' ) end [2025-01-11 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222714', 'tblTempVendorCDR_20' ) start [2025-01-11 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222714', 'tblTempVendorCDR_20' ) end [2025-01-11 07:25:19] Production.INFO: ProcessCDR(1,14222714,1,1,2) [2025-01-11 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222714', 'tblTempUsageDetail_20' ) start [2025-01-11 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222714', 'tblTempUsageDetail_20' ) end [2025-01-11 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:25:22] Production.INFO: ==18462== Releasing lock... [2025-01-11 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:25:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:26:04 [end_date_ymd] => 2025-01-11 07:26:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:26:04' and `end` < '2025-01-11 07: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-11 07:26:17] Production.INFO: count ==52 [2025-01-11 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-11 04:26:04 - End Time 2025-01-11 07:26:04 [2025-01-11 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222719', 'tblTempUsageDetail_20' ) start [2025-01-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222719', 'tblTempUsageDetail_20' ) end [2025-01-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222719', 'tblTempVendorCDR_20' ) start [2025-01-11 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222719', 'tblTempVendorCDR_20' ) end [2025-01-11 07:26:17] Production.INFO: ProcessCDR(1,14222719,1,1,2) [2025-01-11 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222719', 'tblTempUsageDetail_20' ) start [2025-01-11 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222719', 'tblTempUsageDetail_20' ) end [2025-01-11 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:26:20] Production.INFO: ==18559== Releasing lock... [2025-01-11 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:26:20] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:27:05 [end_date_ymd] => 2025-01-11 07:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:27:05' and `end` < '2025-01-11 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-11 07:27:18] Production.INFO: count ==52 [2025-01-11 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:27:05 - End Time 2025-01-11 07:27:05 [2025-01-11 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222724', 'tblTempUsageDetail_20' ) start [2025-01-11 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222724', 'tblTempUsageDetail_20' ) end [2025-01-11 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222724', 'tblTempVendorCDR_20' ) start [2025-01-11 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222724', 'tblTempVendorCDR_20' ) end [2025-01-11 07:27:18] Production.INFO: ProcessCDR(1,14222724,1,1,2) [2025-01-11 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222724', 'tblTempUsageDetail_20' ) start [2025-01-11 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222724', 'tblTempUsageDetail_20' ) end [2025-01-11 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:27:21] Production.INFO: ==18659== Releasing lock... [2025-01-11 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-11 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:28:05 [end_date_ymd] => 2025-01-11 07:28:05 [RateCDR] => 1 ) [2025-01-11 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:28:05' and `end` < '2025-01-11 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:28:19] Production.INFO: count ==51 [2025-01-11 07:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:28:05 - End Time 2025-01-11 07:28:05 [2025-01-11 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222729', 'tblTempUsageDetail_20' ) start [2025-01-11 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222729', 'tblTempUsageDetail_20' ) end [2025-01-11 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222729', 'tblTempVendorCDR_20' ) start [2025-01-11 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222729', 'tblTempVendorCDR_20' ) end [2025-01-11 07:28:19] Production.INFO: ProcessCDR(1,14222729,1,1,2) [2025-01-11 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222729', 'tblTempUsageDetail_20' ) start [2025-01-11 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222729', 'tblTempUsageDetail_20' ) end [2025-01-11 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:28:22] Production.INFO: ==18756== Releasing lock... [2025-01-11 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:28:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:29:05 [end_date_ymd] => 2025-01-11 07:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:29:05' and `end` < '2025-01-11 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-11 07:29:19] Production.INFO: count ==51 [2025-01-11 07:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:29:05 - End Time 2025-01-11 07:29:05 [2025-01-11 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222734', 'tblTempUsageDetail_20' ) start [2025-01-11 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222734', 'tblTempUsageDetail_20' ) end [2025-01-11 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222734', 'tblTempVendorCDR_20' ) start [2025-01-11 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222734', 'tblTempVendorCDR_20' ) end [2025-01-11 07:29:19] Production.INFO: ProcessCDR(1,14222734,1,1,2) [2025-01-11 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222734', 'tblTempUsageDetail_20' ) start [2025-01-11 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222734', 'tblTempUsageDetail_20' ) end [2025-01-11 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:29:22] Production.INFO: ==18853== Releasing lock... [2025-01-11 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:29:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:30:06 [end_date_ymd] => 2025-01-11 07:30:06 [RateCDR] => 1 ) [2025-01-11 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-11 04:30:06' and `end` < '2025-01-11 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-11 07:30:20] Production.INFO: count ==45 [2025-01-11 07:30:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:30:06 - End Time 2025-01-11 07:30:06 [2025-01-11 07:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222739', 'tblTempUsageDetail_20' ) start [2025-01-11 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222739', 'tblTempUsageDetail_20' ) end [2025-01-11 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222739', 'tblTempVendorCDR_20' ) start [2025-01-11 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222739', 'tblTempVendorCDR_20' ) end [2025-01-11 07:30:20] Production.INFO: ProcessCDR(1,14222739,1,1,2) [2025-01-11 07:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222739', 'tblTempUsageDetail_20' ) start [2025-01-11 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222739', 'tblTempUsageDetail_20' ) end [2025-01-11 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:30:23] Production.INFO: ==18960== Releasing lock... [2025-01-11 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:30:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:31:04 [end_date_ymd] => 2025-01-11 07:31:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:31:04' and `end` < '2025-01-11 07: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-11 07:31:19] Production.INFO: count ==41 [2025-01-11 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:31:04 - End Time 2025-01-11 07:31:04 [2025-01-11 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222745', 'tblTempUsageDetail_20' ) start [2025-01-11 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222745', 'tblTempUsageDetail_20' ) end [2025-01-11 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222745', 'tblTempVendorCDR_20' ) start [2025-01-11 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222745', 'tblTempVendorCDR_20' ) end [2025-01-11 07:31:19] Production.INFO: ProcessCDR(1,14222745,1,1,2) [2025-01-11 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222745', 'tblTempUsageDetail_20' ) start [2025-01-11 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222745', 'tblTempUsageDetail_20' ) end [2025-01-11 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:31:22] Production.INFO: ==19062== Releasing lock... [2025-01-11 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:32:05 [end_date_ymd] => 2025-01-11 07:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:32:05' and `end` < '2025-01-11 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-11 07:32:19] Production.INFO: count ==41 [2025-01-11 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:32:05 - End Time 2025-01-11 07:32:05 [2025-01-11 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222750', 'tblTempUsageDetail_20' ) start [2025-01-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222750', 'tblTempUsageDetail_20' ) end [2025-01-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222750', 'tblTempVendorCDR_20' ) start [2025-01-11 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222750', 'tblTempVendorCDR_20' ) end [2025-01-11 07:32:19] Production.INFO: ProcessCDR(1,14222750,1,1,2) [2025-01-11 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222750', 'tblTempUsageDetail_20' ) start [2025-01-11 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222750', 'tblTempUsageDetail_20' ) end [2025-01-11 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:32:23] Production.INFO: ==19201== Releasing lock... [2025-01-11 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:32:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:33:04 [end_date_ymd] => 2025-01-11 07:33:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:33:04' and `end` < '2025-01-11 07: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-11 07:33:17] Production.INFO: count ==41 [2025-01-11 07:33:17] Production.ERROR: pbx CDR StartTime 2025-01-11 04:33:04 - End Time 2025-01-11 07:33:04 [2025-01-11 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222755', 'tblTempUsageDetail_20' ) start [2025-01-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222755', 'tblTempUsageDetail_20' ) end [2025-01-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222755', 'tblTempVendorCDR_20' ) start [2025-01-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222755', 'tblTempVendorCDR_20' ) end [2025-01-11 07:33:17] Production.INFO: ProcessCDR(1,14222755,1,1,2) [2025-01-11 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222755', 'tblTempUsageDetail_20' ) start [2025-01-11 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222755', 'tblTempUsageDetail_20' ) end [2025-01-11 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:33:21] Production.INFO: ==19300== Releasing lock... [2025-01-11 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:34:05 [end_date_ymd] => 2025-01-11 07:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:34:05' and `end` < '2025-01-11 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-11 07:34:20] Production.INFO: count ==41 [2025-01-11 07:34:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:34:05 - End Time 2025-01-11 07:34:05 [2025-01-11 07:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222760', 'tblTempUsageDetail_20' ) start [2025-01-11 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222760', 'tblTempUsageDetail_20' ) end [2025-01-11 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222760', 'tblTempVendorCDR_20' ) start [2025-01-11 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222760', 'tblTempVendorCDR_20' ) end [2025-01-11 07:34:20] Production.INFO: ProcessCDR(1,14222760,1,1,2) [2025-01-11 07:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222760', 'tblTempUsageDetail_20' ) start [2025-01-11 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222760', 'tblTempUsageDetail_20' ) end [2025-01-11 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:34:23] Production.INFO: ==19415== Releasing lock... [2025-01-11 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:34:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:35:04 [end_date_ymd] => 2025-01-11 07:35:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:35:04' and `end` < '2025-01-11 07: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-11 07:35:17] Production.INFO: count ==41 [2025-01-11 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-11 04:35:04 - End Time 2025-01-11 07:35:04 [2025-01-11 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222765', 'tblTempUsageDetail_20' ) start [2025-01-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222765', 'tblTempUsageDetail_20' ) end [2025-01-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222765', 'tblTempVendorCDR_20' ) start [2025-01-11 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222765', 'tblTempVendorCDR_20' ) end [2025-01-11 07:35:17] Production.INFO: ProcessCDR(1,14222765,1,1,2) [2025-01-11 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222765', 'tblTempUsageDetail_20' ) start [2025-01-11 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222765', 'tblTempUsageDetail_20' ) end [2025-01-11 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:35:20] Production.INFO: ==19513== Releasing lock... [2025-01-11 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:35:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:36:05 [end_date_ymd] => 2025-01-11 07:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:36:05' and `end` < '2025-01-11 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-11 07:36:18] Production.INFO: count ==41 [2025-01-11 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:36:05 - End Time 2025-01-11 07:36:05 [2025-01-11 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222770', 'tblTempUsageDetail_20' ) start [2025-01-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222770', 'tblTempUsageDetail_20' ) end [2025-01-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222770', 'tblTempVendorCDR_20' ) start [2025-01-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222770', 'tblTempVendorCDR_20' ) end [2025-01-11 07:36:18] Production.INFO: ProcessCDR(1,14222770,1,1,2) [2025-01-11 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222770', 'tblTempUsageDetail_20' ) start [2025-01-11 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222770', 'tblTempUsageDetail_20' ) end [2025-01-11 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:36:22] Production.INFO: ==19613== Releasing lock... [2025-01-11 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:36:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:37:04 [end_date_ymd] => 2025-01-11 07:37:04 [RateCDR] => 1 ) [2025-01-11 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-11 04:37:04' and `end` < '2025-01-11 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-11 07:37:18] Production.INFO: count ==41 [2025-01-11 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:37:04 - End Time 2025-01-11 07:37:04 [2025-01-11 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222775', 'tblTempUsageDetail_20' ) start [2025-01-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222775', 'tblTempUsageDetail_20' ) end [2025-01-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222775', 'tblTempVendorCDR_20' ) start [2025-01-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222775', 'tblTempVendorCDR_20' ) end [2025-01-11 07:37:18] Production.INFO: ProcessCDR(1,14222775,1,1,2) [2025-01-11 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222775', 'tblTempUsageDetail_20' ) start [2025-01-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222775', 'tblTempUsageDetail_20' ) end [2025-01-11 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:37:21] Production.INFO: ==19711== Releasing lock... [2025-01-11 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:38:05 [end_date_ymd] => 2025-01-11 07:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:38:05' and `end` < '2025-01-11 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-11 07:38:19] Production.INFO: count ==41 [2025-01-11 07:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:38:05 - End Time 2025-01-11 07:38:05 [2025-01-11 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222780', 'tblTempUsageDetail_20' ) start [2025-01-11 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222780', 'tblTempUsageDetail_20' ) end [2025-01-11 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222780', 'tblTempVendorCDR_20' ) start [2025-01-11 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222780', 'tblTempVendorCDR_20' ) end [2025-01-11 07:38:19] Production.INFO: ProcessCDR(1,14222780,1,1,2) [2025-01-11 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222780', 'tblTempUsageDetail_20' ) start [2025-01-11 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222780', 'tblTempUsageDetail_20' ) end [2025-01-11 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:38:23] Production.INFO: ==19812== Releasing lock... [2025-01-11 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:38:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:39:05 [end_date_ymd] => 2025-01-11 07:39:05 [RateCDR] => 1 ) [2025-01-11 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:39:05' and `end` < '2025-01-11 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:39:20] Production.INFO: count ==41 [2025-01-11 07:39:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:39:05 - End Time 2025-01-11 07:39:05 [2025-01-11 07:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222785', 'tblTempUsageDetail_20' ) start [2025-01-11 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222785', 'tblTempUsageDetail_20' ) end [2025-01-11 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222785', 'tblTempVendorCDR_20' ) start [2025-01-11 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222785', 'tblTempVendorCDR_20' ) end [2025-01-11 07:39:20] Production.INFO: ProcessCDR(1,14222785,1,1,2) [2025-01-11 07:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222785', 'tblTempUsageDetail_20' ) start [2025-01-11 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222785', 'tblTempUsageDetail_20' ) end [2025-01-11 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:39:23] Production.INFO: ==19913== Releasing lock... [2025-01-11 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:39:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:40:05 [end_date_ymd] => 2025-01-11 07:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:40:05' and `end` < '2025-01-11 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-11 07:40:18] Production.INFO: count ==41 [2025-01-11 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:40:05 - End Time 2025-01-11 07:40:05 [2025-01-11 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222791', 'tblTempUsageDetail_20' ) start [2025-01-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222791', 'tblTempUsageDetail_20' ) end [2025-01-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222791', 'tblTempVendorCDR_20' ) start [2025-01-11 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222791', 'tblTempVendorCDR_20' ) end [2025-01-11 07:40:18] Production.INFO: ProcessCDR(1,14222791,1,1,2) [2025-01-11 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222791', 'tblTempUsageDetail_20' ) start [2025-01-11 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222791', 'tblTempUsageDetail_20' ) end [2025-01-11 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:40:21] Production.INFO: ==20015== Releasing lock... [2025-01-11 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:41:05 [end_date_ymd] => 2025-01-11 07:41:05 [RateCDR] => 1 ) [2025-01-11 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:41:05' and `end` < '2025-01-11 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:41:18] Production.INFO: count ==41 [2025-01-11 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:41:05 - End Time 2025-01-11 07:41:05 [2025-01-11 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222796', 'tblTempUsageDetail_20' ) start [2025-01-11 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222796', 'tblTempUsageDetail_20' ) end [2025-01-11 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222796', 'tblTempVendorCDR_20' ) start [2025-01-11 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222796', 'tblTempVendorCDR_20' ) end [2025-01-11 07:41:18] Production.INFO: ProcessCDR(1,14222796,1,1,2) [2025-01-11 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222796', 'tblTempUsageDetail_20' ) start [2025-01-11 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222796', 'tblTempUsageDetail_20' ) end [2025-01-11 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:41:21] Production.INFO: ==20116== Releasing lock... [2025-01-11 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:42:05 [end_date_ymd] => 2025-01-11 07:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:42:05' and `end` < '2025-01-11 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-11 07:42:19] Production.INFO: count ==41 [2025-01-11 07:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:42:05 - End Time 2025-01-11 07:42:05 [2025-01-11 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222801', 'tblTempUsageDetail_20' ) start [2025-01-11 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222801', 'tblTempUsageDetail_20' ) end [2025-01-11 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222801', 'tblTempVendorCDR_20' ) start [2025-01-11 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222801', 'tblTempVendorCDR_20' ) end [2025-01-11 07:42:19] Production.INFO: ProcessCDR(1,14222801,1,1,2) [2025-01-11 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222801', 'tblTempUsageDetail_20' ) start [2025-01-11 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222801', 'tblTempUsageDetail_20' ) end [2025-01-11 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:42:23] Production.INFO: ==20215== Releasing lock... [2025-01-11 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:42:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:43:06 [end_date_ymd] => 2025-01-11 07:43:06 [RateCDR] => 1 ) [2025-01-11 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:43:06' and `end` < '2025-01-11 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:43:20] Production.INFO: count ==41 [2025-01-11 07:43:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:43:06 - End Time 2025-01-11 07:43:06 [2025-01-11 07:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222806', 'tblTempUsageDetail_20' ) start [2025-01-11 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222806', 'tblTempUsageDetail_20' ) end [2025-01-11 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222806', 'tblTempVendorCDR_20' ) start [2025-01-11 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222806', 'tblTempVendorCDR_20' ) end [2025-01-11 07:43:20] Production.INFO: ProcessCDR(1,14222806,1,1,2) [2025-01-11 07:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222806', 'tblTempUsageDetail_20' ) start [2025-01-11 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222806', 'tblTempUsageDetail_20' ) end [2025-01-11 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:43:23] Production.INFO: ==20291== Releasing lock... [2025-01-11 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:43:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:44:05 [end_date_ymd] => 2025-01-11 07:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:44:05' and `end` < '2025-01-11 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-11 07:44:18] Production.INFO: count ==41 [2025-01-11 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:44:05 - End Time 2025-01-11 07:44:05 [2025-01-11 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222811', 'tblTempUsageDetail_20' ) start [2025-01-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222811', 'tblTempUsageDetail_20' ) end [2025-01-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222811', 'tblTempVendorCDR_20' ) start [2025-01-11 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222811', 'tblTempVendorCDR_20' ) end [2025-01-11 07:44:18] Production.INFO: ProcessCDR(1,14222811,1,1,2) [2025-01-11 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222811', 'tblTempUsageDetail_20' ) start [2025-01-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222811', 'tblTempUsageDetail_20' ) end [2025-01-11 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:44:21] Production.INFO: ==20362== Releasing lock... [2025-01-11 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:44:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:45:05 [end_date_ymd] => 2025-01-11 07:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:45:05' and `end` < '2025-01-11 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-11 07:45:19] Production.INFO: count ==41 [2025-01-11 07:45:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:45:05 - End Time 2025-01-11 07:45:05 [2025-01-11 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222816', 'tblTempUsageDetail_20' ) start [2025-01-11 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222816', 'tblTempUsageDetail_20' ) end [2025-01-11 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222816', 'tblTempVendorCDR_20' ) start [2025-01-11 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222816', 'tblTempVendorCDR_20' ) end [2025-01-11 07:45:19] Production.INFO: ProcessCDR(1,14222816,1,1,2) [2025-01-11 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222816', 'tblTempUsageDetail_20' ) start [2025-01-11 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222816', 'tblTempUsageDetail_20' ) end [2025-01-11 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:45:22] Production.INFO: ==20435== Releasing lock... [2025-01-11 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:45:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:46:04 [end_date_ymd] => 2025-01-11 07:46:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:46:04' and `end` < '2025-01-11 07: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-11 07:46:18] Production.INFO: count ==41 [2025-01-11 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:46:04 - End Time 2025-01-11 07:46:04 [2025-01-11 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222821', 'tblTempUsageDetail_20' ) start [2025-01-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222821', 'tblTempUsageDetail_20' ) end [2025-01-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222821', 'tblTempVendorCDR_20' ) start [2025-01-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222821', 'tblTempVendorCDR_20' ) end [2025-01-11 07:46:18] Production.INFO: ProcessCDR(1,14222821,1,1,2) [2025-01-11 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222821', 'tblTempUsageDetail_20' ) start [2025-01-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222821', 'tblTempUsageDetail_20' ) end [2025-01-11 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:46:21] Production.INFO: ==20507== Releasing lock... [2025-01-11 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:46:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:47:05 [end_date_ymd] => 2025-01-11 07:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:47:05' and `end` < '2025-01-11 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-11 07:47:19] Production.INFO: count ==41 [2025-01-11 07:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:47:05 - End Time 2025-01-11 07:47:05 [2025-01-11 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222826', 'tblTempUsageDetail_20' ) start [2025-01-11 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222826', 'tblTempUsageDetail_20' ) end [2025-01-11 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222826', 'tblTempVendorCDR_20' ) start [2025-01-11 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222826', 'tblTempVendorCDR_20' ) end [2025-01-11 07:47:19] Production.INFO: ProcessCDR(1,14222826,1,1,2) [2025-01-11 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222826', 'tblTempUsageDetail_20' ) start [2025-01-11 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222826', 'tblTempUsageDetail_20' ) end [2025-01-11 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:47:22] Production.INFO: ==20578== Releasing lock... [2025-01-11 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:47:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:48:05 [end_date_ymd] => 2025-01-11 07:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:48:05' and `end` < '2025-01-11 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-11 07:48:18] Production.INFO: count ==41 [2025-01-11 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:48:05 - End Time 2025-01-11 07:48:05 [2025-01-11 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222831', 'tblTempUsageDetail_20' ) start [2025-01-11 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222831', 'tblTempUsageDetail_20' ) end [2025-01-11 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222831', 'tblTempVendorCDR_20' ) start [2025-01-11 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222831', 'tblTempVendorCDR_20' ) end [2025-01-11 07:48:18] Production.INFO: ProcessCDR(1,14222831,1,1,2) [2025-01-11 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222831', 'tblTempUsageDetail_20' ) start [2025-01-11 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222831', 'tblTempUsageDetail_20' ) end [2025-01-11 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:48:21] Production.INFO: ==20687== Releasing lock... [2025-01-11 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:48:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:49:05 [end_date_ymd] => 2025-01-11 07:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:49:05' and `end` < '2025-01-11 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-11 07:49:20] Production.INFO: count ==41 [2025-01-11 07:49:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:49:05 - End Time 2025-01-11 07:49:05 [2025-01-11 07:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222836', 'tblTempUsageDetail_20' ) start [2025-01-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222836', 'tblTempUsageDetail_20' ) end [2025-01-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222836', 'tblTempVendorCDR_20' ) start [2025-01-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222836', 'tblTempVendorCDR_20' ) end [2025-01-11 07:49:20] Production.INFO: ProcessCDR(1,14222836,1,1,2) [2025-01-11 07:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222836', 'tblTempUsageDetail_20' ) start [2025-01-11 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222836', 'tblTempUsageDetail_20' ) end [2025-01-11 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:49:23] Production.INFO: ==20758== Releasing lock... [2025-01-11 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:49:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:50:06 [end_date_ymd] => 2025-01-11 07:50:06 [RateCDR] => 1 ) [2025-01-11 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-11 04:50:06' and `end` < '2025-01-11 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-11 07:50:20] Production.INFO: count ==41 [2025-01-11 07:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:50:06 - End Time 2025-01-11 07:50:06 [2025-01-11 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222842', 'tblTempUsageDetail_20' ) start [2025-01-11 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222842', 'tblTempUsageDetail_20' ) end [2025-01-11 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222842', 'tblTempVendorCDR_20' ) start [2025-01-11 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222842', 'tblTempVendorCDR_20' ) end [2025-01-11 07:50:20] Production.INFO: ProcessCDR(1,14222842,1,1,2) [2025-01-11 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222842', 'tblTempUsageDetail_20' ) start [2025-01-11 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222842', 'tblTempUsageDetail_20' ) end [2025-01-11 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:50:23] Production.INFO: ==20830== Releasing lock... [2025-01-11 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:50:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:51:05 [end_date_ymd] => 2025-01-11 07:51:05 [RateCDR] => 1 ) [2025-01-11 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:51:05' and `end` < '2025-01-11 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:51:18] Production.INFO: count ==41 [2025-01-11 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:51:05 - End Time 2025-01-11 07:51:05 [2025-01-11 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222847', 'tblTempUsageDetail_20' ) start [2025-01-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222847', 'tblTempUsageDetail_20' ) end [2025-01-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222847', 'tblTempVendorCDR_20' ) start [2025-01-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222847', 'tblTempVendorCDR_20' ) end [2025-01-11 07:51:18] Production.INFO: ProcessCDR(1,14222847,1,1,2) [2025-01-11 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222847', 'tblTempUsageDetail_20' ) start [2025-01-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222847', 'tblTempUsageDetail_20' ) end [2025-01-11 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:51:21] Production.INFO: ==20905== Releasing lock... [2025-01-11 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:52:04 [end_date_ymd] => 2025-01-11 07:52:04 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:52:04' and `end` < '2025-01-11 07: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-11 07:52:18] Production.INFO: count ==41 [2025-01-11 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:52:04 - End Time 2025-01-11 07:52:04 [2025-01-11 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222852', 'tblTempUsageDetail_20' ) start [2025-01-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222852', 'tblTempUsageDetail_20' ) end [2025-01-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222852', 'tblTempVendorCDR_20' ) start [2025-01-11 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222852', 'tblTempVendorCDR_20' ) end [2025-01-11 07:52:18] Production.INFO: ProcessCDR(1,14222852,1,1,2) [2025-01-11 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222852', 'tblTempUsageDetail_20' ) start [2025-01-11 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222852', 'tblTempUsageDetail_20' ) end [2025-01-11 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:52:22] Production.INFO: ==20977== Releasing lock... [2025-01-11 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:52:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:53:05 [end_date_ymd] => 2025-01-11 07:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:53:05' and `end` < '2025-01-11 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-11 07:53:19] Production.INFO: count ==41 [2025-01-11 07:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:53:05 - End Time 2025-01-11 07:53:05 [2025-01-11 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222857', 'tblTempUsageDetail_20' ) start [2025-01-11 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222857', 'tblTempUsageDetail_20' ) end [2025-01-11 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222857', 'tblTempVendorCDR_20' ) start [2025-01-11 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222857', 'tblTempVendorCDR_20' ) end [2025-01-11 07:53:19] Production.INFO: ProcessCDR(1,14222857,1,1,2) [2025-01-11 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222857', 'tblTempUsageDetail_20' ) start [2025-01-11 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222857', 'tblTempUsageDetail_20' ) end [2025-01-11 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:53:22] Production.INFO: ==21047== Releasing lock... [2025-01-11 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:53:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:54:05 [end_date_ymd] => 2025-01-11 07:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:54:05' and `end` < '2025-01-11 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-11 07:54:18] Production.INFO: count ==41 [2025-01-11 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:54:05 - End Time 2025-01-11 07:54:05 [2025-01-11 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222862', 'tblTempUsageDetail_20' ) start [2025-01-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222862', 'tblTempUsageDetail_20' ) end [2025-01-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222862', 'tblTempVendorCDR_20' ) start [2025-01-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222862', 'tblTempVendorCDR_20' ) end [2025-01-11 07:54:18] Production.INFO: ProcessCDR(1,14222862,1,1,2) [2025-01-11 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222862', 'tblTempUsageDetail_20' ) start [2025-01-11 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222862', 'tblTempUsageDetail_20' ) end [2025-01-11 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:54:21] Production.INFO: ==21118== Releasing lock... [2025-01-11 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:54:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:55:06 [end_date_ymd] => 2025-01-11 07:55:06 [RateCDR] => 1 ) [2025-01-11 07: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-11 04:55:06' and `end` < '2025-01-11 07: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-11 07:55:19] Production.INFO: count ==41 [2025-01-11 07:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 04:55:06 - End Time 2025-01-11 07:55:06 [2025-01-11 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222867', 'tblTempUsageDetail_20' ) start [2025-01-11 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222867', 'tblTempUsageDetail_20' ) end [2025-01-11 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222867', 'tblTempVendorCDR_20' ) start [2025-01-11 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222867', 'tblTempVendorCDR_20' ) end [2025-01-11 07:55:19] Production.INFO: ProcessCDR(1,14222867,1,1,2) [2025-01-11 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222867', 'tblTempUsageDetail_20' ) start [2025-01-11 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222867', 'tblTempUsageDetail_20' ) end [2025-01-11 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:55:22] Production.INFO: ==21189== Releasing lock... [2025-01-11 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:55:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:56:05 [end_date_ymd] => 2025-01-11 07:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:56:05' and `end` < '2025-01-11 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-11 07:56:18] Production.INFO: count ==41 [2025-01-11 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:56:05 - End Time 2025-01-11 07:56:05 [2025-01-11 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222872', 'tblTempUsageDetail_20' ) start [2025-01-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222872', 'tblTempUsageDetail_20' ) end [2025-01-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222872', 'tblTempVendorCDR_20' ) start [2025-01-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222872', 'tblTempVendorCDR_20' ) end [2025-01-11 07:56:18] Production.INFO: ProcessCDR(1,14222872,1,1,2) [2025-01-11 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222872', 'tblTempUsageDetail_20' ) start [2025-01-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222872', 'tblTempUsageDetail_20' ) end [2025-01-11 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:56:21] Production.INFO: ==21262== Releasing lock... [2025-01-11 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:57:04 [end_date_ymd] => 2025-01-11 07:57:04 [RateCDR] => 1 ) [2025-01-11 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-11 04:57:04' and `end` < '2025-01-11 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-11 07:57:18] Production.INFO: count ==41 [2025-01-11 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:57:04 - End Time 2025-01-11 07:57:04 [2025-01-11 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222877', 'tblTempUsageDetail_20' ) start [2025-01-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222877', 'tblTempUsageDetail_20' ) end [2025-01-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222877', 'tblTempVendorCDR_20' ) start [2025-01-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222877', 'tblTempVendorCDR_20' ) end [2025-01-11 07:57:18] Production.INFO: ProcessCDR(1,14222877,1,1,2) [2025-01-11 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222877', 'tblTempUsageDetail_20' ) start [2025-01-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222877', 'tblTempUsageDetail_20' ) end [2025-01-11 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:57:21] Production.INFO: ==21338== Releasing lock... [2025-01-11 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:58:05 [end_date_ymd] => 2025-01-11 07:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 04:58:05' and `end` < '2025-01-11 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-11 07:58:18] Production.INFO: count ==41 [2025-01-11 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 04:58:05 - End Time 2025-01-11 07:58:05 [2025-01-11 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222882', 'tblTempUsageDetail_20' ) start [2025-01-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222882', 'tblTempUsageDetail_20' ) end [2025-01-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222882', 'tblTempVendorCDR_20' ) start [2025-01-11 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222882', 'tblTempVendorCDR_20' ) end [2025-01-11 07:58:18] Production.INFO: ProcessCDR(1,14222882,1,1,2) [2025-01-11 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222882', 'tblTempUsageDetail_20' ) start [2025-01-11 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222882', 'tblTempUsageDetail_20' ) end [2025-01-11 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:58:22] Production.INFO: ==21409== Releasing lock... [2025-01-11 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:58:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 04:59:06 [end_date_ymd] => 2025-01-11 07:59:06 [RateCDR] => 1 ) [2025-01-11 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 04:59:06' and `end` < '2025-01-11 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 07:59:20] Production.INFO: count ==41 [2025-01-11 07:59:20] Production.ERROR: pbx CDR StartTime 2025-01-11 04:59:06 - End Time 2025-01-11 07:59:06 [2025-01-11 07:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222887', 'tblTempUsageDetail_20' ) start [2025-01-11 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222887', 'tblTempUsageDetail_20' ) end [2025-01-11 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222887', 'tblTempVendorCDR_20' ) start [2025-01-11 07:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222887', 'tblTempVendorCDR_20' ) end [2025-01-11 07:59:20] Production.INFO: ProcessCDR(1,14222887,1,1,2) [2025-01-11 07:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222887', 'tblTempUsageDetail_20' ) start [2025-01-11 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222887', 'tblTempUsageDetail_20' ) end [2025-01-11 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 07:59:23] Production.INFO: ==21479== Releasing lock... [2025-01-11 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 07:59:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:00:05 [end_date_ymd] => 2025-01-11 08:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:00:05' and `end` < '2025-01-11 08: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-11 08:00:19] Production.INFO: count ==46 [2025-01-11 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:00:05 - End Time 2025-01-11 08:00:05 [2025-01-11 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222892', 'tblTempUsageDetail_20' ) start [2025-01-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222892', 'tblTempUsageDetail_20' ) end [2025-01-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222892', 'tblTempVendorCDR_20' ) start [2025-01-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222892', 'tblTempVendorCDR_20' ) end [2025-01-11 08:00:19] Production.INFO: ProcessCDR(1,14222892,1,1,2) [2025-01-11 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222892', 'tblTempUsageDetail_20' ) start [2025-01-11 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222892', 'tblTempUsageDetail_20' ) end [2025-01-11 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:00:23] Production.INFO: ==21555== Releasing lock... [2025-01-11 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:00:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:01:05 [end_date_ymd] => 2025-01-11 08:01:05 [RateCDR] => 1 ) [2025-01-11 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:01:05' and `end` < '2025-01-11 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:01:20] Production.INFO: count ==47 [2025-01-11 08:01:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:01:05 - End Time 2025-01-11 08:01:05 [2025-01-11 08:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222898', 'tblTempUsageDetail_20' ) start [2025-01-11 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222898', 'tblTempUsageDetail_20' ) end [2025-01-11 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222898', 'tblTempVendorCDR_20' ) start [2025-01-11 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222898', 'tblTempVendorCDR_20' ) end [2025-01-11 08:01:20] Production.INFO: ProcessCDR(1,14222898,1,1,2) [2025-01-11 08:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222898', 'tblTempUsageDetail_20' ) start [2025-01-11 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222898', 'tblTempUsageDetail_20' ) end [2025-01-11 08:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:01:24] Production.INFO: ==21639== Releasing lock... [2025-01-11 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:01:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:02:05 [end_date_ymd] => 2025-01-11 08:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:02:05' and `end` < '2025-01-11 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-11 08:02:19] Production.INFO: count ==47 [2025-01-11 08:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:02:05 - End Time 2025-01-11 08:02:05 [2025-01-11 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222903', 'tblTempUsageDetail_20' ) start [2025-01-11 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222903', 'tblTempUsageDetail_20' ) end [2025-01-11 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222903', 'tblTempVendorCDR_20' ) start [2025-01-11 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222903', 'tblTempVendorCDR_20' ) end [2025-01-11 08:02:19] Production.INFO: ProcessCDR(1,14222903,1,1,2) [2025-01-11 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222903', 'tblTempUsageDetail_20' ) start [2025-01-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222903', 'tblTempUsageDetail_20' ) end [2025-01-11 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:02:22] Production.INFO: ==21712== Releasing lock... [2025-01-11 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:02:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:03:05 [end_date_ymd] => 2025-01-11 08:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:03:05' and `end` < '2025-01-11 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-11 08:03:19] Production.INFO: count ==46 [2025-01-11 08:03:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:03:05 - End Time 2025-01-11 08:03:05 [2025-01-11 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222908', 'tblTempUsageDetail_20' ) start [2025-01-11 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222908', 'tblTempUsageDetail_20' ) end [2025-01-11 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222908', 'tblTempVendorCDR_20' ) start [2025-01-11 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222908', 'tblTempVendorCDR_20' ) end [2025-01-11 08:03:19] Production.INFO: ProcessCDR(1,14222908,1,1,2) [2025-01-11 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222908', 'tblTempUsageDetail_20' ) start [2025-01-11 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222908', 'tblTempUsageDetail_20' ) end [2025-01-11 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:03:22] Production.INFO: ==21786== Releasing lock... [2025-01-11 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:04:05 [end_date_ymd] => 2025-01-11 08:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:04:05' and `end` < '2025-01-11 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-11 08:04:18] Production.INFO: count ==46 [2025-01-11 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:04:05 - End Time 2025-01-11 08:04:05 [2025-01-11 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222913', 'tblTempUsageDetail_20' ) start [2025-01-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222913', 'tblTempUsageDetail_20' ) end [2025-01-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222913', 'tblTempVendorCDR_20' ) start [2025-01-11 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222913', 'tblTempVendorCDR_20' ) end [2025-01-11 08:04:18] Production.INFO: ProcessCDR(1,14222913,1,1,2) [2025-01-11 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222913', 'tblTempUsageDetail_20' ) start [2025-01-11 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222913', 'tblTempUsageDetail_20' ) end [2025-01-11 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:04:21] Production.INFO: ==21919== Releasing lock... [2025-01-11 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:05:05 [end_date_ymd] => 2025-01-11 08:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:05:05' and `end` < '2025-01-11 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-11 08:05:18] Production.INFO: count ==46 [2025-01-11 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:05:05 - End Time 2025-01-11 08:05:05 [2025-01-11 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222917', 'tblTempUsageDetail_20' ) start [2025-01-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222917', 'tblTempUsageDetail_20' ) end [2025-01-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222917', 'tblTempVendorCDR_20' ) start [2025-01-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222917', 'tblTempVendorCDR_20' ) end [2025-01-11 08:05:18] Production.INFO: ProcessCDR(1,14222917,1,1,2) [2025-01-11 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222917', 'tblTempUsageDetail_20' ) start [2025-01-11 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222917', 'tblTempUsageDetail_20' ) end [2025-01-11 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:05:21] Production.INFO: ==22037== Releasing lock... [2025-01-11 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-11 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:06:05 [end_date_ymd] => 2025-01-11 08:06:05 [RateCDR] => 1 ) [2025-01-11 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:06:05' and `end` < '2025-01-11 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:06:18] Production.INFO: count ==53 [2025-01-11 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:06:05 - End Time 2025-01-11 08:06:05 [2025-01-11 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222923', 'tblTempUsageDetail_20' ) start [2025-01-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222923', 'tblTempUsageDetail_20' ) end [2025-01-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222923', 'tblTempVendorCDR_20' ) start [2025-01-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222923', 'tblTempVendorCDR_20' ) end [2025-01-11 08:06:18] Production.INFO: ProcessCDR(1,14222923,1,1,2) [2025-01-11 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222923', 'tblTempUsageDetail_20' ) start [2025-01-11 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222923', 'tblTempUsageDetail_20' ) end [2025-01-11 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:06:22] Production.INFO: ==22156== Releasing lock... [2025-01-11 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-11 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:07:05 [end_date_ymd] => 2025-01-11 08:07:05 [RateCDR] => 1 ) [2025-01-11 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:07:05' and `end` < '2025-01-11 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:07:19] Production.INFO: count ==72 [2025-01-11 08:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:07:05 - End Time 2025-01-11 08:07:05 [2025-01-11 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222928', 'tblTempUsageDetail_20' ) start [2025-01-11 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222928', 'tblTempUsageDetail_20' ) end [2025-01-11 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222928', 'tblTempVendorCDR_20' ) start [2025-01-11 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222928', 'tblTempVendorCDR_20' ) end [2025-01-11 08:07:19] Production.INFO: ProcessCDR(1,14222928,1,1,2) [2025-01-11 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222928', 'tblTempUsageDetail_20' ) start [2025-01-11 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222928', 'tblTempUsageDetail_20' ) end [2025-01-11 08:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:07:24] Production.INFO: ==22281== Releasing lock... [2025-01-11 08:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:07:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:08:04 [end_date_ymd] => 2025-01-11 08:08:04 [RateCDR] => 1 ) [2025-01-11 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-11 05:08:04' and `end` < '2025-01-11 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-11 08:08:18] Production.INFO: count ==72 [2025-01-11 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:08:04 - End Time 2025-01-11 08:08:04 [2025-01-11 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222933', 'tblTempUsageDetail_20' ) start [2025-01-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222933', 'tblTempUsageDetail_20' ) end [2025-01-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222933', 'tblTempVendorCDR_20' ) start [2025-01-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222933', 'tblTempVendorCDR_20' ) end [2025-01-11 08:08:18] Production.INFO: ProcessCDR(1,14222933,1,1,2) [2025-01-11 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222933', 'tblTempUsageDetail_20' ) start [2025-01-11 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222933', 'tblTempUsageDetail_20' ) end [2025-01-11 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:08:21] Production.INFO: ==22407== Releasing lock... [2025-01-11 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:09:05 [end_date_ymd] => 2025-01-11 08:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:09:05' and `end` < '2025-01-11 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-11 08:09:19] Production.INFO: count ==77 [2025-01-11 08:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:09:05 - End Time 2025-01-11 08:09:05 [2025-01-11 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222938', 'tblTempUsageDetail_20' ) start [2025-01-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222938', 'tblTempUsageDetail_20' ) end [2025-01-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222938', 'tblTempVendorCDR_20' ) start [2025-01-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222938', 'tblTempVendorCDR_20' ) end [2025-01-11 08:09:19] Production.INFO: ProcessCDR(1,14222938,1,1,2) [2025-01-11 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222938', 'tblTempUsageDetail_20' ) start [2025-01-11 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222938', 'tblTempUsageDetail_20' ) end [2025-01-11 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:09:22] Production.INFO: ==22534== Releasing lock... [2025-01-11 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:10:04 [end_date_ymd] => 2025-01-11 08:10:04 [RateCDR] => 1 ) [2025-01-11 08:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:10:04' and `end` < '2025-01-11 08:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:10:18] Production.INFO: count ==77 [2025-01-11 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:10:04 - End Time 2025-01-11 08:10:04 [2025-01-11 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222943', 'tblTempUsageDetail_20' ) start [2025-01-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222943', 'tblTempUsageDetail_20' ) end [2025-01-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222943', 'tblTempVendorCDR_20' ) start [2025-01-11 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222943', 'tblTempVendorCDR_20' ) end [2025-01-11 08:10:18] Production.INFO: ProcessCDR(1,14222943,1,1,2) [2025-01-11 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222943', 'tblTempUsageDetail_20' ) start [2025-01-11 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222943', 'tblTempUsageDetail_20' ) end [2025-01-11 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:10:21] Production.INFO: ==22664== Releasing lock... [2025-01-11 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:11:05 [end_date_ymd] => 2025-01-11 08:11:05 [RateCDR] => 1 ) [2025-01-11 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:11:05' and `end` < '2025-01-11 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:11:20] Production.INFO: count ==78 [2025-01-11 08:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:11:05 - End Time 2025-01-11 08:11:05 [2025-01-11 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222949', 'tblTempUsageDetail_20' ) start [2025-01-11 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222949', 'tblTempUsageDetail_20' ) end [2025-01-11 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222949', 'tblTempVendorCDR_20' ) start [2025-01-11 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222949', 'tblTempVendorCDR_20' ) end [2025-01-11 08:11:20] Production.INFO: ProcessCDR(1,14222949,1,1,2) [2025-01-11 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222949', 'tblTempUsageDetail_20' ) start [2025-01-11 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222949', 'tblTempUsageDetail_20' ) end [2025-01-11 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:11:23] Production.INFO: ==22793== Releasing lock... [2025-01-11 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:11:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:12:05 [end_date_ymd] => 2025-01-11 08:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:12:05' and `end` < '2025-01-11 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-11 08:12:19] Production.INFO: count ==83 [2025-01-11 08:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:12:05 - End Time 2025-01-11 08:12:05 [2025-01-11 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222954', 'tblTempUsageDetail_20' ) start [2025-01-11 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222954', 'tblTempUsageDetail_20' ) end [2025-01-11 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222954', 'tblTempVendorCDR_20' ) start [2025-01-11 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222954', 'tblTempVendorCDR_20' ) end [2025-01-11 08:12:19] Production.INFO: ProcessCDR(1,14222954,1,1,2) [2025-01-11 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222954', 'tblTempUsageDetail_20' ) start [2025-01-11 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222954', 'tblTempUsageDetail_20' ) end [2025-01-11 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:12:22] Production.INFO: ==22914== Releasing lock... [2025-01-11 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:13:04 [end_date_ymd] => 2025-01-11 08:13:04 [RateCDR] => 1 ) [2025-01-11 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-11 05:13:04' and `end` < '2025-01-11 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-11 08:13:18] Production.INFO: count ==83 [2025-01-11 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:13:04 - End Time 2025-01-11 08:13:04 [2025-01-11 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222959', 'tblTempUsageDetail_20' ) start [2025-01-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222959', 'tblTempUsageDetail_20' ) end [2025-01-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222959', 'tblTempVendorCDR_20' ) start [2025-01-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222959', 'tblTempVendorCDR_20' ) end [2025-01-11 08:13:18] Production.INFO: ProcessCDR(1,14222959,1,1,2) [2025-01-11 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222959', 'tblTempUsageDetail_20' ) start [2025-01-11 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222959', 'tblTempUsageDetail_20' ) end [2025-01-11 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:13:21] Production.INFO: ==23037== Releasing lock... [2025-01-11 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:14:05 [end_date_ymd] => 2025-01-11 08:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:14:05' and `end` < '2025-01-11 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-11 08:14:19] Production.INFO: count ==83 [2025-01-11 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:14:05 - End Time 2025-01-11 08:14:05 [2025-01-11 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222964', 'tblTempUsageDetail_20' ) start [2025-01-11 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222964', 'tblTempUsageDetail_20' ) end [2025-01-11 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222964', 'tblTempVendorCDR_20' ) start [2025-01-11 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222964', 'tblTempVendorCDR_20' ) end [2025-01-11 08:14:19] Production.INFO: ProcessCDR(1,14222964,1,1,2) [2025-01-11 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222964', 'tblTempUsageDetail_20' ) start [2025-01-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222964', 'tblTempUsageDetail_20' ) end [2025-01-11 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:14:22] Production.INFO: ==23166== Releasing lock... [2025-01-11 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:15:05 [end_date_ymd] => 2025-01-11 08:15:05 [RateCDR] => 1 ) [2025-01-11 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:15:05' and `end` < '2025-01-11 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:15:18] Production.INFO: count ==83 [2025-01-11 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:15:05 - End Time 2025-01-11 08:15:05 [2025-01-11 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222969', 'tblTempUsageDetail_20' ) start [2025-01-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222969', 'tblTempUsageDetail_20' ) end [2025-01-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222969', 'tblTempVendorCDR_20' ) start [2025-01-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222969', 'tblTempVendorCDR_20' ) end [2025-01-11 08:15:18] Production.INFO: ProcessCDR(1,14222969,1,1,2) [2025-01-11 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222969', 'tblTempUsageDetail_20' ) start [2025-01-11 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222969', 'tblTempUsageDetail_20' ) end [2025-01-11 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:15:21] Production.INFO: ==23292== Releasing lock... [2025-01-11 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:16:05 [end_date_ymd] => 2025-01-11 08:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:16:05' and `end` < '2025-01-11 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-11 08:16:18] Production.INFO: count ==83 [2025-01-11 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:16:05 - End Time 2025-01-11 08:16:05 [2025-01-11 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222974', 'tblTempUsageDetail_20' ) start [2025-01-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222974', 'tblTempUsageDetail_20' ) end [2025-01-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222974', 'tblTempVendorCDR_20' ) start [2025-01-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222974', 'tblTempVendorCDR_20' ) end [2025-01-11 08:16:18] Production.INFO: ProcessCDR(1,14222974,1,1,2) [2025-01-11 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222974', 'tblTempUsageDetail_20' ) start [2025-01-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222974', 'tblTempUsageDetail_20' ) end [2025-01-11 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:16:21] Production.INFO: ==23416== Releasing lock... [2025-01-11 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:17:05 [end_date_ymd] => 2025-01-11 08:17:05 [RateCDR] => 1 ) [2025-01-11 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:17:05' and `end` < '2025-01-11 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:17:19] Production.INFO: count ==85 [2025-01-11 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:17:05 - End Time 2025-01-11 08:17:05 [2025-01-11 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222979', 'tblTempUsageDetail_20' ) start [2025-01-11 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222979', 'tblTempUsageDetail_20' ) end [2025-01-11 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222979', 'tblTempVendorCDR_20' ) start [2025-01-11 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222979', 'tblTempVendorCDR_20' ) end [2025-01-11 08:17:19] Production.INFO: ProcessCDR(1,14222979,1,1,2) [2025-01-11 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222979', 'tblTempUsageDetail_20' ) start [2025-01-11 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222979', 'tblTempUsageDetail_20' ) end [2025-01-11 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:17:23] Production.INFO: ==23538== Releasing lock... [2025-01-11 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:17:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:18:04 [end_date_ymd] => 2025-01-11 08:18:04 [RateCDR] => 1 ) [2025-01-11 08:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:18:04' and `end` < '2025-01-11 08:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:18:19] Production.INFO: count ==85 [2025-01-11 08:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:18:04 - End Time 2025-01-11 08:18:04 [2025-01-11 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222984', 'tblTempUsageDetail_20' ) start [2025-01-11 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222984', 'tblTempUsageDetail_20' ) end [2025-01-11 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222984', 'tblTempVendorCDR_20' ) start [2025-01-11 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222984', 'tblTempVendorCDR_20' ) end [2025-01-11 08:18:19] Production.INFO: ProcessCDR(1,14222984,1,1,2) [2025-01-11 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222984', 'tblTempUsageDetail_20' ) start [2025-01-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222984', 'tblTempUsageDetail_20' ) end [2025-01-11 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:18:22] Production.INFO: ==23669== Releasing lock... [2025-01-11 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:19:05 [end_date_ymd] => 2025-01-11 08:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:19:05' and `end` < '2025-01-11 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-11 08:19:19] Production.INFO: count ==85 [2025-01-11 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:19:05 - End Time 2025-01-11 08:19:05 [2025-01-11 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222989', 'tblTempUsageDetail_20' ) start [2025-01-11 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222989', 'tblTempUsageDetail_20' ) end [2025-01-11 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222989', 'tblTempVendorCDR_20' ) start [2025-01-11 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222989', 'tblTempVendorCDR_20' ) end [2025-01-11 08:19:19] Production.INFO: ProcessCDR(1,14222989,1,1,2) [2025-01-11 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222989', 'tblTempUsageDetail_20' ) start [2025-01-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222989', 'tblTempUsageDetail_20' ) end [2025-01-11 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:19:22] Production.INFO: ==23830== Releasing lock... [2025-01-11 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:20:05 [end_date_ymd] => 2025-01-11 08:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:20:05' and `end` < '2025-01-11 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-11 08:20:18] Production.INFO: count ==94 [2025-01-11 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:20:05 - End Time 2025-01-11 08:20:05 [2025-01-11 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222995', 'tblTempUsageDetail_20' ) start [2025-01-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14222995', 'tblTempUsageDetail_20' ) end [2025-01-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222995', 'tblTempVendorCDR_20' ) start [2025-01-11 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14222995', 'tblTempVendorCDR_20' ) end [2025-01-11 08:20:18] Production.INFO: ProcessCDR(1,14222995,1,1,2) [2025-01-11 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14222995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14222995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14222995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14222995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222995', 'tblTempUsageDetail_20' ) start [2025-01-11 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14222995', 'tblTempUsageDetail_20' ) end [2025-01-11 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:20:21] Production.INFO: ==23937== Releasing lock... [2025-01-11 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-11 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:21:05 [end_date_ymd] => 2025-01-11 08:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:21:05' and `end` < '2025-01-11 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-11 08:21:18] Production.INFO: count ==98 [2025-01-11 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:21:05 - End Time 2025-01-11 08:21:05 [2025-01-11 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223000', 'tblTempUsageDetail_20' ) start [2025-01-11 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223000', 'tblTempUsageDetail_20' ) end [2025-01-11 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223000', 'tblTempVendorCDR_20' ) start [2025-01-11 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223000', 'tblTempVendorCDR_20' ) end [2025-01-11 08:21:18] Production.INFO: ProcessCDR(1,14223000,1,1,2) [2025-01-11 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223000', 'tblTempUsageDetail_20' ) start [2025-01-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223000', 'tblTempUsageDetail_20' ) end [2025-01-11 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:21:21] Production.INFO: ==24011== Releasing lock... [2025-01-11 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:22:05 [end_date_ymd] => 2025-01-11 08:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:22:05' and `end` < '2025-01-11 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-11 08:22:22] Production.INFO: count ==107 [2025-01-11 08:22:22] Production.ERROR: pbx CDR StartTime 2025-01-11 05:22:05 - End Time 2025-01-11 08:22:05 [2025-01-11 08:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223005', 'tblTempUsageDetail_20' ) start [2025-01-11 08:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223005', 'tblTempUsageDetail_20' ) end [2025-01-11 08:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223005', 'tblTempVendorCDR_20' ) start [2025-01-11 08:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223005', 'tblTempVendorCDR_20' ) end [2025-01-11 08:22:22] Production.INFO: ProcessCDR(1,14223005,1,1,2) [2025-01-11 08:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223005', 'tblTempUsageDetail_20' ) start [2025-01-11 08:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223005', 'tblTempUsageDetail_20' ) end [2025-01-11 08:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:22:25] Production.INFO: ==24082== Releasing lock... [2025-01-11 08:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:22:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:23:05 [end_date_ymd] => 2025-01-11 08:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:23:05' and `end` < '2025-01-11 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-11 08:23:18] Production.INFO: count ==109 [2025-01-11 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:23:05 - End Time 2025-01-11 08:23:05 [2025-01-11 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223010', 'tblTempUsageDetail_20' ) start [2025-01-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223010', 'tblTempUsageDetail_20' ) end [2025-01-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223010', 'tblTempVendorCDR_20' ) start [2025-01-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223010', 'tblTempVendorCDR_20' ) end [2025-01-11 08:23:18] Production.INFO: ProcessCDR(1,14223010,1,1,2) [2025-01-11 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223010', 'tblTempUsageDetail_20' ) start [2025-01-11 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223010', 'tblTempUsageDetail_20' ) end [2025-01-11 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:23:22] Production.INFO: ==24162== Releasing lock... [2025-01-11 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:24:05 [end_date_ymd] => 2025-01-11 08:24:05 [RateCDR] => 1 ) [2025-01-11 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:24:05' and `end` < '2025-01-11 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:24:19] Production.INFO: count ==110 [2025-01-11 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:24:05 - End Time 2025-01-11 08:24:05 [2025-01-11 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223015', 'tblTempUsageDetail_20' ) start [2025-01-11 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223015', 'tblTempUsageDetail_20' ) end [2025-01-11 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223015', 'tblTempVendorCDR_20' ) start [2025-01-11 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223015', 'tblTempVendorCDR_20' ) end [2025-01-11 08:24:19] Production.INFO: ProcessCDR(1,14223015,1,1,2) [2025-01-11 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223015', 'tblTempUsageDetail_20' ) start [2025-01-11 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223015', 'tblTempUsageDetail_20' ) end [2025-01-11 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:24:22] Production.INFO: ==24231== Releasing lock... [2025-01-11 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-11 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:25:05 [end_date_ymd] => 2025-01-11 08:25:05 [RateCDR] => 1 ) [2025-01-11 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:25:05' and `end` < '2025-01-11 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:25:20] Production.INFO: count ==115 [2025-01-11 08:25:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:25:05 - End Time 2025-01-11 08:25:05 [2025-01-11 08:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223020', 'tblTempUsageDetail_20' ) start [2025-01-11 08:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223020', 'tblTempUsageDetail_20' ) end [2025-01-11 08:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223020', 'tblTempVendorCDR_20' ) start [2025-01-11 08:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223020', 'tblTempVendorCDR_20' ) end [2025-01-11 08:25:20] Production.INFO: ProcessCDR(1,14223020,1,1,2) [2025-01-11 08:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223020', 'tblTempUsageDetail_20' ) start [2025-01-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223020', 'tblTempUsageDetail_20' ) end [2025-01-11 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:25:23] Production.INFO: ==24306== Releasing lock... [2025-01-11 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:26:04 [end_date_ymd] => 2025-01-11 08:26:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:26:04' and `end` < '2025-01-11 08: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-11 08:26:17] Production.INFO: count ==115 [2025-01-11 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-11 05:26:04 - End Time 2025-01-11 08:26:04 [2025-01-11 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223025', 'tblTempUsageDetail_20' ) start [2025-01-11 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223025', 'tblTempUsageDetail_20' ) end [2025-01-11 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223025', 'tblTempVendorCDR_20' ) start [2025-01-11 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223025', 'tblTempVendorCDR_20' ) end [2025-01-11 08:26:17] Production.INFO: ProcessCDR(1,14223025,1,1,2) [2025-01-11 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223025', 'tblTempUsageDetail_20' ) start [2025-01-11 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223025', 'tblTempUsageDetail_20' ) end [2025-01-11 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:26:21] Production.INFO: ==24384== Releasing lock... [2025-01-11 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:27:05 [end_date_ymd] => 2025-01-11 08:27:05 [RateCDR] => 1 ) [2025-01-11 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:27:05' and `end` < '2025-01-11 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:27:18] Production.INFO: count ==115 [2025-01-11 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:27:05 - End Time 2025-01-11 08:27:05 [2025-01-11 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223030', 'tblTempUsageDetail_20' ) start [2025-01-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223030', 'tblTempUsageDetail_20' ) end [2025-01-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223030', 'tblTempVendorCDR_20' ) start [2025-01-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223030', 'tblTempVendorCDR_20' ) end [2025-01-11 08:27:18] Production.INFO: ProcessCDR(1,14223030,1,1,2) [2025-01-11 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223030', 'tblTempUsageDetail_20' ) start [2025-01-11 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223030', 'tblTempUsageDetail_20' ) end [2025-01-11 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:27:22] Production.INFO: ==24464== Releasing lock... [2025-01-11 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:28:04 [end_date_ymd] => 2025-01-11 08:28:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:28:04' and `end` < '2025-01-11 08: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-11 08:28:19] Production.INFO: count ==115 [2025-01-11 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:28:04 - End Time 2025-01-11 08:28:04 [2025-01-11 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223035', 'tblTempUsageDetail_20' ) start [2025-01-11 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223035', 'tblTempUsageDetail_20' ) end [2025-01-11 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223035', 'tblTempVendorCDR_20' ) start [2025-01-11 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223035', 'tblTempVendorCDR_20' ) end [2025-01-11 08:28:19] Production.INFO: ProcessCDR(1,14223035,1,1,2) [2025-01-11 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223035', 'tblTempUsageDetail_20' ) start [2025-01-11 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223035', 'tblTempUsageDetail_20' ) end [2025-01-11 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:28:22] Production.INFO: ==24549== Releasing lock... [2025-01-11 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:29:05 [end_date_ymd] => 2025-01-11 08:29:05 [RateCDR] => 1 ) [2025-01-11 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:29:05' and `end` < '2025-01-11 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:29:19] Production.INFO: count ==115 [2025-01-11 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:29:05 - End Time 2025-01-11 08:29:05 [2025-01-11 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223040', 'tblTempUsageDetail_20' ) start [2025-01-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223040', 'tblTempUsageDetail_20' ) end [2025-01-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223040', 'tblTempVendorCDR_20' ) start [2025-01-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223040', 'tblTempVendorCDR_20' ) end [2025-01-11 08:29:19] Production.INFO: ProcessCDR(1,14223040,1,1,2) [2025-01-11 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223040', 'tblTempUsageDetail_20' ) start [2025-01-11 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223040', 'tblTempUsageDetail_20' ) end [2025-01-11 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:29:22] Production.INFO: ==24636== Releasing lock... [2025-01-11 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:30:05 [end_date_ymd] => 2025-01-11 08:30:05 [RateCDR] => 1 ) [2025-01-11 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:30:05' and `end` < '2025-01-11 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:30:19] Production.INFO: count ==117 [2025-01-11 08:30:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:30:05 - End Time 2025-01-11 08:30:05 [2025-01-11 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223045', 'tblTempUsageDetail_20' ) start [2025-01-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223045', 'tblTempUsageDetail_20' ) end [2025-01-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223045', 'tblTempVendorCDR_20' ) start [2025-01-11 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223045', 'tblTempVendorCDR_20' ) end [2025-01-11 08:30:20] Production.INFO: ProcessCDR(1,14223045,1,1,2) [2025-01-11 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223045', 'tblTempUsageDetail_20' ) start [2025-01-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223045', 'tblTempUsageDetail_20' ) end [2025-01-11 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:30:23] Production.INFO: ==24725== Releasing lock... [2025-01-11 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:31:04 [end_date_ymd] => 2025-01-11 08:31:04 [RateCDR] => 1 ) [2025-01-11 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-11 05:31:04' and `end` < '2025-01-11 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-11 08:31:19] Production.INFO: count ==118 [2025-01-11 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:31:04 - End Time 2025-01-11 08:31:04 [2025-01-11 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223051', 'tblTempUsageDetail_20' ) start [2025-01-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223051', 'tblTempUsageDetail_20' ) end [2025-01-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223051', 'tblTempVendorCDR_20' ) start [2025-01-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223051', 'tblTempVendorCDR_20' ) end [2025-01-11 08:31:19] Production.INFO: ProcessCDR(1,14223051,1,1,2) [2025-01-11 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223051', 'tblTempUsageDetail_20' ) start [2025-01-11 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223051', 'tblTempUsageDetail_20' ) end [2025-01-11 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:31:22] Production.INFO: ==24808== Releasing lock... [2025-01-11 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:32:05 [end_date_ymd] => 2025-01-11 08:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:32:05' and `end` < '2025-01-11 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-11 08:32:19] Production.INFO: count ==118 [2025-01-11 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:32:05 - End Time 2025-01-11 08:32:05 [2025-01-11 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223056', 'tblTempUsageDetail_20' ) start [2025-01-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223056', 'tblTempUsageDetail_20' ) end [2025-01-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223056', 'tblTempVendorCDR_20' ) start [2025-01-11 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223056', 'tblTempVendorCDR_20' ) end [2025-01-11 08:32:19] Production.INFO: ProcessCDR(1,14223056,1,1,2) [2025-01-11 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223056', 'tblTempUsageDetail_20' ) start [2025-01-11 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223056', 'tblTempUsageDetail_20' ) end [2025-01-11 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:32:22] Production.INFO: ==24891== Releasing lock... [2025-01-11 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:33:04 [end_date_ymd] => 2025-01-11 08:33:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:33:04' and `end` < '2025-01-11 08: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-11 08:33:17] Production.INFO: count ==118 [2025-01-11 08:33:17] Production.ERROR: pbx CDR StartTime 2025-01-11 05:33:04 - End Time 2025-01-11 08:33:04 [2025-01-11 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223061', 'tblTempUsageDetail_20' ) start [2025-01-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223061', 'tblTempUsageDetail_20' ) end [2025-01-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223061', 'tblTempVendorCDR_20' ) start [2025-01-11 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223061', 'tblTempVendorCDR_20' ) end [2025-01-11 08:33:17] Production.INFO: ProcessCDR(1,14223061,1,1,2) [2025-01-11 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223061', 'tblTempUsageDetail_20' ) start [2025-01-11 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223061', 'tblTempUsageDetail_20' ) end [2025-01-11 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:33:21] Production.INFO: ==24975== Releasing lock... [2025-01-11 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:34:05 [end_date_ymd] => 2025-01-11 08:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:34:05' and `end` < '2025-01-11 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-11 08:34:20] Production.INFO: count ==118 [2025-01-11 08:34:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:34:05 - End Time 2025-01-11 08:34:05 [2025-01-11 08:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223066', 'tblTempUsageDetail_20' ) start [2025-01-11 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223066', 'tblTempUsageDetail_20' ) end [2025-01-11 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223066', 'tblTempVendorCDR_20' ) start [2025-01-11 08:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223066', 'tblTempVendorCDR_20' ) end [2025-01-11 08:34:20] Production.INFO: ProcessCDR(1,14223066,1,1,2) [2025-01-11 08:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223066', 'tblTempUsageDetail_20' ) start [2025-01-11 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223066', 'tblTempUsageDetail_20' ) end [2025-01-11 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:34:23] Production.INFO: ==25060== Releasing lock... [2025-01-11 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:34:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:35:05 [end_date_ymd] => 2025-01-11 08:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:35:05' and `end` < '2025-01-11 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-11 08:35:18] Production.INFO: count ==118 [2025-01-11 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:35:05 - End Time 2025-01-11 08:35:05 [2025-01-11 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223071', 'tblTempUsageDetail_20' ) start [2025-01-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223071', 'tblTempUsageDetail_20' ) end [2025-01-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223071', 'tblTempVendorCDR_20' ) start [2025-01-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223071', 'tblTempVendorCDR_20' ) end [2025-01-11 08:35:18] Production.INFO: ProcessCDR(1,14223071,1,1,2) [2025-01-11 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223071', 'tblTempUsageDetail_20' ) start [2025-01-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223071', 'tblTempUsageDetail_20' ) end [2025-01-11 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:35:21] Production.INFO: ==25182== Releasing lock... [2025-01-11 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:36:05 [end_date_ymd] => 2025-01-11 08:36:05 [RateCDR] => 1 ) [2025-01-11 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:36:05' and `end` < '2025-01-11 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:36:17] Production.INFO: count ==118 [2025-01-11 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:36:05 - End Time 2025-01-11 08:36:05 [2025-01-11 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223076', 'tblTempUsageDetail_20' ) start [2025-01-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223076', 'tblTempUsageDetail_20' ) end [2025-01-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223076', 'tblTempVendorCDR_20' ) start [2025-01-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223076', 'tblTempVendorCDR_20' ) end [2025-01-11 08:36:18] Production.INFO: ProcessCDR(1,14223076,1,1,2) [2025-01-11 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223076', 'tblTempUsageDetail_20' ) start [2025-01-11 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223076', 'tblTempUsageDetail_20' ) end [2025-01-11 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:36:21] Production.INFO: ==25278== Releasing lock... [2025-01-11 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:37:05 [end_date_ymd] => 2025-01-11 08:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:37:05' and `end` < '2025-01-11 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-11 08:37:19] Production.INFO: count ==118 [2025-01-11 08:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:37:05 - End Time 2025-01-11 08:37:05 [2025-01-11 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223081', 'tblTempUsageDetail_20' ) start [2025-01-11 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223081', 'tblTempUsageDetail_20' ) end [2025-01-11 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223081', 'tblTempVendorCDR_20' ) start [2025-01-11 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223081', 'tblTempVendorCDR_20' ) end [2025-01-11 08:37:19] Production.INFO: ProcessCDR(1,14223081,1,1,2) [2025-01-11 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223081', 'tblTempUsageDetail_20' ) start [2025-01-11 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223081', 'tblTempUsageDetail_20' ) end [2025-01-11 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:37:22] Production.INFO: ==25372== Releasing lock... [2025-01-11 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:38:05 [end_date_ymd] => 2025-01-11 08:38:05 [RateCDR] => 1 ) [2025-01-11 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:38:05' and `end` < '2025-01-11 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:38:19] Production.INFO: count ==118 [2025-01-11 08:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:38:05 - End Time 2025-01-11 08:38:05 [2025-01-11 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223086', 'tblTempUsageDetail_20' ) start [2025-01-11 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223086', 'tblTempUsageDetail_20' ) end [2025-01-11 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223086', 'tblTempVendorCDR_20' ) start [2025-01-11 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223086', 'tblTempVendorCDR_20' ) end [2025-01-11 08:38:19] Production.INFO: ProcessCDR(1,14223086,1,1,2) [2025-01-11 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223086', 'tblTempUsageDetail_20' ) start [2025-01-11 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223086', 'tblTempUsageDetail_20' ) end [2025-01-11 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:38:22] Production.INFO: ==25459== Releasing lock... [2025-01-11 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:39:05 [end_date_ymd] => 2025-01-11 08:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:39:05' and `end` < '2025-01-11 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-11 08:39:20] Production.INFO: count ==118 [2025-01-11 08:39:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:39:05 - End Time 2025-01-11 08:39:05 [2025-01-11 08:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223091', 'tblTempUsageDetail_20' ) start [2025-01-11 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223091', 'tblTempUsageDetail_20' ) end [2025-01-11 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223091', 'tblTempVendorCDR_20' ) start [2025-01-11 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223091', 'tblTempVendorCDR_20' ) end [2025-01-11 08:39:20] Production.INFO: ProcessCDR(1,14223091,1,1,2) [2025-01-11 08:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223091', 'tblTempUsageDetail_20' ) start [2025-01-11 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223091', 'tblTempUsageDetail_20' ) end [2025-01-11 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:39:23] Production.INFO: ==25537== Releasing lock... [2025-01-11 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:39:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:40:05 [end_date_ymd] => 2025-01-11 08:40:05 [RateCDR] => 1 ) [2025-01-11 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:40:05' and `end` < '2025-01-11 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-11 08:40:20] Production.INFO: count ==120 [2025-01-11 08:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:40:05 - End Time 2025-01-11 08:40:05 [2025-01-11 08:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223097', 'tblTempUsageDetail_20' ) start [2025-01-11 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223097', 'tblTempUsageDetail_20' ) end [2025-01-11 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223097', 'tblTempVendorCDR_20' ) start [2025-01-11 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223097', 'tblTempVendorCDR_20' ) end [2025-01-11 08:40:20] Production.INFO: ProcessCDR(1,14223097,1,1,2) [2025-01-11 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223097', 'tblTempUsageDetail_20' ) start [2025-01-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223097', 'tblTempUsageDetail_20' ) end [2025-01-11 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:40:23] Production.INFO: ==25621== Releasing lock... [2025-01-11 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:41:05 [end_date_ymd] => 2025-01-11 08:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:41:05' and `end` < '2025-01-11 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-11 08:41:20] Production.INFO: count ==121 [2025-01-11 08:41:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:41:05 - End Time 2025-01-11 08:41:05 [2025-01-11 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223102', 'tblTempUsageDetail_20' ) start [2025-01-11 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223102', 'tblTempUsageDetail_20' ) end [2025-01-11 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223102', 'tblTempVendorCDR_20' ) start [2025-01-11 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223102', 'tblTempVendorCDR_20' ) end [2025-01-11 08:41:20] Production.INFO: ProcessCDR(1,14223102,1,1,2) [2025-01-11 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223102', 'tblTempUsageDetail_20' ) start [2025-01-11 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223102', 'tblTempUsageDetail_20' ) end [2025-01-11 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:41:23] Production.INFO: ==25706== Releasing lock... [2025-01-11 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:41:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:42:05 [end_date_ymd] => 2025-01-11 08:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:42:05' and `end` < '2025-01-11 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-11 08:42:18] Production.INFO: count ==121 [2025-01-11 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:42:05 - End Time 2025-01-11 08:42:05 [2025-01-11 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223107', 'tblTempUsageDetail_20' ) start [2025-01-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223107', 'tblTempUsageDetail_20' ) end [2025-01-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223107', 'tblTempVendorCDR_20' ) start [2025-01-11 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223107', 'tblTempVendorCDR_20' ) end [2025-01-11 08:42:18] Production.INFO: ProcessCDR(1,14223107,1,1,2) [2025-01-11 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223107', 'tblTempUsageDetail_20' ) start [2025-01-11 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223107', 'tblTempUsageDetail_20' ) end [2025-01-11 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:42:21] Production.INFO: ==25789== Releasing lock... [2025-01-11 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:43:05 [end_date_ymd] => 2025-01-11 08:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:43:05' and `end` < '2025-01-11 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-11 08:43:18] Production.INFO: count ==121 [2025-01-11 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:43:05 - End Time 2025-01-11 08:43:05 [2025-01-11 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223112', 'tblTempUsageDetail_20' ) start [2025-01-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223112', 'tblTempUsageDetail_20' ) end [2025-01-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223112', 'tblTempVendorCDR_20' ) start [2025-01-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223112', 'tblTempVendorCDR_20' ) end [2025-01-11 08:43:18] Production.INFO: ProcessCDR(1,14223112,1,1,2) [2025-01-11 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223112', 'tblTempUsageDetail_20' ) start [2025-01-11 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223112', 'tblTempUsageDetail_20' ) end [2025-01-11 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:43:21] Production.INFO: ==25868== Releasing lock... [2025-01-11 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:44:04 [end_date_ymd] => 2025-01-11 08:44:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:44:04' and `end` < '2025-01-11 08: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-11 08:44:18] Production.INFO: count ==121 [2025-01-11 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:44:04 - End Time 2025-01-11 08:44:04 [2025-01-11 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223117', 'tblTempUsageDetail_20' ) start [2025-01-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223117', 'tblTempUsageDetail_20' ) end [2025-01-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223117', 'tblTempVendorCDR_20' ) start [2025-01-11 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223117', 'tblTempVendorCDR_20' ) end [2025-01-11 08:44:18] Production.INFO: ProcessCDR(1,14223117,1,1,2) [2025-01-11 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223117', 'tblTempUsageDetail_20' ) start [2025-01-11 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223117', 'tblTempUsageDetail_20' ) end [2025-01-11 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:44:21] Production.INFO: ==25944== Releasing lock... [2025-01-11 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:45:05 [end_date_ymd] => 2025-01-11 08:45:05 [RateCDR] => 1 ) [2025-01-11 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:45:05' and `end` < '2025-01-11 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:45:18] Production.INFO: count ==121 [2025-01-11 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:45:05 - End Time 2025-01-11 08:45:05 [2025-01-11 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223122', 'tblTempUsageDetail_20' ) start [2025-01-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223122', 'tblTempUsageDetail_20' ) end [2025-01-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223122', 'tblTempVendorCDR_20' ) start [2025-01-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223122', 'tblTempVendorCDR_20' ) end [2025-01-11 08:45:18] Production.INFO: ProcessCDR(1,14223122,1,1,2) [2025-01-11 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223122', 'tblTempUsageDetail_20' ) start [2025-01-11 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223122', 'tblTempUsageDetail_20' ) end [2025-01-11 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:45:21] Production.INFO: ==26015== Releasing lock... [2025-01-11 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:46:05 [end_date_ymd] => 2025-01-11 08:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:46:05' and `end` < '2025-01-11 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-11 08:46:20] Production.INFO: count ==121 [2025-01-11 08:46:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:46:05 - End Time 2025-01-11 08:46:05 [2025-01-11 08:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223127', 'tblTempUsageDetail_20' ) start [2025-01-11 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223127', 'tblTempUsageDetail_20' ) end [2025-01-11 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223127', 'tblTempVendorCDR_20' ) start [2025-01-11 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223127', 'tblTempVendorCDR_20' ) end [2025-01-11 08:46:20] Production.INFO: ProcessCDR(1,14223127,1,1,2) [2025-01-11 08:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223127', 'tblTempUsageDetail_20' ) start [2025-01-11 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223127', 'tblTempUsageDetail_20' ) end [2025-01-11 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:46:23] Production.INFO: ==26087== Releasing lock... [2025-01-11 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:46:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:47:05 [end_date_ymd] => 2025-01-11 08:47:05 [RateCDR] => 1 ) [2025-01-11 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:47:05' and `end` < '2025-01-11 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:47:20] Production.INFO: count ==121 [2025-01-11 08:47:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:47:05 - End Time 2025-01-11 08:47:05 [2025-01-11 08:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223132', 'tblTempUsageDetail_20' ) start [2025-01-11 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223132', 'tblTempUsageDetail_20' ) end [2025-01-11 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223132', 'tblTempVendorCDR_20' ) start [2025-01-11 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223132', 'tblTempVendorCDR_20' ) end [2025-01-11 08:47:20] Production.INFO: ProcessCDR(1,14223132,1,1,2) [2025-01-11 08:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223132', 'tblTempUsageDetail_20' ) start [2025-01-11 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223132', 'tblTempUsageDetail_20' ) end [2025-01-11 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:47:23] Production.INFO: ==26156== Releasing lock... [2025-01-11 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:47:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:48:05 [end_date_ymd] => 2025-01-11 08:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:48:05' and `end` < '2025-01-11 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-11 08:48:19] Production.INFO: count ==121 [2025-01-11 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:48:05 - End Time 2025-01-11 08:48:05 [2025-01-11 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223137', 'tblTempUsageDetail_20' ) start [2025-01-11 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223137', 'tblTempUsageDetail_20' ) end [2025-01-11 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223137', 'tblTempVendorCDR_20' ) start [2025-01-11 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223137', 'tblTempVendorCDR_20' ) end [2025-01-11 08:48:19] Production.INFO: ProcessCDR(1,14223137,1,1,2) [2025-01-11 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223137', 'tblTempUsageDetail_20' ) start [2025-01-11 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223137', 'tblTempUsageDetail_20' ) end [2025-01-11 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:48:22] Production.INFO: ==26227== Releasing lock... [2025-01-11 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:49:05 [end_date_ymd] => 2025-01-11 08:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:49:05' and `end` < '2025-01-11 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-11 08:49:17] Production.INFO: count ==121 [2025-01-11 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:49:05 - End Time 2025-01-11 08:49:05 [2025-01-11 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223142', 'tblTempUsageDetail_20' ) start [2025-01-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223142', 'tblTempUsageDetail_20' ) end [2025-01-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223142', 'tblTempVendorCDR_20' ) start [2025-01-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223142', 'tblTempVendorCDR_20' ) end [2025-01-11 08:49:18] Production.INFO: ProcessCDR(1,14223142,1,1,2) [2025-01-11 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223142', 'tblTempUsageDetail_20' ) start [2025-01-11 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223142', 'tblTempUsageDetail_20' ) end [2025-01-11 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:49:21] Production.INFO: ==26299== Releasing lock... [2025-01-11 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:50:06 [end_date_ymd] => 2025-01-11 08:50:06 [RateCDR] => 1 ) [2025-01-11 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:50:06' and `end` < '2025-01-11 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:50:19] Production.INFO: count ==121 [2025-01-11 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:50:06 - End Time 2025-01-11 08:50:06 [2025-01-11 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223148', 'tblTempUsageDetail_20' ) start [2025-01-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223148', 'tblTempUsageDetail_20' ) end [2025-01-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223148', 'tblTempVendorCDR_20' ) start [2025-01-11 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223148', 'tblTempVendorCDR_20' ) end [2025-01-11 08:50:19] Production.INFO: ProcessCDR(1,14223148,1,1,2) [2025-01-11 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223148', 'tblTempUsageDetail_20' ) start [2025-01-11 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223148', 'tblTempUsageDetail_20' ) end [2025-01-11 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:50:22] Production.INFO: ==26411== Releasing lock... [2025-01-11 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:51:05 [end_date_ymd] => 2025-01-11 08:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:51:05' and `end` < '2025-01-11 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-11 08:51:18] Production.INFO: count ==121 [2025-01-11 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:51:05 - End Time 2025-01-11 08:51:05 [2025-01-11 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223153', 'tblTempUsageDetail_20' ) start [2025-01-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223153', 'tblTempUsageDetail_20' ) end [2025-01-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223153', 'tblTempVendorCDR_20' ) start [2025-01-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223153', 'tblTempVendorCDR_20' ) end [2025-01-11 08:51:18] Production.INFO: ProcessCDR(1,14223153,1,1,2) [2025-01-11 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223153', 'tblTempUsageDetail_20' ) start [2025-01-11 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223153', 'tblTempUsageDetail_20' ) end [2025-01-11 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:51:21] Production.INFO: ==26483== Releasing lock... [2025-01-11 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-11 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:52:05 [end_date_ymd] => 2025-01-11 08:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:52:05' and `end` < '2025-01-11 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-11 08:52:20] Production.INFO: count ==134 [2025-01-11 08:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 05:52:05 - End Time 2025-01-11 08:52:05 [2025-01-11 08:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223158', 'tblTempUsageDetail_20' ) start [2025-01-11 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223158', 'tblTempUsageDetail_20' ) end [2025-01-11 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223158', 'tblTempVendorCDR_20' ) start [2025-01-11 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223158', 'tblTempVendorCDR_20' ) end [2025-01-11 08:52:20] Production.INFO: ProcessCDR(1,14223158,1,1,2) [2025-01-11 08:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223158', 'tblTempUsageDetail_20' ) start [2025-01-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223158', 'tblTempUsageDetail_20' ) end [2025-01-11 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:52:23] Production.INFO: ==26555== Releasing lock... [2025-01-11 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:52:23] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:53:05 [end_date_ymd] => 2025-01-11 08:53:05 [RateCDR] => 1 ) [2025-01-11 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:53:05' and `end` < '2025-01-11 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:53:18] Production.INFO: count ==134 [2025-01-11 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:53:05 - End Time 2025-01-11 08:53:05 [2025-01-11 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223163', 'tblTempUsageDetail_20' ) start [2025-01-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223163', 'tblTempUsageDetail_20' ) end [2025-01-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223163', 'tblTempVendorCDR_20' ) start [2025-01-11 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223163', 'tblTempVendorCDR_20' ) end [2025-01-11 08:53:18] Production.INFO: ProcessCDR(1,14223163,1,1,2) [2025-01-11 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223163', 'tblTempUsageDetail_20' ) start [2025-01-11 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223163', 'tblTempUsageDetail_20' ) end [2025-01-11 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:53:21] Production.INFO: ==26627== Releasing lock... [2025-01-11 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:53:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:54:04 [end_date_ymd] => 2025-01-11 08:54:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:54:04' and `end` < '2025-01-11 08: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-11 08:54:18] Production.INFO: count ==134 [2025-01-11 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:54:04 - End Time 2025-01-11 08:54:04 [2025-01-11 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223168', 'tblTempUsageDetail_20' ) start [2025-01-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223168', 'tblTempUsageDetail_20' ) end [2025-01-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223168', 'tblTempVendorCDR_20' ) start [2025-01-11 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223168', 'tblTempVendorCDR_20' ) end [2025-01-11 08:54:18] Production.INFO: ProcessCDR(1,14223168,1,1,2) [2025-01-11 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223168', 'tblTempUsageDetail_20' ) start [2025-01-11 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223168', 'tblTempUsageDetail_20' ) end [2025-01-11 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:54:21] Production.INFO: ==26696== Releasing lock... [2025-01-11 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:54:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:55:05 [end_date_ymd] => 2025-01-11 08:55:05 [RateCDR] => 1 ) [2025-01-11 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:55:05' and `end` < '2025-01-11 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 08:55:19] Production.INFO: count ==134 [2025-01-11 08:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:55:05 - End Time 2025-01-11 08:55:05 [2025-01-11 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223173', 'tblTempUsageDetail_20' ) start [2025-01-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223173', 'tblTempUsageDetail_20' ) end [2025-01-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223173', 'tblTempVendorCDR_20' ) start [2025-01-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223173', 'tblTempVendorCDR_20' ) end [2025-01-11 08:55:19] Production.INFO: ProcessCDR(1,14223173,1,1,2) [2025-01-11 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223173', 'tblTempUsageDetail_20' ) start [2025-01-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223173', 'tblTempUsageDetail_20' ) end [2025-01-11 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:55:22] Production.INFO: ==26771== Releasing lock... [2025-01-11 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:55:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:56:04 [end_date_ymd] => 2025-01-11 08:56:04 [RateCDR] => 1 ) [2025-01-11 08: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-11 05:56:04' and `end` < '2025-01-11 08: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-11 08:56:17] Production.INFO: count ==135 [2025-01-11 08:56:17] Production.ERROR: pbx CDR StartTime 2025-01-11 05:56:04 - End Time 2025-01-11 08:56:04 [2025-01-11 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223178', 'tblTempUsageDetail_20' ) start [2025-01-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223178', 'tblTempUsageDetail_20' ) end [2025-01-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223178', 'tblTempVendorCDR_20' ) start [2025-01-11 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223178', 'tblTempVendorCDR_20' ) end [2025-01-11 08:56:17] Production.INFO: ProcessCDR(1,14223178,1,1,2) [2025-01-11 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223178', 'tblTempUsageDetail_20' ) start [2025-01-11 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223178', 'tblTempUsageDetail_20' ) end [2025-01-11 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:56:20] Production.INFO: ==26841== Releasing lock... [2025-01-11 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:56:20] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:57:04 [end_date_ymd] => 2025-01-11 08:57:04 [RateCDR] => 1 ) [2025-01-11 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-11 05:57:04' and `end` < '2025-01-11 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-11 08:57:19] Production.INFO: count ==140 [2025-01-11 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 05:57:04 - End Time 2025-01-11 08:57:04 [2025-01-11 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223183', 'tblTempUsageDetail_20' ) start [2025-01-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223183', 'tblTempUsageDetail_20' ) end [2025-01-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223183', 'tblTempVendorCDR_20' ) start [2025-01-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223183', 'tblTempVendorCDR_20' ) end [2025-01-11 08:57:19] Production.INFO: ProcessCDR(1,14223183,1,1,2) [2025-01-11 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223183', 'tblTempUsageDetail_20' ) start [2025-01-11 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223183', 'tblTempUsageDetail_20' ) end [2025-01-11 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:57:22] Production.INFO: ==26910== Releasing lock... [2025-01-11 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:58:05 [end_date_ymd] => 2025-01-11 08:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 05:58:05' and `end` < '2025-01-11 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-11 08:58:18] Production.INFO: count ==141 [2025-01-11 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:58:05 - End Time 2025-01-11 08:58:05 [2025-01-11 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223188', 'tblTempUsageDetail_20' ) start [2025-01-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223188', 'tblTempUsageDetail_20' ) end [2025-01-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223188', 'tblTempVendorCDR_20' ) start [2025-01-11 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223188', 'tblTempVendorCDR_20' ) end [2025-01-11 08:58:18] Production.INFO: ProcessCDR(1,14223188,1,1,2) [2025-01-11 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223188', 'tblTempUsageDetail_20' ) start [2025-01-11 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223188', 'tblTempUsageDetail_20' ) end [2025-01-11 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:58:21] Production.INFO: ==26979== Releasing lock... [2025-01-11 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 05:59:04 [end_date_ymd] => 2025-01-11 08:59:04 [RateCDR] => 1 ) [2025-01-11 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 05:59:04' and `end` < '2025-01-11 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-11 08:59:18] Production.INFO: count ==141 [2025-01-11 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 05:59:04 - End Time 2025-01-11 08:59:04 [2025-01-11 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223193', 'tblTempUsageDetail_20' ) start [2025-01-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223193', 'tblTempUsageDetail_20' ) end [2025-01-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223193', 'tblTempVendorCDR_20' ) start [2025-01-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223193', 'tblTempVendorCDR_20' ) end [2025-01-11 08:59:18] Production.INFO: ProcessCDR(1,14223193,1,1,2) [2025-01-11 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223193', 'tblTempUsageDetail_20' ) start [2025-01-11 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223193', 'tblTempUsageDetail_20' ) end [2025-01-11 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 08:59:21] Production.INFO: ==27055== Releasing lock... [2025-01-11 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 08:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-11 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:00:05 [end_date_ymd] => 2025-01-11 09:00:05 [RateCDR] => 1 ) [2025-01-11 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:00:05' and `end` < '2025-01-11 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:00:18] Production.INFO: count ==143 [2025-01-11 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:00:05 - End Time 2025-01-11 09:00:05 [2025-01-11 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223199', 'tblTempUsageDetail_20' ) start [2025-01-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223199', 'tblTempUsageDetail_20' ) end [2025-01-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223199', 'tblTempVendorCDR_20' ) start [2025-01-11 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223199', 'tblTempVendorCDR_20' ) end [2025-01-11 09:00:18] Production.INFO: ProcessCDR(1,14223199,1,1,2) [2025-01-11 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223199', 'tblTempUsageDetail_20' ) start [2025-01-11 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223199', 'tblTempUsageDetail_20' ) end [2025-01-11 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:00:22] Production.INFO: ==27130== Releasing lock... [2025-01-11 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-11 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:01:04 [end_date_ymd] => 2025-01-11 09:01:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:01:04' and `end` < '2025-01-11 09: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-11 09:01:20] Production.INFO: count ==143 [2025-01-11 09:01:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:01:04 - End Time 2025-01-11 09:01:04 [2025-01-11 09:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223204', 'tblTempUsageDetail_20' ) start [2025-01-11 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223204', 'tblTempUsageDetail_20' ) end [2025-01-11 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223204', 'tblTempVendorCDR_20' ) start [2025-01-11 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223204', 'tblTempVendorCDR_20' ) end [2025-01-11 09:01:20] Production.INFO: ProcessCDR(1,14223204,1,1,2) [2025-01-11 09:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223204', 'tblTempUsageDetail_20' ) start [2025-01-11 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223204', 'tblTempUsageDetail_20' ) end [2025-01-11 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:01:23] Production.INFO: ==27213== Releasing lock... [2025-01-11 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:01:23] Production.INFO: 29 MB #Memory Used# [2025-01-11 09:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:02:04 [end_date_ymd] => 2025-01-11 09:02:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:02:04' and `end` < '2025-01-11 09: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-11 09:02:18] Production.INFO: count ==166 [2025-01-11 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:02:04 - End Time 2025-01-11 09:02:04 [2025-01-11 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223209', 'tblTempUsageDetail_20' ) start [2025-01-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223209', 'tblTempUsageDetail_20' ) end [2025-01-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223209', 'tblTempVendorCDR_20' ) start [2025-01-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223209', 'tblTempVendorCDR_20' ) end [2025-01-11 09:02:18] Production.INFO: ProcessCDR(1,14223209,1,1,2) [2025-01-11 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223209', 'tblTempUsageDetail_20' ) start [2025-01-11 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223209', 'tblTempUsageDetail_20' ) end [2025-01-11 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:02:21] Production.INFO: ==27285== Releasing lock... [2025-01-11 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:03:05 [end_date_ymd] => 2025-01-11 09:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:03:05' and `end` < '2025-01-11 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-11 09:03:19] Production.INFO: count ==188 [2025-01-11 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:03:05 - End Time 2025-01-11 09:03:05 [2025-01-11 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223214', 'tblTempUsageDetail_20' ) start [2025-01-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223214', 'tblTempUsageDetail_20' ) end [2025-01-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223214', 'tblTempVendorCDR_20' ) start [2025-01-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223214', 'tblTempVendorCDR_20' ) end [2025-01-11 09:03:19] Production.INFO: ProcessCDR(1,14223214,1,1,2) [2025-01-11 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223214', 'tblTempUsageDetail_20' ) start [2025-01-11 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223214', 'tblTempUsageDetail_20' ) end [2025-01-11 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:03:23] Production.INFO: ==27363== Releasing lock... [2025-01-11 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:04:04 [end_date_ymd] => 2025-01-11 09:04:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:04:04' and `end` < '2025-01-11 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-11 09:04:19] Production.INFO: count ==188 [2025-01-11 09:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:04:04 - End Time 2025-01-11 09:04:04 [2025-01-11 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223219', 'tblTempUsageDetail_20' ) start [2025-01-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223219', 'tblTempUsageDetail_20' ) end [2025-01-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223219', 'tblTempVendorCDR_20' ) start [2025-01-11 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223219', 'tblTempVendorCDR_20' ) end [2025-01-11 09:04:19] Production.INFO: ProcessCDR(1,14223219,1,1,2) [2025-01-11 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223219', 'tblTempUsageDetail_20' ) start [2025-01-11 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223219', 'tblTempUsageDetail_20' ) end [2025-01-11 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:04:22] Production.INFO: ==27434== Releasing lock... [2025-01-11 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:05:05 [end_date_ymd] => 2025-01-11 09:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:05:05' and `end` < '2025-01-11 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-11 09:05:18] Production.INFO: count ==188 [2025-01-11 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:05:05 - End Time 2025-01-11 09:05:05 [2025-01-11 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223224', 'tblTempUsageDetail_20' ) start [2025-01-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223224', 'tblTempUsageDetail_20' ) end [2025-01-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223224', 'tblTempVendorCDR_20' ) start [2025-01-11 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223224', 'tblTempVendorCDR_20' ) end [2025-01-11 09:05:18] Production.INFO: ProcessCDR(1,14223224,1,1,2) [2025-01-11 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223224', 'tblTempUsageDetail_20' ) start [2025-01-11 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223224', 'tblTempUsageDetail_20' ) end [2025-01-11 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:05:22] Production.INFO: ==27505== Releasing lock... [2025-01-11 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-11 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:06:04 [end_date_ymd] => 2025-01-11 09:06:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:06:04' and `end` < '2025-01-11 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-11 09:06:18] Production.INFO: count ==202 [2025-01-11 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:06:04 - End Time 2025-01-11 09:06:04 [2025-01-11 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223229', 'tblTempUsageDetail_20' ) start [2025-01-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223229', 'tblTempUsageDetail_20' ) end [2025-01-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223229', 'tblTempVendorCDR_20' ) start [2025-01-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223229', 'tblTempVendorCDR_20' ) end [2025-01-11 09:06:18] Production.INFO: ProcessCDR(1,14223229,1,1,2) [2025-01-11 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223229', 'tblTempUsageDetail_20' ) start [2025-01-11 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223229', 'tblTempUsageDetail_20' ) end [2025-01-11 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:06:22] Production.INFO: ==27614== Releasing lock... [2025-01-11 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:06:22] Production.INFO: 30 MB #Memory Used# [2025-01-11 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:07:05 [end_date_ymd] => 2025-01-11 09:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:07:05' and `end` < '2025-01-11 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-11 09:07:18] Production.INFO: count ==202 [2025-01-11 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:07:05 - End Time 2025-01-11 09:07:05 [2025-01-11 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223234', 'tblTempUsageDetail_20' ) start [2025-01-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223234', 'tblTempUsageDetail_20' ) end [2025-01-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223234', 'tblTempVendorCDR_20' ) start [2025-01-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223234', 'tblTempVendorCDR_20' ) end [2025-01-11 09:07:18] Production.INFO: ProcessCDR(1,14223234,1,1,2) [2025-01-11 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223234', 'tblTempUsageDetail_20' ) start [2025-01-11 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223234', 'tblTempUsageDetail_20' ) end [2025-01-11 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:07:21] Production.INFO: ==27689== Releasing lock... [2025-01-11 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:07:21] Production.INFO: 30 MB #Memory Used# [2025-01-11 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:08:05 [end_date_ymd] => 2025-01-11 09:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:08:05' and `end` < '2025-01-11 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-11 09:08:19] Production.INFO: count ==217 [2025-01-11 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:08:05 - End Time 2025-01-11 09:08:05 [2025-01-11 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223239', 'tblTempUsageDetail_20' ) start [2025-01-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223239', 'tblTempUsageDetail_20' ) end [2025-01-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223239', 'tblTempVendorCDR_20' ) start [2025-01-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223239', 'tblTempVendorCDR_20' ) end [2025-01-11 09:08:19] Production.INFO: ProcessCDR(1,14223239,1,1,2) [2025-01-11 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223239', 'tblTempUsageDetail_20' ) start [2025-01-11 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223239', 'tblTempUsageDetail_20' ) end [2025-01-11 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:08:22] Production.INFO: ==27762== Releasing lock... [2025-01-11 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:09:05 [end_date_ymd] => 2025-01-11 09:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:09:05' and `end` < '2025-01-11 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-11 09:09:18] Production.INFO: count ==220 [2025-01-11 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:09:05 - End Time 2025-01-11 09:09:05 [2025-01-11 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223244', 'tblTempUsageDetail_20' ) start [2025-01-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223244', 'tblTempUsageDetail_20' ) end [2025-01-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223244', 'tblTempVendorCDR_20' ) start [2025-01-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223244', 'tblTempVendorCDR_20' ) end [2025-01-11 09:09:18] Production.INFO: ProcessCDR(1,14223244,1,1,2) [2025-01-11 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223244', 'tblTempUsageDetail_20' ) start [2025-01-11 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223244', 'tblTempUsageDetail_20' ) end [2025-01-11 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:09:21] Production.INFO: ==27832== Releasing lock... [2025-01-11 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:10:06 [end_date_ymd] => 2025-01-11 09:10:06 [RateCDR] => 1 ) [2025-01-11 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-11 06:10:06' and `end` < '2025-01-11 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-11 09:10:19] Production.INFO: count ==228 [2025-01-11 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:10:06 - End Time 2025-01-11 09:10:06 [2025-01-11 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223250', 'tblTempUsageDetail_20' ) start [2025-01-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223250', 'tblTempUsageDetail_20' ) end [2025-01-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223250', 'tblTempVendorCDR_20' ) start [2025-01-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223250', 'tblTempVendorCDR_20' ) end [2025-01-11 09:10:19] Production.INFO: ProcessCDR(1,14223250,1,1,2) [2025-01-11 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223250', 'tblTempUsageDetail_20' ) start [2025-01-11 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223250', 'tblTempUsageDetail_20' ) end [2025-01-11 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:10:23] Production.INFO: ==27904== Releasing lock... [2025-01-11 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:11:04 [end_date_ymd] => 2025-01-11 09:11:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:11:04' and `end` < '2025-01-11 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-11 09:11:20] Production.INFO: count ==248 [2025-01-11 09:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:11:04 - End Time 2025-01-11 09:11:04 [2025-01-11 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223255', 'tblTempUsageDetail_20' ) start [2025-01-11 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223255', 'tblTempUsageDetail_20' ) end [2025-01-11 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223255', 'tblTempVendorCDR_20' ) start [2025-01-11 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223255', 'tblTempVendorCDR_20' ) end [2025-01-11 09:11:20] Production.INFO: ProcessCDR(1,14223255,1,1,2) [2025-01-11 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223255', 'tblTempUsageDetail_20' ) start [2025-01-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223255', 'tblTempUsageDetail_20' ) end [2025-01-11 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:11:23] Production.INFO: ==27976== Releasing lock... [2025-01-11 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:12:05 [end_date_ymd] => 2025-01-11 09:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:12:05' and `end` < '2025-01-11 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-11 09:12:18] Production.INFO: count ==253 [2025-01-11 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:12:05 - End Time 2025-01-11 09:12:05 [2025-01-11 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223260', 'tblTempUsageDetail_20' ) start [2025-01-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223260', 'tblTempUsageDetail_20' ) end [2025-01-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223260', 'tblTempVendorCDR_20' ) start [2025-01-11 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223260', 'tblTempVendorCDR_20' ) end [2025-01-11 09:12:18] Production.INFO: ProcessCDR(1,14223260,1,1,2) [2025-01-11 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223260', 'tblTempUsageDetail_20' ) start [2025-01-11 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223260', 'tblTempUsageDetail_20' ) end [2025-01-11 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:12:21] Production.INFO: ==28049== Releasing lock... [2025-01-11 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:13:05 [end_date_ymd] => 2025-01-11 09:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:13:05' and `end` < '2025-01-11 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-11 09:13:18] Production.INFO: count ==255 [2025-01-11 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:13:05 - End Time 2025-01-11 09:13:05 [2025-01-11 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223265', 'tblTempUsageDetail_20' ) start [2025-01-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223265', 'tblTempUsageDetail_20' ) end [2025-01-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223265', 'tblTempVendorCDR_20' ) start [2025-01-11 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223265', 'tblTempVendorCDR_20' ) end [2025-01-11 09:13:18] Production.INFO: ProcessCDR(1,14223265,1,1,2) [2025-01-11 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223265', 'tblTempUsageDetail_20' ) start [2025-01-11 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223265', 'tblTempUsageDetail_20' ) end [2025-01-11 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:13:21] Production.INFO: ==28122== Releasing lock... [2025-01-11 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-11 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:14:05 [end_date_ymd] => 2025-01-11 09:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:14:05' and `end` < '2025-01-11 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-11 09:14:19] Production.INFO: count ==281 [2025-01-11 09:14:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:14:05 - End Time 2025-01-11 09:14:05 [2025-01-11 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223270', 'tblTempUsageDetail_20' ) start [2025-01-11 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223270', 'tblTempUsageDetail_20' ) end [2025-01-11 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223270', 'tblTempVendorCDR_20' ) start [2025-01-11 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223270', 'tblTempVendorCDR_20' ) end [2025-01-11 09:14:20] Production.INFO: ProcessCDR(1,14223270,1,1,2) [2025-01-11 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223270', 'tblTempUsageDetail_20' ) start [2025-01-11 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223270', 'tblTempUsageDetail_20' ) end [2025-01-11 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:14:24] Production.INFO: ==28197== Releasing lock... [2025-01-11 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:14:24] Production.INFO: 31 MB #Memory Used# [2025-01-11 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:15:05 [end_date_ymd] => 2025-01-11 09:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:15:05' and `end` < '2025-01-11 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-11 09:15:20] Production.INFO: count ==290 [2025-01-11 09:15:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:15:05 - End Time 2025-01-11 09:15:05 [2025-01-11 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223275', 'tblTempUsageDetail_20' ) start [2025-01-11 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223275', 'tblTempUsageDetail_20' ) end [2025-01-11 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223275', 'tblTempVendorCDR_20' ) start [2025-01-11 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223275', 'tblTempVendorCDR_20' ) end [2025-01-11 09:15:20] Production.INFO: ProcessCDR(1,14223275,1,1,2) [2025-01-11 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223275', 'tblTempUsageDetail_20' ) start [2025-01-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223275', 'tblTempUsageDetail_20' ) end [2025-01-11 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:15:23] Production.INFO: ==28268== Releasing lock... [2025-01-11 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:15:23] Production.INFO: 31 MB #Memory Used# [2025-01-11 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:16:05 [end_date_ymd] => 2025-01-11 09:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:16:05' and `end` < '2025-01-11 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-11 09:16:18] Production.INFO: count ==291 [2025-01-11 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:16:05 - End Time 2025-01-11 09:16:05 [2025-01-11 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223280', 'tblTempUsageDetail_20' ) start [2025-01-11 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223280', 'tblTempUsageDetail_20' ) end [2025-01-11 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223280', 'tblTempVendorCDR_20' ) start [2025-01-11 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223280', 'tblTempVendorCDR_20' ) end [2025-01-11 09:16:18] Production.INFO: ProcessCDR(1,14223280,1,1,2) [2025-01-11 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223280', 'tblTempUsageDetail_20' ) start [2025-01-11 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223280', 'tblTempUsageDetail_20' ) end [2025-01-11 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:16:22] Production.INFO: ==28344== Releasing lock... [2025-01-11 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:16:22] Production.INFO: 31 MB #Memory Used# [2025-01-11 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:17:05 [end_date_ymd] => 2025-01-11 09:17:05 [RateCDR] => 1 ) [2025-01-11 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:17:05' and `end` < '2025-01-11 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:17:19] Production.INFO: count ==295 [2025-01-11 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:17:05 - End Time 2025-01-11 09:17:05 [2025-01-11 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223285', 'tblTempUsageDetail_20' ) start [2025-01-11 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223285', 'tblTempUsageDetail_20' ) end [2025-01-11 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223285', 'tblTempVendorCDR_20' ) start [2025-01-11 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223285', 'tblTempVendorCDR_20' ) end [2025-01-11 09:17:19] Production.INFO: ProcessCDR(1,14223285,1,1,2) [2025-01-11 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223285', 'tblTempUsageDetail_20' ) start [2025-01-11 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223285', 'tblTempUsageDetail_20' ) end [2025-01-11 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:17:24] Production.INFO: ==28415== Releasing lock... [2025-01-11 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:17:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-11 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:18:04 [end_date_ymd] => 2025-01-11 09:18:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:18:04' and `end` < '2025-01-11 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-11 09:18:19] Production.INFO: count ==313 [2025-01-11 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:18:04 - End Time 2025-01-11 09:18:04 [2025-01-11 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223290', 'tblTempUsageDetail_20' ) start [2025-01-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223290', 'tblTempUsageDetail_20' ) end [2025-01-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223290', 'tblTempVendorCDR_20' ) start [2025-01-11 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223290', 'tblTempVendorCDR_20' ) end [2025-01-11 09:18:19] Production.INFO: ProcessCDR(1,14223290,1,1,2) [2025-01-11 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223290', 'tblTempUsageDetail_20' ) start [2025-01-11 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223290', 'tblTempUsageDetail_20' ) end [2025-01-11 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:18:23] Production.INFO: ==28485== Releasing lock... [2025-01-11 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:18:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:19:04 [end_date_ymd] => 2025-01-11 09:19:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:19:04' and `end` < '2025-01-11 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-11 09:19:21] Production.INFO: count ==319 [2025-01-11 09:19:21] Production.ERROR: pbx CDR StartTime 2025-01-11 06:19:04 - End Time 2025-01-11 09:19:04 [2025-01-11 09:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223295', 'tblTempUsageDetail_20' ) start [2025-01-11 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223295', 'tblTempUsageDetail_20' ) end [2025-01-11 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223295', 'tblTempVendorCDR_20' ) start [2025-01-11 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223295', 'tblTempVendorCDR_20' ) end [2025-01-11 09:19:21] Production.INFO: ProcessCDR(1,14223295,1,1,2) [2025-01-11 09:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223295', 'tblTempUsageDetail_20' ) start [2025-01-11 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223295', 'tblTempUsageDetail_20' ) end [2025-01-11 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:19:25] Production.INFO: ==28555== Releasing lock... [2025-01-11 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:19:25] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:20:05 [end_date_ymd] => 2025-01-11 09:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:20:05' and `end` < '2025-01-11 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-11 09:20:18] Production.INFO: count ==323 [2025-01-11 09:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:20:05 - End Time 2025-01-11 09:20:05 [2025-01-11 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223301', 'tblTempUsageDetail_20' ) start [2025-01-11 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223301', 'tblTempUsageDetail_20' ) end [2025-01-11 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223301', 'tblTempVendorCDR_20' ) start [2025-01-11 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223301', 'tblTempVendorCDR_20' ) end [2025-01-11 09:20:18] Production.INFO: ProcessCDR(1,14223301,1,1,2) [2025-01-11 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223301', 'tblTempUsageDetail_20' ) start [2025-01-11 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223301', 'tblTempUsageDetail_20' ) end [2025-01-11 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:20:21] Production.INFO: ==28627== Releasing lock... [2025-01-11 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-11 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:21:05 [end_date_ymd] => 2025-01-11 09:21:05 [RateCDR] => 1 ) [2025-01-11 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:21:05' and `end` < '2025-01-11 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:21:19] Production.INFO: count ==352 [2025-01-11 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:21:05 - End Time 2025-01-11 09:21:05 [2025-01-11 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223306', 'tblTempUsageDetail_20' ) start [2025-01-11 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223306', 'tblTempUsageDetail_20' ) end [2025-01-11 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223306', 'tblTempVendorCDR_20' ) start [2025-01-11 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223306', 'tblTempVendorCDR_20' ) end [2025-01-11 09:21:19] Production.INFO: ProcessCDR(1,14223306,1,1,2) [2025-01-11 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223306', 'tblTempUsageDetail_20' ) start [2025-01-11 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223306', 'tblTempUsageDetail_20' ) end [2025-01-11 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:21:22] Production.INFO: ==28705== Releasing lock... [2025-01-11 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:22:05 [end_date_ymd] => 2025-01-11 09:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:22:05' and `end` < '2025-01-11 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-11 09:22:21] Production.INFO: count ==353 [2025-01-11 09:22:21] Production.ERROR: pbx CDR StartTime 2025-01-11 06:22:05 - End Time 2025-01-11 09:22:05 [2025-01-11 09:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223311', 'tblTempUsageDetail_20' ) start [2025-01-11 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223311', 'tblTempUsageDetail_20' ) end [2025-01-11 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223311', 'tblTempVendorCDR_20' ) start [2025-01-11 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223311', 'tblTempVendorCDR_20' ) end [2025-01-11 09:22:21] Production.INFO: ProcessCDR(1,14223311,1,1,2) [2025-01-11 09:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223311', 'tblTempUsageDetail_20' ) start [2025-01-11 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223311', 'tblTempUsageDetail_20' ) end [2025-01-11 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:22:24] Production.INFO: ==28815== Releasing lock... [2025-01-11 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:22:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:23:05 [end_date_ymd] => 2025-01-11 09:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:23:05' and `end` < '2025-01-11 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-11 09:23:19] Production.INFO: count ==366 [2025-01-11 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:23:05 - End Time 2025-01-11 09:23:05 [2025-01-11 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223316', 'tblTempUsageDetail_20' ) start [2025-01-11 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223316', 'tblTempUsageDetail_20' ) end [2025-01-11 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223316', 'tblTempVendorCDR_20' ) start [2025-01-11 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223316', 'tblTempVendorCDR_20' ) end [2025-01-11 09:23:19] Production.INFO: ProcessCDR(1,14223316,1,1,2) [2025-01-11 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223316', 'tblTempUsageDetail_20' ) start [2025-01-11 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223316', 'tblTempUsageDetail_20' ) end [2025-01-11 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:23:22] Production.INFO: ==28886== Releasing lock... [2025-01-11 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:24:05 [end_date_ymd] => 2025-01-11 09:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:24:05' and `end` < '2025-01-11 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-11 09:24:20] Production.INFO: count ==366 [2025-01-11 09:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:24:05 - End Time 2025-01-11 09:24:05 [2025-01-11 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223321', 'tblTempUsageDetail_20' ) start [2025-01-11 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223321', 'tblTempUsageDetail_20' ) end [2025-01-11 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223321', 'tblTempVendorCDR_20' ) start [2025-01-11 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223321', 'tblTempVendorCDR_20' ) end [2025-01-11 09:24:20] Production.INFO: ProcessCDR(1,14223321,1,1,2) [2025-01-11 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223321', 'tblTempUsageDetail_20' ) start [2025-01-11 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223321', 'tblTempUsageDetail_20' ) end [2025-01-11 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:24:23] Production.INFO: ==28956== Releasing lock... [2025-01-11 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:24:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:25:05 [end_date_ymd] => 2025-01-11 09:25:05 [RateCDR] => 1 ) [2025-01-11 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:25:05' and `end` < '2025-01-11 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:25:18] Production.INFO: count ==374 [2025-01-11 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:25:05 - End Time 2025-01-11 09:25:05 [2025-01-11 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223326', 'tblTempUsageDetail_20' ) start [2025-01-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223326', 'tblTempUsageDetail_20' ) end [2025-01-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223326', 'tblTempVendorCDR_20' ) start [2025-01-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223326', 'tblTempVendorCDR_20' ) end [2025-01-11 09:25:18] Production.INFO: ProcessCDR(1,14223326,1,1,2) [2025-01-11 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223326', 'tblTempUsageDetail_20' ) start [2025-01-11 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223326', 'tblTempUsageDetail_20' ) end [2025-01-11 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:25:21] Production.INFO: ==29026== Releasing lock... [2025-01-11 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:26:05 [end_date_ymd] => 2025-01-11 09:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:26:05' and `end` < '2025-01-11 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-11 09:26:19] Production.INFO: count ==374 [2025-01-11 09:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:26:05 - End Time 2025-01-11 09:26:05 [2025-01-11 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223331', 'tblTempUsageDetail_20' ) start [2025-01-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223331', 'tblTempUsageDetail_20' ) end [2025-01-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223331', 'tblTempVendorCDR_20' ) start [2025-01-11 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223331', 'tblTempVendorCDR_20' ) end [2025-01-11 09:26:19] Production.INFO: ProcessCDR(1,14223331,1,1,2) [2025-01-11 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223331', 'tblTempUsageDetail_20' ) start [2025-01-11 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223331', 'tblTempUsageDetail_20' ) end [2025-01-11 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:26:22] Production.INFO: ==29097== Releasing lock... [2025-01-11 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:27:05 [end_date_ymd] => 2025-01-11 09:27:05 [RateCDR] => 1 ) [2025-01-11 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:27:05' and `end` < '2025-01-11 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:27:18] Production.INFO: count ==392 [2025-01-11 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:27:05 - End Time 2025-01-11 09:27:05 [2025-01-11 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223336', 'tblTempUsageDetail_20' ) start [2025-01-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223336', 'tblTempUsageDetail_20' ) end [2025-01-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223336', 'tblTempVendorCDR_20' ) start [2025-01-11 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223336', 'tblTempVendorCDR_20' ) end [2025-01-11 09:27:18] Production.INFO: ProcessCDR(1,14223336,1,1,2) [2025-01-11 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223336', 'tblTempUsageDetail_20' ) start [2025-01-11 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223336', 'tblTempUsageDetail_20' ) end [2025-01-11 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:27:21] Production.INFO: ==29170== Releasing lock... [2025-01-11 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:27:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:28:05 [end_date_ymd] => 2025-01-11 09:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:28:05' and `end` < '2025-01-11 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-11 09:28:18] Production.INFO: count ==392 [2025-01-11 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:28:05 - End Time 2025-01-11 09:28:05 [2025-01-11 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223338', 'tblTempUsageDetail_20' ) start [2025-01-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223338', 'tblTempUsageDetail_20' ) end [2025-01-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223338', 'tblTempVendorCDR_20' ) start [2025-01-11 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223338', 'tblTempVendorCDR_20' ) end [2025-01-11 09:28:18] Production.INFO: ProcessCDR(1,14223338,1,1,2) [2025-01-11 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223338', 'tblTempUsageDetail_20' ) start [2025-01-11 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223338', 'tblTempUsageDetail_20' ) end [2025-01-11 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:28:21] Production.INFO: ==29242== Releasing lock... [2025-01-11 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:28:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:29:04 [end_date_ymd] => 2025-01-11 09:29:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:29:04' and `end` < '2025-01-11 09: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-11 09:29:18] Production.INFO: count ==402 [2025-01-11 09:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:29:04 - End Time 2025-01-11 09:29:04 [2025-01-11 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223346', 'tblTempUsageDetail_20' ) start [2025-01-11 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223346', 'tblTempUsageDetail_20' ) end [2025-01-11 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223346', 'tblTempVendorCDR_20' ) start [2025-01-11 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223346', 'tblTempVendorCDR_20' ) end [2025-01-11 09:29:19] Production.INFO: ProcessCDR(1,14223346,1,1,2) [2025-01-11 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223346', 'tblTempUsageDetail_20' ) start [2025-01-11 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223346', 'tblTempUsageDetail_20' ) end [2025-01-11 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:29:23] Production.INFO: ==29318== Releasing lock... [2025-01-11 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:29:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:30:06 [end_date_ymd] => 2025-01-11 09:30:06 [RateCDR] => 1 ) [2025-01-11 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-11 06:30:06' and `end` < '2025-01-11 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-11 09:30:19] Production.INFO: count ==408 [2025-01-11 09:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:30:06 - End Time 2025-01-11 09:30:06 [2025-01-11 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223352', 'tblTempUsageDetail_20' ) start [2025-01-11 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223352', 'tblTempUsageDetail_20' ) end [2025-01-11 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223352', 'tblTempVendorCDR_20' ) start [2025-01-11 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223352', 'tblTempVendorCDR_20' ) end [2025-01-11 09:30:19] Production.INFO: ProcessCDR(1,14223352,1,1,2) [2025-01-11 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223352', 'tblTempUsageDetail_20' ) start [2025-01-11 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223352', 'tblTempUsageDetail_20' ) end [2025-01-11 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:30:22] Production.INFO: ==29393== Releasing lock... [2025-01-11 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-11 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:31:05 [end_date_ymd] => 2025-01-11 09:31:05 [RateCDR] => 1 ) [2025-01-11 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:31:05' and `end` < '2025-01-11 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:31:20] Production.INFO: count ==421 [2025-01-11 09:31:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:31:05 - End Time 2025-01-11 09:31:05 [2025-01-11 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223357', 'tblTempUsageDetail_20' ) start [2025-01-11 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223357', 'tblTempUsageDetail_20' ) end [2025-01-11 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223357', 'tblTempVendorCDR_20' ) start [2025-01-11 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223357', 'tblTempVendorCDR_20' ) end [2025-01-11 09:31:20] Production.INFO: ProcessCDR(1,14223357,1,1,2) [2025-01-11 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223357', 'tblTempUsageDetail_20' ) start [2025-01-11 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223357', 'tblTempUsageDetail_20' ) end [2025-01-11 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:31:24] Production.INFO: ==29484== Releasing lock... [2025-01-11 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:31:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:32:05 [end_date_ymd] => 2025-01-11 09:32:05 [RateCDR] => 1 ) [2025-01-11 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:32:05' and `end` < '2025-01-11 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:32:19] Production.INFO: count ==421 [2025-01-11 09:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:32:05 - End Time 2025-01-11 09:32:05 [2025-01-11 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223362', 'tblTempUsageDetail_20' ) start [2025-01-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223362', 'tblTempUsageDetail_20' ) end [2025-01-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223362', 'tblTempVendorCDR_20' ) start [2025-01-11 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223362', 'tblTempVendorCDR_20' ) end [2025-01-11 09:32:19] Production.INFO: ProcessCDR(1,14223362,1,1,2) [2025-01-11 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223362', 'tblTempUsageDetail_20' ) start [2025-01-11 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223362', 'tblTempUsageDetail_20' ) end [2025-01-11 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:32:22] Production.INFO: ==29590== Releasing lock... [2025-01-11 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:32:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:33:05 [end_date_ymd] => 2025-01-11 09:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:33:05' and `end` < '2025-01-11 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-11 09:33:20] Production.INFO: count ==434 [2025-01-11 09:33:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:33:05 - End Time 2025-01-11 09:33:05 [2025-01-11 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223367', 'tblTempUsageDetail_20' ) start [2025-01-11 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223367', 'tblTempUsageDetail_20' ) end [2025-01-11 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223367', 'tblTempVendorCDR_20' ) start [2025-01-11 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223367', 'tblTempVendorCDR_20' ) end [2025-01-11 09:33:20] Production.INFO: ProcessCDR(1,14223367,1,1,2) [2025-01-11 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223367', 'tblTempUsageDetail_20' ) start [2025-01-11 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223367', 'tblTempUsageDetail_20' ) end [2025-01-11 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:33:25] Production.INFO: ==29692== Releasing lock... [2025-01-11 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:33:25] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:34:05 [end_date_ymd] => 2025-01-11 09:34:05 [RateCDR] => 1 ) [2025-01-11 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:34:05' and `end` < '2025-01-11 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:34:18] Production.INFO: count ==435 [2025-01-11 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:34:05 - End Time 2025-01-11 09:34:05 [2025-01-11 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223372', 'tblTempUsageDetail_20' ) start [2025-01-11 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223372', 'tblTempUsageDetail_20' ) end [2025-01-11 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223372', 'tblTempVendorCDR_20' ) start [2025-01-11 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223372', 'tblTempVendorCDR_20' ) end [2025-01-11 09:34:18] Production.INFO: ProcessCDR(1,14223372,1,1,2) [2025-01-11 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223372', 'tblTempUsageDetail_20' ) start [2025-01-11 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223372', 'tblTempUsageDetail_20' ) end [2025-01-11 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:34:22] Production.INFO: ==29764== Releasing lock... [2025-01-11 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:34:22] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:35:05 [end_date_ymd] => 2025-01-11 09:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:35:05' and `end` < '2025-01-11 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-11 09:35:18] Production.INFO: count ==435 [2025-01-11 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:35:05 - End Time 2025-01-11 09:35:05 [2025-01-11 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223377', 'tblTempUsageDetail_20' ) start [2025-01-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223377', 'tblTempUsageDetail_20' ) end [2025-01-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223377', 'tblTempVendorCDR_20' ) start [2025-01-11 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223377', 'tblTempVendorCDR_20' ) end [2025-01-11 09:35:18] Production.INFO: ProcessCDR(1,14223377,1,1,2) [2025-01-11 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223377', 'tblTempUsageDetail_20' ) start [2025-01-11 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223377', 'tblTempUsageDetail_20' ) end [2025-01-11 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:35:21] Production.INFO: ==29835== Releasing lock... [2025-01-11 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:35:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:36:05 [end_date_ymd] => 2025-01-11 09:36:05 [RateCDR] => 1 ) [2025-01-11 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:36:05' and `end` < '2025-01-11 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:36:20] Production.INFO: count ==436 [2025-01-11 09:36:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:36:05 - End Time 2025-01-11 09:36:05 [2025-01-11 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223382', 'tblTempUsageDetail_20' ) start [2025-01-11 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223382', 'tblTempUsageDetail_20' ) end [2025-01-11 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223382', 'tblTempVendorCDR_20' ) start [2025-01-11 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223382', 'tblTempVendorCDR_20' ) end [2025-01-11 09:36:20] Production.INFO: ProcessCDR(1,14223382,1,1,2) [2025-01-11 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223382', 'tblTempUsageDetail_20' ) start [2025-01-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223382', 'tblTempUsageDetail_20' ) end [2025-01-11 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:36:24] Production.INFO: ==29910== Releasing lock... [2025-01-11 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:36:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-11 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:37:05 [end_date_ymd] => 2025-01-11 09:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:37:05' and `end` < '2025-01-11 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-11 09:37:20] Production.INFO: count ==437 [2025-01-11 09:37:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:37:05 - End Time 2025-01-11 09:37:05 [2025-01-11 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223387', 'tblTempUsageDetail_20' ) start [2025-01-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223387', 'tblTempUsageDetail_20' ) end [2025-01-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223387', 'tblTempVendorCDR_20' ) start [2025-01-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223387', 'tblTempVendorCDR_20' ) end [2025-01-11 09:37:20] Production.INFO: ProcessCDR(1,14223387,1,1,2) [2025-01-11 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223387', 'tblTempUsageDetail_20' ) start [2025-01-11 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223387', 'tblTempUsageDetail_20' ) end [2025-01-11 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:37:23] Production.INFO: ==30020== Releasing lock... [2025-01-11 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:37:23] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:38:05 [end_date_ymd] => 2025-01-11 09:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:38:05' and `end` < '2025-01-11 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-11 09:38:18] Production.INFO: count ==437 [2025-01-11 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:38:05 - End Time 2025-01-11 09:38:05 [2025-01-11 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223392', 'tblTempUsageDetail_20' ) start [2025-01-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223392', 'tblTempUsageDetail_20' ) end [2025-01-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223392', 'tblTempVendorCDR_20' ) start [2025-01-11 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223392', 'tblTempVendorCDR_20' ) end [2025-01-11 09:38:18] Production.INFO: ProcessCDR(1,14223392,1,1,2) [2025-01-11 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223392', 'tblTempUsageDetail_20' ) start [2025-01-11 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223392', 'tblTempUsageDetail_20' ) end [2025-01-11 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:38:21] Production.INFO: ==30089== Releasing lock... [2025-01-11 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:38:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:39:05 [end_date_ymd] => 2025-01-11 09:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:39:05' and `end` < '2025-01-11 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-11 09:39:19] Production.INFO: count ==443 [2025-01-11 09:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:39:05 - End Time 2025-01-11 09:39:05 [2025-01-11 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223397', 'tblTempUsageDetail_20' ) start [2025-01-11 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223397', 'tblTempUsageDetail_20' ) end [2025-01-11 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223397', 'tblTempVendorCDR_20' ) start [2025-01-11 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223397', 'tblTempVendorCDR_20' ) end [2025-01-11 09:39:19] Production.INFO: ProcessCDR(1,14223397,1,1,2) [2025-01-11 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223397', 'tblTempUsageDetail_20' ) start [2025-01-11 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223397', 'tblTempUsageDetail_20' ) end [2025-01-11 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:39:24] Production.INFO: ==30159== Releasing lock... [2025-01-11 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:39:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:40:06 [end_date_ymd] => 2025-01-11 09:40:06 [RateCDR] => 1 ) [2025-01-11 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:40:06' and `end` < '2025-01-11 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:40:19] Production.INFO: count ==460 [2025-01-11 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:40:06 - End Time 2025-01-11 09:40:06 [2025-01-11 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223403', 'tblTempUsageDetail_20' ) start [2025-01-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223403', 'tblTempUsageDetail_20' ) end [2025-01-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223403', 'tblTempVendorCDR_20' ) start [2025-01-11 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223403', 'tblTempVendorCDR_20' ) end [2025-01-11 09:40:19] Production.INFO: ProcessCDR(1,14223403,1,1,2) [2025-01-11 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223403', 'tblTempUsageDetail_20' ) start [2025-01-11 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223403', 'tblTempUsageDetail_20' ) end [2025-01-11 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:40:22] Production.INFO: ==30236== Releasing lock... [2025-01-11 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:40:22] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:41:05 [end_date_ymd] => 2025-01-11 09:41:05 [RateCDR] => 1 ) [2025-01-11 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:41:05' and `end` < '2025-01-11 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:41:18] Production.INFO: count ==467 [2025-01-11 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:41:05 - End Time 2025-01-11 09:41:05 [2025-01-11 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223408', 'tblTempUsageDetail_20' ) start [2025-01-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223408', 'tblTempUsageDetail_20' ) end [2025-01-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223408', 'tblTempVendorCDR_20' ) start [2025-01-11 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223408', 'tblTempVendorCDR_20' ) end [2025-01-11 09:41:18] Production.INFO: ProcessCDR(1,14223408,1,1,2) [2025-01-11 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223408', 'tblTempUsageDetail_20' ) start [2025-01-11 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223408', 'tblTempUsageDetail_20' ) end [2025-01-11 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:41:21] Production.INFO: ==30309== Releasing lock... [2025-01-11 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:41:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:42:05 [end_date_ymd] => 2025-01-11 09:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:42:05' and `end` < '2025-01-11 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-11 09:42:21] Production.INFO: count ==473 [2025-01-11 09:42:21] Production.ERROR: pbx CDR StartTime 2025-01-11 06:42:05 - End Time 2025-01-11 09:42:05 [2025-01-11 09:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223413', 'tblTempUsageDetail_20' ) start [2025-01-11 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223413', 'tblTempUsageDetail_20' ) end [2025-01-11 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223413', 'tblTempVendorCDR_20' ) start [2025-01-11 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223413', 'tblTempVendorCDR_20' ) end [2025-01-11 09:42:21] Production.INFO: ProcessCDR(1,14223413,1,1,2) [2025-01-11 09:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223413', 'tblTempUsageDetail_20' ) start [2025-01-11 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223413', 'tblTempUsageDetail_20' ) end [2025-01-11 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:42:24] Production.INFO: ==30379== Releasing lock... [2025-01-11 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:42:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-11 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:43:05 [end_date_ymd] => 2025-01-11 09:43:05 [RateCDR] => 1 ) [2025-01-11 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:43:05' and `end` < '2025-01-11 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:43:20] Production.INFO: count ==473 [2025-01-11 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:43:05 - End Time 2025-01-11 09:43:05 [2025-01-11 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223418', 'tblTempUsageDetail_20' ) start [2025-01-11 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223418', 'tblTempUsageDetail_20' ) end [2025-01-11 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223418', 'tblTempVendorCDR_20' ) start [2025-01-11 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223418', 'tblTempVendorCDR_20' ) end [2025-01-11 09:43:20] Production.INFO: ProcessCDR(1,14223418,1,1,2) [2025-01-11 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223418', 'tblTempUsageDetail_20' ) start [2025-01-11 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223418', 'tblTempUsageDetail_20' ) end [2025-01-11 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:43:23] Production.INFO: ==30456== Releasing lock... [2025-01-11 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:43:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-11 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:44:04 [end_date_ymd] => 2025-01-11 09:44:04 [RateCDR] => 1 ) [2025-01-11 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-11 06:44:04' and `end` < '2025-01-11 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-11 09:44:18] Production.INFO: count ==474 [2025-01-11 09:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:44:04 - End Time 2025-01-11 09:44:04 [2025-01-11 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223423', 'tblTempUsageDetail_20' ) start [2025-01-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223423', 'tblTempUsageDetail_20' ) end [2025-01-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223423', 'tblTempVendorCDR_20' ) start [2025-01-11 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223423', 'tblTempVendorCDR_20' ) end [2025-01-11 09:44:18] Production.INFO: ProcessCDR(1,14223423,1,1,2) [2025-01-11 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223423', 'tblTempUsageDetail_20' ) start [2025-01-11 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223423', 'tblTempUsageDetail_20' ) end [2025-01-11 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:44:21] Production.INFO: ==30526== Releasing lock... [2025-01-11 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:45:05 [end_date_ymd] => 2025-01-11 09:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:45:05' and `end` < '2025-01-11 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-11 09:45:18] Production.INFO: count ==474 [2025-01-11 09:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:45:05 - End Time 2025-01-11 09:45:05 [2025-01-11 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223428', 'tblTempUsageDetail_20' ) start [2025-01-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223428', 'tblTempUsageDetail_20' ) end [2025-01-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223428', 'tblTempVendorCDR_20' ) start [2025-01-11 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223428', 'tblTempVendorCDR_20' ) end [2025-01-11 09:45:18] Production.INFO: ProcessCDR(1,14223428,1,1,2) [2025-01-11 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223428', 'tblTempUsageDetail_20' ) start [2025-01-11 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223428', 'tblTempUsageDetail_20' ) end [2025-01-11 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:45:21] Production.INFO: ==30596== Releasing lock... [2025-01-11 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:45:21] Production.INFO: 32 MB #Memory Used# [2025-01-11 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:46:05 [end_date_ymd] => 2025-01-11 09:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:46:05' and `end` < '2025-01-11 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-11 09:46:18] Production.INFO: count ==479 [2025-01-11 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:46:05 - End Time 2025-01-11 09:46:05 [2025-01-11 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223433', 'tblTempUsageDetail_20' ) start [2025-01-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223433', 'tblTempUsageDetail_20' ) end [2025-01-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223433', 'tblTempVendorCDR_20' ) start [2025-01-11 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223433', 'tblTempVendorCDR_20' ) end [2025-01-11 09:46:18] Production.INFO: ProcessCDR(1,14223433,1,1,2) [2025-01-11 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223433', 'tblTempUsageDetail_20' ) start [2025-01-11 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223433', 'tblTempUsageDetail_20' ) end [2025-01-11 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:46:23] Production.INFO: ==30670== Releasing lock... [2025-01-11 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-11 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:47:05 [end_date_ymd] => 2025-01-11 09:47:05 [RateCDR] => 1 ) [2025-01-11 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:47:05' and `end` < '2025-01-11 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-11 09:47:19] Production.INFO: count ==485 [2025-01-11 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:47:05 - End Time 2025-01-11 09:47:05 [2025-01-11 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223438', 'tblTempUsageDetail_20' ) start [2025-01-11 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223438', 'tblTempUsageDetail_20' ) end [2025-01-11 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223438', 'tblTempVendorCDR_20' ) start [2025-01-11 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223438', 'tblTempVendorCDR_20' ) end [2025-01-11 09:47:19] Production.INFO: ProcessCDR(1,14223438,1,1,2) [2025-01-11 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223438', 'tblTempUsageDetail_20' ) start [2025-01-11 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223438', 'tblTempUsageDetail_20' ) end [2025-01-11 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:47:23] Production.INFO: ==30744== Releasing lock... [2025-01-11 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:48:05 [end_date_ymd] => 2025-01-11 09:48:05 [RateCDR] => 1 ) [2025-01-11 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:48:05' and `end` < '2025-01-11 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:48:18] Production.INFO: count ==487 [2025-01-11 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:48:05 - End Time 2025-01-11 09:48:05 [2025-01-11 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223443', 'tblTempUsageDetail_20' ) start [2025-01-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223443', 'tblTempUsageDetail_20' ) end [2025-01-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223443', 'tblTempVendorCDR_20' ) start [2025-01-11 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223443', 'tblTempVendorCDR_20' ) end [2025-01-11 09:48:18] Production.INFO: ProcessCDR(1,14223443,1,1,2) [2025-01-11 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223443', 'tblTempUsageDetail_20' ) start [2025-01-11 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223443', 'tblTempUsageDetail_20' ) end [2025-01-11 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:48:21] Production.INFO: ==30812== Releasing lock... [2025-01-11 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:49:05 [end_date_ymd] => 2025-01-11 09:49:05 [RateCDR] => 1 ) [2025-01-11 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:49:05' and `end` < '2025-01-11 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:49:18] Production.INFO: count ==505 [2025-01-11 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:49:05 - End Time 2025-01-11 09:49:05 [2025-01-11 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223448', 'tblTempUsageDetail_20' ) start [2025-01-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223448', 'tblTempUsageDetail_20' ) end [2025-01-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223448', 'tblTempVendorCDR_20' ) start [2025-01-11 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223448', 'tblTempVendorCDR_20' ) end [2025-01-11 09:49:18] Production.INFO: ProcessCDR(1,14223448,1,1,2) [2025-01-11 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223448', 'tblTempUsageDetail_20' ) start [2025-01-11 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223448', 'tblTempUsageDetail_20' ) end [2025-01-11 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:49:21] Production.INFO: ==30883== Releasing lock... [2025-01-11 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:50:06 [end_date_ymd] => 2025-01-11 09:50:06 [RateCDR] => 1 ) [2025-01-11 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-11 06:50:06' and `end` < '2025-01-11 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-11 09:50:19] Production.INFO: count ==523 [2025-01-11 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:50:06 - End Time 2025-01-11 09:50:06 [2025-01-11 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223454', 'tblTempUsageDetail_20' ) start [2025-01-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223454', 'tblTempUsageDetail_20' ) end [2025-01-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223454', 'tblTempVendorCDR_20' ) start [2025-01-11 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223454', 'tblTempVendorCDR_20' ) end [2025-01-11 09:50:19] Production.INFO: ProcessCDR(1,14223454,1,1,2) [2025-01-11 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223454', 'tblTempUsageDetail_20' ) start [2025-01-11 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223454', 'tblTempUsageDetail_20' ) end [2025-01-11 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:50:24] Production.INFO: ==30958== Releasing lock... [2025-01-11 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:51:04 [end_date_ymd] => 2025-01-11 09:51:04 [RateCDR] => 1 ) [2025-01-11 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:51:04' and `end` < '2025-01-11 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-11 09:51:18] Production.INFO: count ==531 [2025-01-11 09:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 06:51:04 - End Time 2025-01-11 09:51:04 [2025-01-11 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223459', 'tblTempUsageDetail_20' ) start [2025-01-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223459', 'tblTempUsageDetail_20' ) end [2025-01-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223459', 'tblTempVendorCDR_20' ) start [2025-01-11 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223459', 'tblTempVendorCDR_20' ) end [2025-01-11 09:51:18] Production.INFO: ProcessCDR(1,14223459,1,1,2) [2025-01-11 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223459', 'tblTempUsageDetail_20' ) start [2025-01-11 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223459', 'tblTempUsageDetail_20' ) end [2025-01-11 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:51:21] Production.INFO: ==31031== Releasing lock... [2025-01-11 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:52:05 [end_date_ymd] => 2025-01-11 09:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:52:05' and `end` < '2025-01-11 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-11 09:52:20] Production.INFO: count ==532 [2025-01-11 09:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 06:52:05 - End Time 2025-01-11 09:52:05 [2025-01-11 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223464', 'tblTempUsageDetail_20' ) start [2025-01-11 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223464', 'tblTempUsageDetail_20' ) end [2025-01-11 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223464', 'tblTempVendorCDR_20' ) start [2025-01-11 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223464', 'tblTempVendorCDR_20' ) end [2025-01-11 09:52:20] Production.INFO: ProcessCDR(1,14223464,1,1,2) [2025-01-11 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223464', 'tblTempUsageDetail_20' ) start [2025-01-11 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223464', 'tblTempUsageDetail_20' ) end [2025-01-11 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:52:23] Production.INFO: ==31104== Releasing lock... [2025-01-11 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:53:04 [end_date_ymd] => 2025-01-11 09:53:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:53:04' and `end` < '2025-01-11 09: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-11 09:53:17] Production.INFO: count ==544 [2025-01-11 09:53:17] Production.ERROR: pbx CDR StartTime 2025-01-11 06:53:04 - End Time 2025-01-11 09:53:04 [2025-01-11 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223469', 'tblTempUsageDetail_20' ) start [2025-01-11 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223469', 'tblTempUsageDetail_20' ) end [2025-01-11 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223469', 'tblTempVendorCDR_20' ) start [2025-01-11 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223469', 'tblTempVendorCDR_20' ) end [2025-01-11 09:53:17] Production.INFO: ProcessCDR(1,14223469,1,1,2) [2025-01-11 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223469', 'tblTempUsageDetail_20' ) start [2025-01-11 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223469', 'tblTempUsageDetail_20' ) end [2025-01-11 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:53:21] Production.INFO: ==31215== Releasing lock... [2025-01-11 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-11 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:54:05 [end_date_ymd] => 2025-01-11 09:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:54:05' and `end` < '2025-01-11 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-11 09:54:19] Production.INFO: count ==561 [2025-01-11 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:54:05 - End Time 2025-01-11 09:54:05 [2025-01-11 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223474', 'tblTempUsageDetail_20' ) start [2025-01-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223474', 'tblTempUsageDetail_20' ) end [2025-01-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223474', 'tblTempVendorCDR_20' ) start [2025-01-11 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223474', 'tblTempVendorCDR_20' ) end [2025-01-11 09:54:19] Production.INFO: ProcessCDR(1,14223474,1,1,2) [2025-01-11 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223474', 'tblTempUsageDetail_20' ) start [2025-01-11 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223474', 'tblTempUsageDetail_20' ) end [2025-01-11 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:54:23] Production.INFO: ==31286== Releasing lock... [2025-01-11 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:54:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:55:04 [end_date_ymd] => 2025-01-11 09:55:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:55:04' and `end` < '2025-01-11 09: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-11 09:55:17] Production.INFO: count ==566 [2025-01-11 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-11 06:55:04 - End Time 2025-01-11 09:55:04 [2025-01-11 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223479', 'tblTempUsageDetail_20' ) start [2025-01-11 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223479', 'tblTempUsageDetail_20' ) end [2025-01-11 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223479', 'tblTempVendorCDR_20' ) start [2025-01-11 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223479', 'tblTempVendorCDR_20' ) end [2025-01-11 09:55:17] Production.INFO: ProcessCDR(1,14223479,1,1,2) [2025-01-11 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223479', 'tblTempUsageDetail_20' ) start [2025-01-11 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223479', 'tblTempUsageDetail_20' ) end [2025-01-11 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:55:21] Production.INFO: ==31356== Releasing lock... [2025-01-11 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:56:05 [end_date_ymd] => 2025-01-11 09:56:05 [RateCDR] => 1 ) [2025-01-11 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 06:56:05' and `end` < '2025-01-11 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 09:56:19] Production.INFO: count ==572 [2025-01-11 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:56:05 - End Time 2025-01-11 09:56:05 [2025-01-11 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223484', 'tblTempUsageDetail_20' ) start [2025-01-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223484', 'tblTempUsageDetail_20' ) end [2025-01-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223484', 'tblTempVendorCDR_20' ) start [2025-01-11 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223484', 'tblTempVendorCDR_20' ) end [2025-01-11 09:56:19] Production.INFO: ProcessCDR(1,14223484,1,1,2) [2025-01-11 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223484', 'tblTempUsageDetail_20' ) start [2025-01-11 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223484', 'tblTempUsageDetail_20' ) end [2025-01-11 09:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:56:22] Production.INFO: ==31431== Releasing lock... [2025-01-11 09:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:57:04 [end_date_ymd] => 2025-01-11 09:57:04 [RateCDR] => 1 ) [2025-01-11 09: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-11 06:57:04' and `end` < '2025-01-11 09: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-11 09:57:18] Production.INFO: count ==586 [2025-01-11 09:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:57:04 - End Time 2025-01-11 09:57:04 [2025-01-11 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223489', 'tblTempUsageDetail_20' ) start [2025-01-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223489', 'tblTempUsageDetail_20' ) end [2025-01-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223489', 'tblTempVendorCDR_20' ) start [2025-01-11 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223489', 'tblTempVendorCDR_20' ) end [2025-01-11 09:57:19] Production.INFO: ProcessCDR(1,14223489,1,1,2) [2025-01-11 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223489', 'tblTempUsageDetail_20' ) start [2025-01-11 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223489', 'tblTempUsageDetail_20' ) end [2025-01-11 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:57:22] Production.INFO: ==31506== Releasing lock... [2025-01-11 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-11 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:58:05 [end_date_ymd] => 2025-01-11 09:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:58:05' and `end` < '2025-01-11 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-11 09:58:19] Production.INFO: count ==601 [2025-01-11 09:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:58:05 - End Time 2025-01-11 09:58:05 [2025-01-11 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223494', 'tblTempUsageDetail_20' ) start [2025-01-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223494', 'tblTempUsageDetail_20' ) end [2025-01-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223494', 'tblTempVendorCDR_20' ) start [2025-01-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223494', 'tblTempVendorCDR_20' ) end [2025-01-11 09:58:20] Production.INFO: ProcessCDR(1,14223494,1,1,2) [2025-01-11 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223494', 'tblTempUsageDetail_20' ) start [2025-01-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223494', 'tblTempUsageDetail_20' ) end [2025-01-11 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:58:24] Production.INFO: ==31577== Releasing lock... [2025-01-11 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:58:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-11 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 06:59:05 [end_date_ymd] => 2025-01-11 09:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 06:59:05' and `end` < '2025-01-11 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-11 09:59:19] Production.INFO: count ==603 [2025-01-11 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 06:59:05 - End Time 2025-01-11 09:59:05 [2025-01-11 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223499', 'tblTempUsageDetail_20' ) start [2025-01-11 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223499', 'tblTempUsageDetail_20' ) end [2025-01-11 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223499', 'tblTempVendorCDR_20' ) start [2025-01-11 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223499', 'tblTempVendorCDR_20' ) end [2025-01-11 09:59:19] Production.INFO: ProcessCDR(1,14223499,1,1,2) [2025-01-11 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223499', 'tblTempUsageDetail_20' ) start [2025-01-11 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223499', 'tblTempUsageDetail_20' ) end [2025-01-11 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 09:59:23] Production.INFO: ==31647== Releasing lock... [2025-01-11 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 09:59:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:00:05 [end_date_ymd] => 2025-01-11 10:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:00:05' and `end` < '2025-01-11 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-11 10:00:19] Production.INFO: count ==615 [2025-01-11 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:00:05 - End Time 2025-01-11 10:00:05 [2025-01-11 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223504', 'tblTempUsageDetail_20' ) start [2025-01-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223504', 'tblTempUsageDetail_20' ) end [2025-01-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223504', 'tblTempVendorCDR_20' ) start [2025-01-11 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223504', 'tblTempVendorCDR_20' ) end [2025-01-11 10:00:19] Production.INFO: ProcessCDR(1,14223504,1,1,2) [2025-01-11 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223504', 'tblTempUsageDetail_20' ) start [2025-01-11 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223504', 'tblTempUsageDetail_20' ) end [2025-01-11 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:00:24] Production.INFO: ==31724== Releasing lock... [2025-01-11 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:01:04 [end_date_ymd] => 2025-01-11 10:01:04 [RateCDR] => 1 ) [2025-01-11 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-11 07:01:04' and `end` < '2025-01-11 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-11 10:01:17] Production.INFO: count ==621 [2025-01-11 10:01:17] Production.ERROR: pbx CDR StartTime 2025-01-11 07:01:04 - End Time 2025-01-11 10:01:04 [2025-01-11 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223510', 'tblTempUsageDetail_20' ) start [2025-01-11 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223510', 'tblTempUsageDetail_20' ) end [2025-01-11 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223510', 'tblTempVendorCDR_20' ) start [2025-01-11 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223510', 'tblTempVendorCDR_20' ) end [2025-01-11 10:01:17] Production.INFO: ProcessCDR(1,14223510,1,1,2) [2025-01-11 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223510', 'tblTempUsageDetail_20' ) start [2025-01-11 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223510', 'tblTempUsageDetail_20' ) end [2025-01-11 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:01:21] Production.INFO: ==31816== Releasing lock... [2025-01-11 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-11 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:02:04 [end_date_ymd] => 2025-01-11 10:02:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:02:04' and `end` < '2025-01-11 10: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-11 10:02:18] Production.INFO: count ==621 [2025-01-11 10:02:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:02:04 - End Time 2025-01-11 10:02:04 [2025-01-11 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223515', 'tblTempUsageDetail_20' ) start [2025-01-11 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223515', 'tblTempUsageDetail_20' ) end [2025-01-11 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223515', 'tblTempVendorCDR_20' ) start [2025-01-11 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223515', 'tblTempVendorCDR_20' ) end [2025-01-11 10:02:18] Production.INFO: ProcessCDR(1,14223515,1,1,2) [2025-01-11 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223515', 'tblTempUsageDetail_20' ) start [2025-01-11 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223515', 'tblTempUsageDetail_20' ) end [2025-01-11 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:02:21] Production.INFO: ==31888== Releasing lock... [2025-01-11 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-11 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:03:05 [end_date_ymd] => 2025-01-11 10:03:05 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:03:05' and `end` < '2025-01-11 10: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-11 10:03:20] Production.INFO: count ==627 [2025-01-11 10:03:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:03:05 - End Time 2025-01-11 10:03:05 [2025-01-11 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223520', 'tblTempUsageDetail_20' ) start [2025-01-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223520', 'tblTempUsageDetail_20' ) end [2025-01-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223520', 'tblTempVendorCDR_20' ) start [2025-01-11 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223520', 'tblTempVendorCDR_20' ) end [2025-01-11 10:03:20] Production.INFO: ProcessCDR(1,14223520,1,1,2) [2025-01-11 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223520', 'tblTempUsageDetail_20' ) start [2025-01-11 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223520', 'tblTempUsageDetail_20' ) end [2025-01-11 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:03:23] Production.INFO: ==31961== Releasing lock... [2025-01-11 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:03:23] Production.INFO: 33 MB #Memory Used# [2025-01-11 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:04:05 [end_date_ymd] => 2025-01-11 10:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:04:05' and `end` < '2025-01-11 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-11 10:04:18] Production.INFO: count ==634 [2025-01-11 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:04:05 - End Time 2025-01-11 10:04:05 [2025-01-11 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223525', 'tblTempUsageDetail_20' ) start [2025-01-11 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223525', 'tblTempUsageDetail_20' ) end [2025-01-11 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223525', 'tblTempVendorCDR_20' ) start [2025-01-11 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223525', 'tblTempVendorCDR_20' ) end [2025-01-11 10:04:18] Production.INFO: ProcessCDR(1,14223525,1,1,2) [2025-01-11 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223525', 'tblTempUsageDetail_20' ) start [2025-01-11 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223525', 'tblTempUsageDetail_20' ) end [2025-01-11 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:04:21] Production.INFO: ==32034== Releasing lock... [2025-01-11 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:05:05 [end_date_ymd] => 2025-01-11 10:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:05:05' and `end` < '2025-01-11 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-11 10:05:20] Production.INFO: count ==643 [2025-01-11 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:05:05 - End Time 2025-01-11 10:05:05 [2025-01-11 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223530', 'tblTempUsageDetail_20' ) start [2025-01-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223530', 'tblTempUsageDetail_20' ) end [2025-01-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223530', 'tblTempVendorCDR_20' ) start [2025-01-11 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223530', 'tblTempVendorCDR_20' ) end [2025-01-11 10:05:20] Production.INFO: ProcessCDR(1,14223530,1,1,2) [2025-01-11 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223530', 'tblTempUsageDetail_20' ) start [2025-01-11 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223530', 'tblTempUsageDetail_20' ) end [2025-01-11 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:05:23] Production.INFO: ==32105== Releasing lock... [2025-01-11 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:05:23] Production.INFO: 33 MB #Memory Used# [2025-01-11 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:06:04 [end_date_ymd] => 2025-01-11 10:06:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:06:04' and `end` < '2025-01-11 10: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-11 10:06:17] Production.INFO: count ==646 [2025-01-11 10:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:06:04 - End Time 2025-01-11 10:06:04 [2025-01-11 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223535', 'tblTempUsageDetail_20' ) start [2025-01-11 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223535', 'tblTempUsageDetail_20' ) end [2025-01-11 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223535', 'tblTempVendorCDR_20' ) start [2025-01-11 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223535', 'tblTempVendorCDR_20' ) end [2025-01-11 10:06:18] Production.INFO: ProcessCDR(1,14223535,1,1,2) [2025-01-11 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223535', 'tblTempUsageDetail_20' ) start [2025-01-11 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223535', 'tblTempUsageDetail_20' ) end [2025-01-11 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:06:21] Production.INFO: ==32179== Releasing lock... [2025-01-11 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:07:04 [end_date_ymd] => 2025-01-11 10:07:04 [RateCDR] => 1 ) [2025-01-11 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-11 07:07:04' and `end` < '2025-01-11 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-11 10:07:18] Production.INFO: count ==653 [2025-01-11 10:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:07:04 - End Time 2025-01-11 10:07:04 [2025-01-11 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223540', 'tblTempUsageDetail_20' ) start [2025-01-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223540', 'tblTempUsageDetail_20' ) end [2025-01-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223540', 'tblTempVendorCDR_20' ) start [2025-01-11 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223540', 'tblTempVendorCDR_20' ) end [2025-01-11 10:07:18] Production.INFO: ProcessCDR(1,14223540,1,1,2) [2025-01-11 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223540', 'tblTempUsageDetail_20' ) start [2025-01-11 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223540', 'tblTempUsageDetail_20' ) end [2025-01-11 10:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:07:23] Production.INFO: ==32249== Releasing lock... [2025-01-11 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:08:04 [end_date_ymd] => 2025-01-11 10:08:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:08:04' and `end` < '2025-01-11 10: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-11 10:08:18] Production.INFO: count ==662 [2025-01-11 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:08:04 - End Time 2025-01-11 10:08:04 [2025-01-11 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223545', 'tblTempUsageDetail_20' ) start [2025-01-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223545', 'tblTempUsageDetail_20' ) end [2025-01-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223545', 'tblTempVendorCDR_20' ) start [2025-01-11 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223545', 'tblTempVendorCDR_20' ) end [2025-01-11 10:08:19] Production.INFO: ProcessCDR(1,14223545,1,1,2) [2025-01-11 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223545', 'tblTempUsageDetail_20' ) start [2025-01-11 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223545', 'tblTempUsageDetail_20' ) end [2025-01-11 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:08:22] Production.INFO: ==32360== Releasing lock... [2025-01-11 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:09:05 [end_date_ymd] => 2025-01-11 10:09:05 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:09:05' and `end` < '2025-01-11 10: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-11 10:09:18] Production.INFO: count ==666 [2025-01-11 10:09:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:09:05 - End Time 2025-01-11 10:09:05 [2025-01-11 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223550', 'tblTempUsageDetail_20' ) start [2025-01-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223550', 'tblTempUsageDetail_20' ) end [2025-01-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223550', 'tblTempVendorCDR_20' ) start [2025-01-11 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223550', 'tblTempVendorCDR_20' ) end [2025-01-11 10:09:18] Production.INFO: ProcessCDR(1,14223550,1,1,2) [2025-01-11 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223550', 'tblTempUsageDetail_20' ) start [2025-01-11 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223550', 'tblTempUsageDetail_20' ) end [2025-01-11 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:09:23] Production.INFO: ==32435== Releasing lock... [2025-01-11 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:09:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-11 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:10:05 [end_date_ymd] => 2025-01-11 10:10:05 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:10:05' and `end` < '2025-01-11 10: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-11 10:10:18] Production.INFO: count ==686 [2025-01-11 10:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:10:05 - End Time 2025-01-11 10:10:05 [2025-01-11 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223555', 'tblTempUsageDetail_20' ) start [2025-01-11 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223555', 'tblTempUsageDetail_20' ) end [2025-01-11 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223555', 'tblTempVendorCDR_20' ) start [2025-01-11 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223555', 'tblTempVendorCDR_20' ) end [2025-01-11 10:10:18] Production.INFO: ProcessCDR(1,14223555,1,1,2) [2025-01-11 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223555', 'tblTempUsageDetail_20' ) start [2025-01-11 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223555', 'tblTempUsageDetail_20' ) end [2025-01-11 10:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:10:22] Production.INFO: ==32508== Releasing lock... [2025-01-11 10:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:11:05 [end_date_ymd] => 2025-01-11 10:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:11:05' and `end` < '2025-01-11 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-11 10:11:20] Production.INFO: count ==731 [2025-01-11 10:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:11:05 - End Time 2025-01-11 10:11:05 [2025-01-11 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223561', 'tblTempUsageDetail_20' ) start [2025-01-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223561', 'tblTempUsageDetail_20' ) end [2025-01-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223561', 'tblTempVendorCDR_20' ) start [2025-01-11 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223561', 'tblTempVendorCDR_20' ) end [2025-01-11 10:11:20] Production.INFO: ProcessCDR(1,14223561,1,1,2) [2025-01-11 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223561', 'tblTempUsageDetail_20' ) start [2025-01-11 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223561', 'tblTempUsageDetail_20' ) end [2025-01-11 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:11:25] Production.INFO: ==32582== Releasing lock... [2025-01-11 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:11:25] Production.INFO: 34 MB #Memory Used# [2025-01-11 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:12:05 [end_date_ymd] => 2025-01-11 10:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:12:05' and `end` < '2025-01-11 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:12:20] Production.INFO: count ==731 [2025-01-11 10:12:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:12:05 - End Time 2025-01-11 10:12:05 [2025-01-11 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223566', 'tblTempUsageDetail_20' ) start [2025-01-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223566', 'tblTempUsageDetail_20' ) end [2025-01-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223566', 'tblTempVendorCDR_20' ) start [2025-01-11 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223566', 'tblTempVendorCDR_20' ) end [2025-01-11 10:12:20] Production.INFO: ProcessCDR(1,14223566,1,1,2) [2025-01-11 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223566', 'tblTempUsageDetail_20' ) start [2025-01-11 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223566', 'tblTempUsageDetail_20' ) end [2025-01-11 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:12:23] Production.INFO: ==32653== Releasing lock... [2025-01-11 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:12:23] Production.INFO: 34 MB #Memory Used# [2025-01-11 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:13:04 [end_date_ymd] => 2025-01-11 10:13:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:13:04' and `end` < '2025-01-11 10: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-11 10:13:18] Production.INFO: count ==733 [2025-01-11 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:13:04 - End Time 2025-01-11 10:13:04 [2025-01-11 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223571', 'tblTempUsageDetail_20' ) start [2025-01-11 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223571', 'tblTempUsageDetail_20' ) end [2025-01-11 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223571', 'tblTempVendorCDR_20' ) start [2025-01-11 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223571', 'tblTempVendorCDR_20' ) end [2025-01-11 10:13:18] Production.INFO: ProcessCDR(1,14223571,1,1,2) [2025-01-11 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223571', 'tblTempUsageDetail_20' ) start [2025-01-11 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223571', 'tblTempUsageDetail_20' ) end [2025-01-11 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:13:21] Production.INFO: ==32728== Releasing lock... [2025-01-11 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:13:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:14:05 [end_date_ymd] => 2025-01-11 10:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:14:05' and `end` < '2025-01-11 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-11 10:14:20] Production.INFO: count ==740 [2025-01-11 10:14:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:14:05 - End Time 2025-01-11 10:14:05 [2025-01-11 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223576', 'tblTempUsageDetail_20' ) start [2025-01-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223576', 'tblTempUsageDetail_20' ) end [2025-01-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223576', 'tblTempVendorCDR_20' ) start [2025-01-11 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223576', 'tblTempVendorCDR_20' ) end [2025-01-11 10:14:20] Production.INFO: ProcessCDR(1,14223576,1,1,2) [2025-01-11 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223576', 'tblTempUsageDetail_20' ) start [2025-01-11 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223576', 'tblTempUsageDetail_20' ) end [2025-01-11 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:14:23] Production.INFO: ==338== Releasing lock... [2025-01-11 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:15:05 [end_date_ymd] => 2025-01-11 10:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:15:05' and `end` < '2025-01-11 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-11 10:15:18] Production.INFO: count ==741 [2025-01-11 10:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:15:05 - End Time 2025-01-11 10:15:05 [2025-01-11 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223581', 'tblTempUsageDetail_20' ) start [2025-01-11 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223581', 'tblTempUsageDetail_20' ) end [2025-01-11 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223581', 'tblTempVendorCDR_20' ) start [2025-01-11 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223581', 'tblTempVendorCDR_20' ) end [2025-01-11 10:15:18] Production.INFO: ProcessCDR(1,14223581,1,1,2) [2025-01-11 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223581', 'tblTempUsageDetail_20' ) start [2025-01-11 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223581', 'tblTempUsageDetail_20' ) end [2025-01-11 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:15:21] Production.INFO: ==421== Releasing lock... [2025-01-11 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:16:04 [end_date_ymd] => 2025-01-11 10:16:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:16:04' and `end` < '2025-01-11 10: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-11 10:16:18] Production.INFO: count ==747 [2025-01-11 10:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:16:04 - End Time 2025-01-11 10:16:04 [2025-01-11 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223586', 'tblTempUsageDetail_20' ) start [2025-01-11 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223586', 'tblTempUsageDetail_20' ) end [2025-01-11 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223586', 'tblTempVendorCDR_20' ) start [2025-01-11 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223586', 'tblTempVendorCDR_20' ) end [2025-01-11 10:16:18] Production.INFO: ProcessCDR(1,14223586,1,1,2) [2025-01-11 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223586', 'tblTempUsageDetail_20' ) start [2025-01-11 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223586', 'tblTempUsageDetail_20' ) end [2025-01-11 10:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:16:21] Production.INFO: ==494== Releasing lock... [2025-01-11 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:16:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:17:04 [end_date_ymd] => 2025-01-11 10:17:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:17:04' and `end` < '2025-01-11 10: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-11 10:17:17] Production.INFO: count ==753 [2025-01-11 10:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:17:04 - End Time 2025-01-11 10:17:04 [2025-01-11 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223591', 'tblTempUsageDetail_20' ) start [2025-01-11 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223591', 'tblTempUsageDetail_20' ) end [2025-01-11 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223591', 'tblTempVendorCDR_20' ) start [2025-01-11 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223591', 'tblTempVendorCDR_20' ) end [2025-01-11 10:17:18] Production.INFO: ProcessCDR(1,14223591,1,1,2) [2025-01-11 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223591', 'tblTempUsageDetail_20' ) start [2025-01-11 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223591', 'tblTempUsageDetail_20' ) end [2025-01-11 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:17:21] Production.INFO: ==566== Releasing lock... [2025-01-11 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:17:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-11 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:18:05 [end_date_ymd] => 2025-01-11 10:18:05 [RateCDR] => 1 ) [2025-01-11 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:18:05' and `end` < '2025-01-11 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:18:19] Production.INFO: count ==774 [2025-01-11 10:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:18:05 - End Time 2025-01-11 10:18:05 [2025-01-11 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223596', 'tblTempUsageDetail_20' ) start [2025-01-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223596', 'tblTempUsageDetail_20' ) end [2025-01-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223596', 'tblTempVendorCDR_20' ) start [2025-01-11 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223596', 'tblTempVendorCDR_20' ) end [2025-01-11 10:18:19] Production.INFO: ProcessCDR(1,14223596,1,1,2) [2025-01-11 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223596', 'tblTempUsageDetail_20' ) start [2025-01-11 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223596', 'tblTempUsageDetail_20' ) end [2025-01-11 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:18:24] Production.INFO: ==648== Releasing lock... [2025-01-11 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:18:24] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:19:04 [end_date_ymd] => 2025-01-11 10:19:04 [RateCDR] => 1 ) [2025-01-11 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-11 07:19:04' and `end` < '2025-01-11 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-11 10:19:17] Production.INFO: count ==798 [2025-01-11 10:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:19:04 - End Time 2025-01-11 10:19:04 [2025-01-11 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223601', 'tblTempUsageDetail_20' ) start [2025-01-11 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223601', 'tblTempUsageDetail_20' ) end [2025-01-11 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223601', 'tblTempVendorCDR_20' ) start [2025-01-11 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223601', 'tblTempVendorCDR_20' ) end [2025-01-11 10:19:18] Production.INFO: ProcessCDR(1,14223601,1,1,2) [2025-01-11 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223601', 'tblTempUsageDetail_20' ) start [2025-01-11 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223601', 'tblTempUsageDetail_20' ) end [2025-01-11 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:19:21] Production.INFO: ==741== Releasing lock... [2025-01-11 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-11 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:20:05 [end_date_ymd] => 2025-01-11 10:20:05 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:20:05' and `end` < '2025-01-11 10: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-11 10:20:19] Production.INFO: count ==802 [2025-01-11 10:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:20:05 - End Time 2025-01-11 10:20:05 [2025-01-11 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223607', 'tblTempUsageDetail_20' ) start [2025-01-11 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223607', 'tblTempUsageDetail_20' ) end [2025-01-11 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223607', 'tblTempVendorCDR_20' ) start [2025-01-11 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223607', 'tblTempVendorCDR_20' ) end [2025-01-11 10:20:19] Production.INFO: ProcessCDR(1,14223607,1,1,2) [2025-01-11 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223607', 'tblTempUsageDetail_20' ) start [2025-01-11 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223607', 'tblTempUsageDetail_20' ) end [2025-01-11 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:20:22] Production.INFO: ==818== Releasing lock... [2025-01-11 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-11 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:21:06 [end_date_ymd] => 2025-01-11 10:21:06 [RateCDR] => 1 ) [2025-01-11 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:21:06' and `end` < '2025-01-11 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:21:20] Production.INFO: count ==824 [2025-01-11 10:21:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:21:06 - End Time 2025-01-11 10:21:06 [2025-01-11 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223612', 'tblTempUsageDetail_20' ) start [2025-01-11 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223612', 'tblTempUsageDetail_20' ) end [2025-01-11 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223612', 'tblTempVendorCDR_20' ) start [2025-01-11 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223612', 'tblTempVendorCDR_20' ) end [2025-01-11 10:21:20] Production.INFO: ProcessCDR(1,14223612,1,1,2) [2025-01-11 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223612', 'tblTempUsageDetail_20' ) start [2025-01-11 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223612', 'tblTempUsageDetail_20' ) end [2025-01-11 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:21:23] Production.INFO: ==893== Releasing lock... [2025-01-11 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:21:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-11 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:22:05 [end_date_ymd] => 2025-01-11 10:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:22:05' and `end` < '2025-01-11 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-11 10:22:18] Production.INFO: count ==825 [2025-01-11 10:22:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:22:05 - End Time 2025-01-11 10:22:05 [2025-01-11 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223617', 'tblTempUsageDetail_20' ) start [2025-01-11 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223617', 'tblTempUsageDetail_20' ) end [2025-01-11 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223617', 'tblTempVendorCDR_20' ) start [2025-01-11 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223617', 'tblTempVendorCDR_20' ) end [2025-01-11 10:22:18] Production.INFO: ProcessCDR(1,14223617,1,1,2) [2025-01-11 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223617', 'tblTempUsageDetail_20' ) start [2025-01-11 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223617', 'tblTempUsageDetail_20' ) end [2025-01-11 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:22:23] Production.INFO: ==967== Releasing lock... [2025-01-11 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:22:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-11 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:23:04 [end_date_ymd] => 2025-01-11 10:23:04 [RateCDR] => 1 ) [2025-01-11 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-11 07:23:04' and `end` < '2025-01-11 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-11 10:23:18] Production.INFO: count ==825 [2025-01-11 10:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:23:04 - End Time 2025-01-11 10:23:04 [2025-01-11 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223622', 'tblTempUsageDetail_20' ) start [2025-01-11 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223622', 'tblTempUsageDetail_20' ) end [2025-01-11 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223622', 'tblTempVendorCDR_20' ) start [2025-01-11 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223622', 'tblTempVendorCDR_20' ) end [2025-01-11 10:23:18] Production.INFO: ProcessCDR(1,14223622,1,1,2) [2025-01-11 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223622', 'tblTempUsageDetail_20' ) start [2025-01-11 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223622', 'tblTempUsageDetail_20' ) end [2025-01-11 10:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:23:21] Production.INFO: ==1039== Releasing lock... [2025-01-11 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-11 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:24:05 [end_date_ymd] => 2025-01-11 10:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:24:05' and `end` < '2025-01-11 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-11 10:24:18] Production.INFO: count ==825 [2025-01-11 10:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:24:05 - End Time 2025-01-11 10:24:05 [2025-01-11 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223627', 'tblTempUsageDetail_20' ) start [2025-01-11 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223627', 'tblTempUsageDetail_20' ) end [2025-01-11 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223627', 'tblTempVendorCDR_20' ) start [2025-01-11 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223627', 'tblTempVendorCDR_20' ) end [2025-01-11 10:24:18] Production.INFO: ProcessCDR(1,14223627,1,1,2) [2025-01-11 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223627', 'tblTempUsageDetail_20' ) start [2025-01-11 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223627', 'tblTempUsageDetail_20' ) end [2025-01-11 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:24:21] Production.INFO: ==1152== Releasing lock... [2025-01-11 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:25:05 [end_date_ymd] => 2025-01-11 10:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:25:05' and `end` < '2025-01-11 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-11 10:25:18] Production.INFO: count ==843 [2025-01-11 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:25:05 - End Time 2025-01-11 10:25:05 [2025-01-11 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223632', 'tblTempUsageDetail_20' ) start [2025-01-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223632', 'tblTempUsageDetail_20' ) end [2025-01-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223632', 'tblTempVendorCDR_20' ) start [2025-01-11 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223632', 'tblTempVendorCDR_20' ) end [2025-01-11 10:25:19] Production.INFO: ProcessCDR(1,14223632,1,1,2) [2025-01-11 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223632', 'tblTempUsageDetail_20' ) start [2025-01-11 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223632', 'tblTempUsageDetail_20' ) end [2025-01-11 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:25:23] Production.INFO: ==1231== Releasing lock... [2025-01-11 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:25:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:26:04 [end_date_ymd] => 2025-01-11 10:26:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:26:04' and `end` < '2025-01-11 10: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-11 10:26:17] Production.INFO: count ==847 [2025-01-11 10:26:17] Production.ERROR: pbx CDR StartTime 2025-01-11 07:26:04 - End Time 2025-01-11 10:26:04 [2025-01-11 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223637', 'tblTempUsageDetail_20' ) start [2025-01-11 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223637', 'tblTempUsageDetail_20' ) end [2025-01-11 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223637', 'tblTempVendorCDR_20' ) start [2025-01-11 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223637', 'tblTempVendorCDR_20' ) end [2025-01-11 10:26:17] Production.INFO: ProcessCDR(1,14223637,1,1,2) [2025-01-11 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223637', 'tblTempUsageDetail_20' ) start [2025-01-11 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223637', 'tblTempUsageDetail_20' ) end [2025-01-11 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:26:21] Production.INFO: ==1316== Releasing lock... [2025-01-11 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:26:21] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:27:05 [end_date_ymd] => 2025-01-11 10:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:27:05' and `end` < '2025-01-11 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-11 10:27:18] Production.INFO: count ==852 [2025-01-11 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:27:05 - End Time 2025-01-11 10:27:05 [2025-01-11 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223642', 'tblTempUsageDetail_20' ) start [2025-01-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223642', 'tblTempUsageDetail_20' ) end [2025-01-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223642', 'tblTempVendorCDR_20' ) start [2025-01-11 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223642', 'tblTempVendorCDR_20' ) end [2025-01-11 10:27:19] Production.INFO: ProcessCDR(1,14223642,1,1,2) [2025-01-11 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223642', 'tblTempUsageDetail_20' ) start [2025-01-11 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223642', 'tblTempUsageDetail_20' ) end [2025-01-11 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:27:23] Production.INFO: ==1388== Releasing lock... [2025-01-11 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:27:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:28:05 [end_date_ymd] => 2025-01-11 10:28:05 [RateCDR] => 1 ) [2025-01-11 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:28:05' and `end` < '2025-01-11 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:28:21] Production.INFO: count ==852 [2025-01-11 10:28:22] Production.ERROR: pbx CDR StartTime 2025-01-11 07:28:05 - End Time 2025-01-11 10:28:05 [2025-01-11 10:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223647', 'tblTempUsageDetail_20' ) start [2025-01-11 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223647', 'tblTempUsageDetail_20' ) end [2025-01-11 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223647', 'tblTempVendorCDR_20' ) start [2025-01-11 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223647', 'tblTempVendorCDR_20' ) end [2025-01-11 10:28:22] Production.INFO: ProcessCDR(1,14223647,1,1,2) [2025-01-11 10:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223647', 'tblTempUsageDetail_20' ) start [2025-01-11 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223647', 'tblTempUsageDetail_20' ) end [2025-01-11 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:28:25] Production.INFO: ==1461== Releasing lock... [2025-01-11 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:28:25] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:29:05 [end_date_ymd] => 2025-01-11 10:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:29:05' and `end` < '2025-01-11 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-11 10:29:18] Production.INFO: count ==852 [2025-01-11 10:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:29:05 - End Time 2025-01-11 10:29:05 [2025-01-11 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223652', 'tblTempUsageDetail_20' ) start [2025-01-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223652', 'tblTempUsageDetail_20' ) end [2025-01-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223652', 'tblTempVendorCDR_20' ) start [2025-01-11 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223652', 'tblTempVendorCDR_20' ) end [2025-01-11 10:29:19] Production.INFO: ProcessCDR(1,14223652,1,1,2) [2025-01-11 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223652', 'tblTempUsageDetail_20' ) start [2025-01-11 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223652', 'tblTempUsageDetail_20' ) end [2025-01-11 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:29:22] Production.INFO: ==1562== Releasing lock... [2025-01-11 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:30:06 [end_date_ymd] => 2025-01-11 10:30:06 [RateCDR] => 1 ) [2025-01-11 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:30:06' and `end` < '2025-01-11 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:30:20] Production.INFO: count ==866 [2025-01-11 10:30:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:30:06 - End Time 2025-01-11 10:30:06 [2025-01-11 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223658', 'tblTempUsageDetail_20' ) start [2025-01-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223658', 'tblTempUsageDetail_20' ) end [2025-01-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223658', 'tblTempVendorCDR_20' ) start [2025-01-11 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223658', 'tblTempVendorCDR_20' ) end [2025-01-11 10:30:20] Production.INFO: ProcessCDR(1,14223658,1,1,2) [2025-01-11 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223658', 'tblTempUsageDetail_20' ) start [2025-01-11 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223658', 'tblTempUsageDetail_20' ) end [2025-01-11 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:30:23] Production.INFO: ==1638== Releasing lock... [2025-01-11 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:31:05 [end_date_ymd] => 2025-01-11 10:31:05 [RateCDR] => 1 ) [2025-01-11 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:31:05' and `end` < '2025-01-11 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:31:18] Production.INFO: count ==882 [2025-01-11 10:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:31:05 - End Time 2025-01-11 10:31:05 [2025-01-11 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223663', 'tblTempUsageDetail_20' ) start [2025-01-11 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223663', 'tblTempUsageDetail_20' ) end [2025-01-11 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223663', 'tblTempVendorCDR_20' ) start [2025-01-11 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223663', 'tblTempVendorCDR_20' ) end [2025-01-11 10:31:18] Production.INFO: ProcessCDR(1,14223663,1,1,2) [2025-01-11 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223663', 'tblTempUsageDetail_20' ) start [2025-01-11 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223663', 'tblTempUsageDetail_20' ) end [2025-01-11 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:31:21] Production.INFO: ==1711== Releasing lock... [2025-01-11 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:31:21] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:32:05 [end_date_ymd] => 2025-01-11 10:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:32:05' and `end` < '2025-01-11 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-11 10:32:19] Production.INFO: count ==882 [2025-01-11 10:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:32:05 - End Time 2025-01-11 10:32:05 [2025-01-11 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223668', 'tblTempUsageDetail_20' ) start [2025-01-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223668', 'tblTempUsageDetail_20' ) end [2025-01-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223668', 'tblTempVendorCDR_20' ) start [2025-01-11 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223668', 'tblTempVendorCDR_20' ) end [2025-01-11 10:32:19] Production.INFO: ProcessCDR(1,14223668,1,1,2) [2025-01-11 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223668', 'tblTempUsageDetail_20' ) start [2025-01-11 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223668', 'tblTempUsageDetail_20' ) end [2025-01-11 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:32:22] Production.INFO: ==1786== Releasing lock... [2025-01-11 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:32:22] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:33:04 [end_date_ymd] => 2025-01-11 10:33:04 [RateCDR] => 1 ) [2025-01-11 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-11 07:33:04' and `end` < '2025-01-11 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-11 10:33:19] Production.INFO: count ==888 [2025-01-11 10:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:33:04 - End Time 2025-01-11 10:33:04 [2025-01-11 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223673', 'tblTempUsageDetail_20' ) start [2025-01-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223673', 'tblTempUsageDetail_20' ) end [2025-01-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223673', 'tblTempVendorCDR_20' ) start [2025-01-11 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223673', 'tblTempVendorCDR_20' ) end [2025-01-11 10:33:19] Production.INFO: ProcessCDR(1,14223673,1,1,2) [2025-01-11 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223673', 'tblTempUsageDetail_20' ) start [2025-01-11 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223673', 'tblTempUsageDetail_20' ) end [2025-01-11 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:33:22] Production.INFO: ==1861== Releasing lock... [2025-01-11 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:33:22] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:34:05 [end_date_ymd] => 2025-01-11 10:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:34:05' and `end` < '2025-01-11 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-11 10:34:18] Production.INFO: count ==895 [2025-01-11 10:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:34:05 - End Time 2025-01-11 10:34:05 [2025-01-11 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223678', 'tblTempUsageDetail_20' ) start [2025-01-11 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223678', 'tblTempUsageDetail_20' ) end [2025-01-11 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223678', 'tblTempVendorCDR_20' ) start [2025-01-11 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223678', 'tblTempVendorCDR_20' ) end [2025-01-11 10:34:18] Production.INFO: ProcessCDR(1,14223678,1,1,2) [2025-01-11 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223678', 'tblTempUsageDetail_20' ) start [2025-01-11 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223678', 'tblTempUsageDetail_20' ) end [2025-01-11 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:34:21] Production.INFO: ==1931== Releasing lock... [2025-01-11 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:34:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:35:05 [end_date_ymd] => 2025-01-11 10:35:05 [RateCDR] => 1 ) [2025-01-11 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:35:05' and `end` < '2025-01-11 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:35:18] Production.INFO: count ==895 [2025-01-11 10:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:35:05 - End Time 2025-01-11 10:35:05 [2025-01-11 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223683', 'tblTempUsageDetail_20' ) start [2025-01-11 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223683', 'tblTempUsageDetail_20' ) end [2025-01-11 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223683', 'tblTempVendorCDR_20' ) start [2025-01-11 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223683', 'tblTempVendorCDR_20' ) end [2025-01-11 10:35:18] Production.INFO: ProcessCDR(1,14223683,1,1,2) [2025-01-11 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223683', 'tblTempUsageDetail_20' ) start [2025-01-11 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223683', 'tblTempUsageDetail_20' ) end [2025-01-11 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:35:21] Production.INFO: ==2002== Releasing lock... [2025-01-11 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:36:05 [end_date_ymd] => 2025-01-11 10:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:36:05' and `end` < '2025-01-11 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-11 10:36:19] Production.INFO: count ==895 [2025-01-11 10:36:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:36:05 - End Time 2025-01-11 10:36:05 [2025-01-11 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223688', 'tblTempUsageDetail_20' ) start [2025-01-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223688', 'tblTempUsageDetail_20' ) end [2025-01-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223688', 'tblTempVendorCDR_20' ) start [2025-01-11 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223688', 'tblTempVendorCDR_20' ) end [2025-01-11 10:36:20] Production.INFO: ProcessCDR(1,14223688,1,1,2) [2025-01-11 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223688', 'tblTempUsageDetail_20' ) start [2025-01-11 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223688', 'tblTempUsageDetail_20' ) end [2025-01-11 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:36:23] Production.INFO: ==2078== Releasing lock... [2025-01-11 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:36:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:37:05 [end_date_ymd] => 2025-01-11 10:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:37:05' and `end` < '2025-01-11 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-11 10:37:20] Production.INFO: count ==895 [2025-01-11 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:37:05 - End Time 2025-01-11 10:37:05 [2025-01-11 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223693', 'tblTempUsageDetail_20' ) start [2025-01-11 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223693', 'tblTempUsageDetail_20' ) end [2025-01-11 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223693', 'tblTempVendorCDR_20' ) start [2025-01-11 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223693', 'tblTempVendorCDR_20' ) end [2025-01-11 10:37:21] Production.INFO: ProcessCDR(1,14223693,1,1,2) [2025-01-11 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223693', 'tblTempUsageDetail_20' ) start [2025-01-11 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223693', 'tblTempUsageDetail_20' ) end [2025-01-11 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:37:24] Production.INFO: ==2152== Releasing lock... [2025-01-11 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:37:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:38:05 [end_date_ymd] => 2025-01-11 10:38:05 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:38:05' and `end` < '2025-01-11 10: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-11 10:38:18] Production.INFO: count ==895 [2025-01-11 10:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:38:05 - End Time 2025-01-11 10:38:05 [2025-01-11 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223698', 'tblTempUsageDetail_20' ) start [2025-01-11 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223698', 'tblTempUsageDetail_20' ) end [2025-01-11 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223698', 'tblTempVendorCDR_20' ) start [2025-01-11 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223698', 'tblTempVendorCDR_20' ) end [2025-01-11 10:38:18] Production.INFO: ProcessCDR(1,14223698,1,1,2) [2025-01-11 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223698', 'tblTempUsageDetail_20' ) start [2025-01-11 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223698', 'tblTempUsageDetail_20' ) end [2025-01-11 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:38:21] Production.INFO: ==2222== Releasing lock... [2025-01-11 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:39:05 [end_date_ymd] => 2025-01-11 10:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:39:05' and `end` < '2025-01-11 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-11 10:39:19] Production.INFO: count ==904 [2025-01-11 10:39:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:39:05 - End Time 2025-01-11 10:39:05 [2025-01-11 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223703', 'tblTempUsageDetail_20' ) start [2025-01-11 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223703', 'tblTempUsageDetail_20' ) end [2025-01-11 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223703', 'tblTempVendorCDR_20' ) start [2025-01-11 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223703', 'tblTempVendorCDR_20' ) end [2025-01-11 10:39:20] Production.INFO: ProcessCDR(1,14223703,1,1,2) [2025-01-11 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223703', 'tblTempUsageDetail_20' ) start [2025-01-11 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223703', 'tblTempUsageDetail_20' ) end [2025-01-11 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:39:23] Production.INFO: ==2299== Releasing lock... [2025-01-11 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:39:23] Production.INFO: 35 MB #Memory Used# [2025-01-11 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:40:05 [end_date_ymd] => 2025-01-11 10:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:40:05' and `end` < '2025-01-11 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-11 10:40:19] Production.INFO: count ==911 [2025-01-11 10:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:40:05 - End Time 2025-01-11 10:40:05 [2025-01-11 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223709', 'tblTempUsageDetail_20' ) start [2025-01-11 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223709', 'tblTempUsageDetail_20' ) end [2025-01-11 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223709', 'tblTempVendorCDR_20' ) start [2025-01-11 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223709', 'tblTempVendorCDR_20' ) end [2025-01-11 10:40:19] Production.INFO: ProcessCDR(1,14223709,1,1,2) [2025-01-11 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223709', 'tblTempUsageDetail_20' ) start [2025-01-11 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223709', 'tblTempUsageDetail_20' ) end [2025-01-11 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:40:22] Production.INFO: ==2410== Releasing lock... [2025-01-11 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:41:05 [end_date_ymd] => 2025-01-11 10:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:41:05' and `end` < '2025-01-11 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-11 10:41:19] Production.INFO: count ==943 [2025-01-11 10:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:41:05 - End Time 2025-01-11 10:41:05 [2025-01-11 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223714', 'tblTempUsageDetail_20' ) start [2025-01-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223714', 'tblTempUsageDetail_20' ) end [2025-01-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223714', 'tblTempVendorCDR_20' ) start [2025-01-11 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223714', 'tblTempVendorCDR_20' ) end [2025-01-11 10:41:19] Production.INFO: ProcessCDR(1,14223714,1,1,2) [2025-01-11 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223714', 'tblTempUsageDetail_20' ) start [2025-01-11 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223714', 'tblTempUsageDetail_20' ) end [2025-01-11 10:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:41:22] Production.INFO: ==2485== Releasing lock... [2025-01-11 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-11 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:42:05 [end_date_ymd] => 2025-01-11 10:42:05 [RateCDR] => 1 ) [2025-01-11 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:42:05' and `end` < '2025-01-11 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:42:20] Production.INFO: count ==950 [2025-01-11 10:42:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:42:05 - End Time 2025-01-11 10:42:05 [2025-01-11 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223719', 'tblTempUsageDetail_20' ) start [2025-01-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223719', 'tblTempUsageDetail_20' ) end [2025-01-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223719', 'tblTempVendorCDR_20' ) start [2025-01-11 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223719', 'tblTempVendorCDR_20' ) end [2025-01-11 10:42:20] Production.INFO: ProcessCDR(1,14223719,1,1,2) [2025-01-11 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223719', 'tblTempUsageDetail_20' ) start [2025-01-11 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223719', 'tblTempUsageDetail_20' ) end [2025-01-11 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:42:25] Production.INFO: ==2555== Releasing lock... [2025-01-11 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:42:25] Production.INFO: 36 MB #Memory Used# [2025-01-11 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:43:05 [end_date_ymd] => 2025-01-11 10:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:43:05' and `end` < '2025-01-11 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-11 10:43:19] Production.INFO: count ==956 [2025-01-11 10:43:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:43:05 - End Time 2025-01-11 10:43:05 [2025-01-11 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223724', 'tblTempUsageDetail_20' ) start [2025-01-11 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223724', 'tblTempUsageDetail_20' ) end [2025-01-11 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223724', 'tblTempVendorCDR_20' ) start [2025-01-11 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223724', 'tblTempVendorCDR_20' ) end [2025-01-11 10:43:19] Production.INFO: ProcessCDR(1,14223724,1,1,2) [2025-01-11 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223724', 'tblTempUsageDetail_20' ) start [2025-01-11 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223724', 'tblTempUsageDetail_20' ) end [2025-01-11 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:43:22] Production.INFO: ==2632== Releasing lock... [2025-01-11 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:43:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:44:04 [end_date_ymd] => 2025-01-11 10:44:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:44:04' and `end` < '2025-01-11 10: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-11 10:44:18] Production.INFO: count ==956 [2025-01-11 10:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:44:04 - End Time 2025-01-11 10:44:04 [2025-01-11 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223729', 'tblTempUsageDetail_20' ) start [2025-01-11 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223729', 'tblTempUsageDetail_20' ) end [2025-01-11 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223729', 'tblTempVendorCDR_20' ) start [2025-01-11 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223729', 'tblTempVendorCDR_20' ) end [2025-01-11 10:44:18] Production.INFO: ProcessCDR(1,14223729,1,1,2) [2025-01-11 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223729', 'tblTempUsageDetail_20' ) start [2025-01-11 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223729', 'tblTempUsageDetail_20' ) end [2025-01-11 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:44:21] Production.INFO: ==2703== Releasing lock... [2025-01-11 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:44:21] Production.INFO: 36 MB #Memory Used# [2025-01-11 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:45:05 [end_date_ymd] => 2025-01-11 10:45:05 [RateCDR] => 1 ) [2025-01-11 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:45:05' and `end` < '2025-01-11 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:45:19] Production.INFO: count ==963 [2025-01-11 10:45:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:45:05 - End Time 2025-01-11 10:45:05 [2025-01-11 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223734', 'tblTempUsageDetail_20' ) start [2025-01-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223734', 'tblTempUsageDetail_20' ) end [2025-01-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223734', 'tblTempVendorCDR_20' ) start [2025-01-11 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223734', 'tblTempVendorCDR_20' ) end [2025-01-11 10:45:20] Production.INFO: ProcessCDR(1,14223734,1,1,2) [2025-01-11 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223734', 'tblTempUsageDetail_20' ) start [2025-01-11 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223734', 'tblTempUsageDetail_20' ) end [2025-01-11 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:45:23] Production.INFO: ==2773== Releasing lock... [2025-01-11 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:45:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:46:05 [end_date_ymd] => 2025-01-11 10:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:46:05' and `end` < '2025-01-11 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-11 10:46:18] Production.INFO: count ==963 [2025-01-11 10:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:46:05 - End Time 2025-01-11 10:46:05 [2025-01-11 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223739', 'tblTempUsageDetail_20' ) start [2025-01-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223739', 'tblTempUsageDetail_20' ) end [2025-01-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223739', 'tblTempVendorCDR_20' ) start [2025-01-11 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223739', 'tblTempVendorCDR_20' ) end [2025-01-11 10:46:19] Production.INFO: ProcessCDR(1,14223739,1,1,2) [2025-01-11 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223739', 'tblTempUsageDetail_20' ) start [2025-01-11 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223739', 'tblTempUsageDetail_20' ) end [2025-01-11 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:46:22] Production.INFO: ==2846== Releasing lock... [2025-01-11 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:47:06 [end_date_ymd] => 2025-01-11 10:47:06 [RateCDR] => 1 ) [2025-01-11 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:47:06' and `end` < '2025-01-11 10:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:47:20] Production.INFO: count ==963 [2025-01-11 10:47:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:47:06 - End Time 2025-01-11 10:47:06 [2025-01-11 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223744', 'tblTempUsageDetail_20' ) start [2025-01-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223744', 'tblTempUsageDetail_20' ) end [2025-01-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223744', 'tblTempVendorCDR_20' ) start [2025-01-11 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223744', 'tblTempVendorCDR_20' ) end [2025-01-11 10:47:20] Production.INFO: ProcessCDR(1,14223744,1,1,2) [2025-01-11 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223744', 'tblTempUsageDetail_20' ) start [2025-01-11 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223744', 'tblTempUsageDetail_20' ) end [2025-01-11 10:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:47:24] Production.INFO: ==2920== Releasing lock... [2025-01-11 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:47:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:48:05 [end_date_ymd] => 2025-01-11 10:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:48:05' and `end` < '2025-01-11 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-11 10:48:20] Production.INFO: count ==972 [2025-01-11 10:48:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:48:05 - End Time 2025-01-11 10:48:05 [2025-01-11 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223749', 'tblTempUsageDetail_20' ) start [2025-01-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223749', 'tblTempUsageDetail_20' ) end [2025-01-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223749', 'tblTempVendorCDR_20' ) start [2025-01-11 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223749', 'tblTempVendorCDR_20' ) end [2025-01-11 10:48:20] Production.INFO: ProcessCDR(1,14223749,1,1,2) [2025-01-11 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223749', 'tblTempUsageDetail_20' ) start [2025-01-11 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223749', 'tblTempUsageDetail_20' ) end [2025-01-11 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:48:23] Production.INFO: ==2992== Releasing lock... [2025-01-11 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:48:23] Production.INFO: 36 MB #Memory Used# [2025-01-11 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:49:04 [end_date_ymd] => 2025-01-11 10:49:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:49:04' and `end` < '2025-01-11 10: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-11 10:49:17] Production.INFO: count ==998 [2025-01-11 10:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:49:04 - End Time 2025-01-11 10:49:04 [2025-01-11 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223754', 'tblTempUsageDetail_20' ) start [2025-01-11 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223754', 'tblTempUsageDetail_20' ) end [2025-01-11 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223754', 'tblTempVendorCDR_20' ) start [2025-01-11 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223754', 'tblTempVendorCDR_20' ) end [2025-01-11 10:49:18] Production.INFO: ProcessCDR(1,14223754,1,1,2) [2025-01-11 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223754', 'tblTempUsageDetail_20' ) start [2025-01-11 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223754', 'tblTempUsageDetail_20' ) end [2025-01-11 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:49:23] Production.INFO: ==3069== Releasing lock... [2025-01-11 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:49:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:50:06 [end_date_ymd] => 2025-01-11 10:50:06 [RateCDR] => 1 ) [2025-01-11 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:50:06' and `end` < '2025-01-11 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:50:19] Production.INFO: count ==1018 [2025-01-11 10:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:50:06 - End Time 2025-01-11 10:50:06 [2025-01-11 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223760', 'tblTempUsageDetail_20' ) start [2025-01-11 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223760', 'tblTempUsageDetail_20' ) end [2025-01-11 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223760', 'tblTempVendorCDR_20' ) start [2025-01-11 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223760', 'tblTempVendorCDR_20' ) end [2025-01-11 10:50:19] Production.INFO: ProcessCDR(1,14223760,1,1,2) [2025-01-11 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223760', 'tblTempUsageDetail_20' ) start [2025-01-11 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223760', 'tblTempUsageDetail_20' ) end [2025-01-11 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:50:22] Production.INFO: ==3147== Releasing lock... [2025-01-11 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:51:05 [end_date_ymd] => 2025-01-11 10:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:51:05' and `end` < '2025-01-11 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-11 10:51:18] Production.INFO: count ==1036 [2025-01-11 10:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:51:05 - End Time 2025-01-11 10:51:05 [2025-01-11 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223765', 'tblTempUsageDetail_20' ) start [2025-01-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223765', 'tblTempUsageDetail_20' ) end [2025-01-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223765', 'tblTempVendorCDR_20' ) start [2025-01-11 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223765', 'tblTempVendorCDR_20' ) end [2025-01-11 10:51:19] Production.INFO: ProcessCDR(1,14223765,1,1,2) [2025-01-11 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223765', 'tblTempUsageDetail_20' ) start [2025-01-11 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223765', 'tblTempUsageDetail_20' ) end [2025-01-11 10:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:51:22] Production.INFO: ==3222== Releasing lock... [2025-01-11 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:52:05 [end_date_ymd] => 2025-01-11 10:52:05 [RateCDR] => 1 ) [2025-01-11 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:52:05' and `end` < '2025-01-11 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:52:18] Production.INFO: count ==1037 [2025-01-11 10:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:52:05 - End Time 2025-01-11 10:52:05 [2025-01-11 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223770', 'tblTempUsageDetail_20' ) start [2025-01-11 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223770', 'tblTempUsageDetail_20' ) end [2025-01-11 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223770', 'tblTempVendorCDR_20' ) start [2025-01-11 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223770', 'tblTempVendorCDR_20' ) end [2025-01-11 10:52:19] Production.INFO: ProcessCDR(1,14223770,1,1,2) [2025-01-11 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223770', 'tblTempUsageDetail_20' ) start [2025-01-11 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223770', 'tblTempUsageDetail_20' ) end [2025-01-11 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:52:22] Production.INFO: ==3297== Releasing lock... [2025-01-11 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:53:04 [end_date_ymd] => 2025-01-11 10:53:04 [RateCDR] => 1 ) [2025-01-11 10: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-11 07:53:04' and `end` < '2025-01-11 10: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-11 10:53:18] Production.INFO: count ==1040 [2025-01-11 10:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:53:04 - End Time 2025-01-11 10:53:04 [2025-01-11 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223775', 'tblTempUsageDetail_20' ) start [2025-01-11 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223775', 'tblTempUsageDetail_20' ) end [2025-01-11 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223775', 'tblTempVendorCDR_20' ) start [2025-01-11 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223775', 'tblTempVendorCDR_20' ) end [2025-01-11 10:53:18] Production.INFO: ProcessCDR(1,14223775,1,1,2) [2025-01-11 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223775', 'tblTempUsageDetail_20' ) start [2025-01-11 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223775', 'tblTempUsageDetail_20' ) end [2025-01-11 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:53:21] Production.INFO: ==3368== Releasing lock... [2025-01-11 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:54:05 [end_date_ymd] => 2025-01-11 10:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:54:05' and `end` < '2025-01-11 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-11 10:54:19] Production.INFO: count ==1040 [2025-01-11 10:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:54:05 - End Time 2025-01-11 10:54:05 [2025-01-11 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223780', 'tblTempUsageDetail_20' ) start [2025-01-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223780', 'tblTempUsageDetail_20' ) end [2025-01-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223780', 'tblTempVendorCDR_20' ) start [2025-01-11 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223780', 'tblTempVendorCDR_20' ) end [2025-01-11 10:54:19] Production.INFO: ProcessCDR(1,14223780,1,1,2) [2025-01-11 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223780', 'tblTempUsageDetail_20' ) start [2025-01-11 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223780', 'tblTempUsageDetail_20' ) end [2025-01-11 10:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:54:22] Production.INFO: ==3440== Releasing lock... [2025-01-11 10:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:55:05 [end_date_ymd] => 2025-01-11 10:55:05 [RateCDR] => 1 ) [2025-01-11 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:55:05' and `end` < '2025-01-11 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:55:19] Production.INFO: count ==1040 [2025-01-11 10:55:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:55:05 - End Time 2025-01-11 10:55:05 [2025-01-11 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223785', 'tblTempUsageDetail_20' ) start [2025-01-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223785', 'tblTempUsageDetail_20' ) end [2025-01-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223785', 'tblTempVendorCDR_20' ) start [2025-01-11 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223785', 'tblTempVendorCDR_20' ) end [2025-01-11 10:55:20] Production.INFO: ProcessCDR(1,14223785,1,1,2) [2025-01-11 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223785', 'tblTempUsageDetail_20' ) start [2025-01-11 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223785', 'tblTempUsageDetail_20' ) end [2025-01-11 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:55:23] Production.INFO: ==3548== Releasing lock... [2025-01-11 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:55:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:56:05 [end_date_ymd] => 2025-01-11 10:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:56:05' and `end` < '2025-01-11 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-11 10:56:18] Production.INFO: count ==1041 [2025-01-11 10:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 07:56:05 - End Time 2025-01-11 10:56:05 [2025-01-11 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223790', 'tblTempUsageDetail_20' ) start [2025-01-11 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223790', 'tblTempUsageDetail_20' ) end [2025-01-11 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223790', 'tblTempVendorCDR_20' ) start [2025-01-11 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223790', 'tblTempVendorCDR_20' ) end [2025-01-11 10:56:18] Production.INFO: ProcessCDR(1,14223790,1,1,2) [2025-01-11 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223790', 'tblTempUsageDetail_20' ) start [2025-01-11 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223790', 'tblTempUsageDetail_20' ) end [2025-01-11 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:56:23] Production.INFO: ==3617== Releasing lock... [2025-01-11 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:56:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:57:06 [end_date_ymd] => 2025-01-11 10:57:06 [RateCDR] => 1 ) [2025-01-11 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:57:06' and `end` < '2025-01-11 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:57:20] Production.INFO: count ==1041 [2025-01-11 10:57:20] Production.ERROR: pbx CDR StartTime 2025-01-11 07:57:06 - End Time 2025-01-11 10:57:06 [2025-01-11 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223795', 'tblTempUsageDetail_20' ) start [2025-01-11 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223795', 'tblTempUsageDetail_20' ) end [2025-01-11 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223795', 'tblTempVendorCDR_20' ) start [2025-01-11 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223795', 'tblTempVendorCDR_20' ) end [2025-01-11 10:57:20] Production.INFO: ProcessCDR(1,14223795,1,1,2) [2025-01-11 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223795', 'tblTempUsageDetail_20' ) start [2025-01-11 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223795', 'tblTempUsageDetail_20' ) end [2025-01-11 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:57:23] Production.INFO: ==3688== Releasing lock... [2025-01-11 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:57:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:58:06 [end_date_ymd] => 2025-01-11 10:58:06 [RateCDR] => 1 ) [2025-01-11 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 07:58:06' and `end` < '2025-01-11 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 10:58:20] Production.INFO: count ==1041 [2025-01-11 10:58:21] Production.ERROR: pbx CDR StartTime 2025-01-11 07:58:06 - End Time 2025-01-11 10:58:06 [2025-01-11 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223800', 'tblTempUsageDetail_20' ) start [2025-01-11 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223800', 'tblTempUsageDetail_20' ) end [2025-01-11 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223800', 'tblTempVendorCDR_20' ) start [2025-01-11 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223800', 'tblTempVendorCDR_20' ) end [2025-01-11 10:58:21] Production.INFO: ProcessCDR(1,14223800,1,1,2) [2025-01-11 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223800', 'tblTempUsageDetail_20' ) start [2025-01-11 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223800', 'tblTempUsageDetail_20' ) end [2025-01-11 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:58:24] Production.INFO: ==3760== Releasing lock... [2025-01-11 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:58:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 07:59:05 [end_date_ymd] => 2025-01-11 10:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 07:59:05' and `end` < '2025-01-11 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-11 10:59:19] Production.INFO: count ==1041 [2025-01-11 10:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 07:59:05 - End Time 2025-01-11 10:59:05 [2025-01-11 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223805', 'tblTempUsageDetail_20' ) start [2025-01-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223805', 'tblTempUsageDetail_20' ) end [2025-01-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223805', 'tblTempVendorCDR_20' ) start [2025-01-11 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223805', 'tblTempVendorCDR_20' ) end [2025-01-11 10:59:19] Production.INFO: ProcessCDR(1,14223805,1,1,2) [2025-01-11 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223805', 'tblTempUsageDetail_20' ) start [2025-01-11 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223805', 'tblTempUsageDetail_20' ) end [2025-01-11 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 10:59:23] Production.INFO: ==3831== Releasing lock... [2025-01-11 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 10:59:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:00:06 [end_date_ymd] => 2025-01-11 11:00:06 [RateCDR] => 1 ) [2025-01-11 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:00:06' and `end` < '2025-01-11 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:00:19] Production.INFO: count ==1055 [2025-01-11 11:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:00:06 - End Time 2025-01-11 11:00:06 [2025-01-11 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223810', 'tblTempUsageDetail_20' ) start [2025-01-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223810', 'tblTempUsageDetail_20' ) end [2025-01-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223810', 'tblTempVendorCDR_20' ) start [2025-01-11 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223810', 'tblTempVendorCDR_20' ) end [2025-01-11 11:00:20] Production.INFO: ProcessCDR(1,14223810,1,1,2) [2025-01-11 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223810', 'tblTempUsageDetail_20' ) start [2025-01-11 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223810', 'tblTempUsageDetail_20' ) end [2025-01-11 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:00:24] Production.INFO: ==3905== Releasing lock... [2025-01-11 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:00:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:01:04 [end_date_ymd] => 2025-01-11 11:01:04 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:01:04' and `end` < '2025-01-11 11: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-11 11:01:17] Production.INFO: count ==1111 [2025-01-11 11:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:01:04 - End Time 2025-01-11 11:01:04 [2025-01-11 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223816', 'tblTempUsageDetail_20' ) start [2025-01-11 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223816', 'tblTempUsageDetail_20' ) end [2025-01-11 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223816', 'tblTempVendorCDR_20' ) start [2025-01-11 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223816', 'tblTempVendorCDR_20' ) end [2025-01-11 11:01:18] Production.INFO: ProcessCDR(1,14223816,1,1,2) [2025-01-11 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223816', 'tblTempUsageDetail_20' ) start [2025-01-11 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223816', 'tblTempUsageDetail_20' ) end [2025-01-11 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:01:23] Production.INFO: ==4028== Releasing lock... [2025-01-11 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:01:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-11 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:02:05 [end_date_ymd] => 2025-01-11 11:02:05 [RateCDR] => 1 ) [2025-01-11 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:02:05' and `end` < '2025-01-11 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:02:19] Production.INFO: count ==1112 [2025-01-11 11:02:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:02:05 - End Time 2025-01-11 11:02:05 [2025-01-11 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223821', 'tblTempUsageDetail_20' ) start [2025-01-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223821', 'tblTempUsageDetail_20' ) end [2025-01-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223821', 'tblTempVendorCDR_20' ) start [2025-01-11 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223821', 'tblTempVendorCDR_20' ) end [2025-01-11 11:02:20] Production.INFO: ProcessCDR(1,14223821,1,1,2) [2025-01-11 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223821', 'tblTempUsageDetail_20' ) start [2025-01-11 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223821', 'tblTempUsageDetail_20' ) end [2025-01-11 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:02:25] Production.INFO: ==4143== Releasing lock... [2025-01-11 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:02:25] Production.INFO: 37 MB #Memory Used# [2025-01-11 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:03:05 [end_date_ymd] => 2025-01-11 11:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:03:05' and `end` < '2025-01-11 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-11 11:03:19] Production.INFO: count ==1117 [2025-01-11 11:03:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:03:05 - End Time 2025-01-11 11:03:05 [2025-01-11 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223826', 'tblTempUsageDetail_20' ) start [2025-01-11 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223826', 'tblTempUsageDetail_20' ) end [2025-01-11 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223826', 'tblTempVendorCDR_20' ) start [2025-01-11 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223826', 'tblTempVendorCDR_20' ) end [2025-01-11 11:03:19] Production.INFO: ProcessCDR(1,14223826,1,1,2) [2025-01-11 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223826', 'tblTempUsageDetail_20' ) start [2025-01-11 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223826', 'tblTempUsageDetail_20' ) end [2025-01-11 11:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:03:22] Production.INFO: ==4217== Releasing lock... [2025-01-11 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:03:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:04:05 [end_date_ymd] => 2025-01-11 11:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:04:05' and `end` < '2025-01-11 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-11 11:04:18] Production.INFO: count ==1118 [2025-01-11 11:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:04:05 - End Time 2025-01-11 11:04:05 [2025-01-11 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223831', 'tblTempUsageDetail_20' ) start [2025-01-11 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223831', 'tblTempUsageDetail_20' ) end [2025-01-11 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223831', 'tblTempVendorCDR_20' ) start [2025-01-11 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223831', 'tblTempVendorCDR_20' ) end [2025-01-11 11:04:19] Production.INFO: ProcessCDR(1,14223831,1,1,2) [2025-01-11 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223831', 'tblTempUsageDetail_20' ) start [2025-01-11 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223831', 'tblTempUsageDetail_20' ) end [2025-01-11 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:04:22] Production.INFO: ==4287== Releasing lock... [2025-01-11 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:04:22] Production.INFO: 37 MB #Memory Used# [2025-01-11 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:05:04 [end_date_ymd] => 2025-01-11 11:05:04 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:05:04' and `end` < '2025-01-11 11: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-11 11:05:17] Production.INFO: count ==1118 [2025-01-11 11:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:05:04 - End Time 2025-01-11 11:05:04 [2025-01-11 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223836', 'tblTempUsageDetail_20' ) start [2025-01-11 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223836', 'tblTempUsageDetail_20' ) end [2025-01-11 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223836', 'tblTempVendorCDR_20' ) start [2025-01-11 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223836', 'tblTempVendorCDR_20' ) end [2025-01-11 11:05:18] Production.INFO: ProcessCDR(1,14223836,1,1,2) [2025-01-11 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223836', 'tblTempUsageDetail_20' ) start [2025-01-11 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223836', 'tblTempUsageDetail_20' ) end [2025-01-11 11:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:05:21] Production.INFO: ==4436== Releasing lock... [2025-01-11 11:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:05:21] Production.INFO: 37 MB #Memory Used# [2025-01-11 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:06:05 [end_date_ymd] => 2025-01-11 11:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:06:05' and `end` < '2025-01-11 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-11 11:06:19] Production.INFO: count ==1107 [2025-01-11 11:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:06:05 - End Time 2025-01-11 11:06:05 [2025-01-11 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223841', 'tblTempUsageDetail_20' ) start [2025-01-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223841', 'tblTempUsageDetail_20' ) end [2025-01-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223841', 'tblTempVendorCDR_20' ) start [2025-01-11 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223841', 'tblTempVendorCDR_20' ) end [2025-01-11 11:06:20] Production.INFO: ProcessCDR(1,14223841,1,1,2) [2025-01-11 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223841', 'tblTempUsageDetail_20' ) start [2025-01-11 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223841', 'tblTempUsageDetail_20' ) end [2025-01-11 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:06:23] Production.INFO: ==4507== Releasing lock... [2025-01-11 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:06:23] Production.INFO: 37 MB #Memory Used# [2025-01-11 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:07:05 [end_date_ymd] => 2025-01-11 11:07:05 [RateCDR] => 1 ) [2025-01-11 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:07:05' and `end` < '2025-01-11 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:07:18] Production.INFO: count ==1089 [2025-01-11 11:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:07:05 - End Time 2025-01-11 11:07:05 [2025-01-11 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223846', 'tblTempUsageDetail_20' ) start [2025-01-11 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223846', 'tblTempUsageDetail_20' ) end [2025-01-11 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223846', 'tblTempVendorCDR_20' ) start [2025-01-11 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223846', 'tblTempVendorCDR_20' ) end [2025-01-11 11:07:19] Production.INFO: ProcessCDR(1,14223846,1,1,2) [2025-01-11 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223846', 'tblTempUsageDetail_20' ) start [2025-01-11 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223846', 'tblTempUsageDetail_20' ) end [2025-01-11 11:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:07:22] Production.INFO: ==4587== Releasing lock... [2025-01-11 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:07:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:08:05 [end_date_ymd] => 2025-01-11 11:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:08:05' and `end` < '2025-01-11 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-11 11:08:18] Production.INFO: count ==1089 [2025-01-11 11:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:08:05 - End Time 2025-01-11 11:08:05 [2025-01-11 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223851', 'tblTempUsageDetail_20' ) start [2025-01-11 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223851', 'tblTempUsageDetail_20' ) end [2025-01-11 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223851', 'tblTempVendorCDR_20' ) start [2025-01-11 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223851', 'tblTempVendorCDR_20' ) end [2025-01-11 11:08:18] Production.INFO: ProcessCDR(1,14223851,1,1,2) [2025-01-11 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223851', 'tblTempUsageDetail_20' ) start [2025-01-11 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223851', 'tblTempUsageDetail_20' ) end [2025-01-11 11:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:08:21] Production.INFO: ==4737== Releasing lock... [2025-01-11 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:08:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:09:05 [end_date_ymd] => 2025-01-11 11:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:09:05' and `end` < '2025-01-11 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-11 11:09:18] Production.INFO: count ==1089 [2025-01-11 11:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:09:05 - End Time 2025-01-11 11:09:05 [2025-01-11 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223856', 'tblTempUsageDetail_20' ) start [2025-01-11 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223856', 'tblTempUsageDetail_20' ) end [2025-01-11 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223856', 'tblTempVendorCDR_20' ) start [2025-01-11 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223856', 'tblTempVendorCDR_20' ) end [2025-01-11 11:09:19] Production.INFO: ProcessCDR(1,14223856,1,1,2) [2025-01-11 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223856', 'tblTempUsageDetail_20' ) start [2025-01-11 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223856', 'tblTempUsageDetail_20' ) end [2025-01-11 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:09:22] Production.INFO: ==4807== Releasing lock... [2025-01-11 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-11 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:10:06 [end_date_ymd] => 2025-01-11 11:10:06 [RateCDR] => 1 ) [2025-01-11 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:10:06' and `end` < '2025-01-11 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:10:19] Production.INFO: count ==1105 [2025-01-11 11:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:10:06 - End Time 2025-01-11 11:10:06 [2025-01-11 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223861', 'tblTempUsageDetail_20' ) start [2025-01-11 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223861', 'tblTempUsageDetail_20' ) end [2025-01-11 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223861', 'tblTempVendorCDR_20' ) start [2025-01-11 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223861', 'tblTempVendorCDR_20' ) end [2025-01-11 11:10:19] Production.INFO: ProcessCDR(1,14223861,1,1,2) [2025-01-11 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223861', 'tblTempUsageDetail_20' ) start [2025-01-11 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223861', 'tblTempUsageDetail_20' ) end [2025-01-11 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:10:24] Production.INFO: ==4881== Releasing lock... [2025-01-11 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:10:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:11:05 [end_date_ymd] => 2025-01-11 11:11:05 [RateCDR] => 1 ) [2025-01-11 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:11:05' and `end` < '2025-01-11 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:11:18] Production.INFO: count ==1170 [2025-01-11 11:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:11:05 - End Time 2025-01-11 11:11:05 [2025-01-11 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223867', 'tblTempUsageDetail_20' ) start [2025-01-11 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223867', 'tblTempUsageDetail_20' ) end [2025-01-11 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223867', 'tblTempVendorCDR_20' ) start [2025-01-11 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223867', 'tblTempVendorCDR_20' ) end [2025-01-11 11:11:19] Production.INFO: ProcessCDR(1,14223867,1,1,2) [2025-01-11 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223867', 'tblTempUsageDetail_20' ) start [2025-01-11 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223867', 'tblTempUsageDetail_20' ) end [2025-01-11 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:11:22] Production.INFO: ==4993== Releasing lock... [2025-01-11 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:12:05 [end_date_ymd] => 2025-01-11 11:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:12:05' and `end` < '2025-01-11 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-11 11:12:19] Production.INFO: count ==1170 [2025-01-11 11:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:12:05 - End Time 2025-01-11 11:12:05 [2025-01-11 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223872', 'tblTempUsageDetail_20' ) start [2025-01-11 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223872', 'tblTempUsageDetail_20' ) end [2025-01-11 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223872', 'tblTempVendorCDR_20' ) start [2025-01-11 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223872', 'tblTempVendorCDR_20' ) end [2025-01-11 11:12:19] Production.INFO: ProcessCDR(1,14223872,1,1,2) [2025-01-11 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223872', 'tblTempUsageDetail_20' ) start [2025-01-11 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223872', 'tblTempUsageDetail_20' ) end [2025-01-11 11:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:12:24] Production.INFO: ==5143== Releasing lock... [2025-01-11 11:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:12:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:13:05 [end_date_ymd] => 2025-01-11 11:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:13:05' and `end` < '2025-01-11 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-11 11:13:18] Production.INFO: count ==1189 [2025-01-11 11:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:13:05 - End Time 2025-01-11 11:13:05 [2025-01-11 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223877', 'tblTempUsageDetail_20' ) start [2025-01-11 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223877', 'tblTempUsageDetail_20' ) end [2025-01-11 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223877', 'tblTempVendorCDR_20' ) start [2025-01-11 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223877', 'tblTempVendorCDR_20' ) end [2025-01-11 11:13:18] Production.INFO: ProcessCDR(1,14223877,1,1,2) [2025-01-11 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223877', 'tblTempUsageDetail_20' ) start [2025-01-11 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223877', 'tblTempUsageDetail_20' ) end [2025-01-11 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:13:22] Production.INFO: ==5212== Releasing lock... [2025-01-11 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:14:04 [end_date_ymd] => 2025-01-11 11:14:04 [RateCDR] => 1 ) [2025-01-11 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-11 08:14:04' and `end` < '2025-01-11 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-11 11:14:19] Production.INFO: count ==1207 [2025-01-11 11:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:14:04 - End Time 2025-01-11 11:14:04 [2025-01-11 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223882', 'tblTempUsageDetail_20' ) start [2025-01-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223882', 'tblTempUsageDetail_20' ) end [2025-01-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223882', 'tblTempVendorCDR_20' ) start [2025-01-11 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223882', 'tblTempVendorCDR_20' ) end [2025-01-11 11:14:19] Production.INFO: ProcessCDR(1,14223882,1,1,2) [2025-01-11 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223882', 'tblTempUsageDetail_20' ) start [2025-01-11 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223882', 'tblTempUsageDetail_20' ) end [2025-01-11 11:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:14:24] Production.INFO: ==5283== Releasing lock... [2025-01-11 11:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:14:24] Production.INFO: 38 MB #Memory Used# [2025-01-11 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:15:05 [end_date_ymd] => 2025-01-11 11:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:15:05' and `end` < '2025-01-11 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-11 11:15:18] Production.INFO: count ==1210 [2025-01-11 11:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:15:05 - End Time 2025-01-11 11:15:05 [2025-01-11 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223887', 'tblTempUsageDetail_20' ) start [2025-01-11 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223887', 'tblTempUsageDetail_20' ) end [2025-01-11 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223887', 'tblTempVendorCDR_20' ) start [2025-01-11 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223887', 'tblTempVendorCDR_20' ) end [2025-01-11 11:15:19] Production.INFO: ProcessCDR(1,14223887,1,1,2) [2025-01-11 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223887', 'tblTempUsageDetail_20' ) start [2025-01-11 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223887', 'tblTempUsageDetail_20' ) end [2025-01-11 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:15:22] Production.INFO: ==5469== Releasing lock... [2025-01-11 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:16:05 [end_date_ymd] => 2025-01-11 11:16:05 [RateCDR] => 1 ) [2025-01-11 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:16:05' and `end` < '2025-01-11 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:16:18] Production.INFO: count ==1233 [2025-01-11 11:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:16:05 - End Time 2025-01-11 11:16:05 [2025-01-11 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223892', 'tblTempUsageDetail_20' ) start [2025-01-11 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223892', 'tblTempUsageDetail_20' ) end [2025-01-11 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223892', 'tblTempVendorCDR_20' ) start [2025-01-11 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223892', 'tblTempVendorCDR_20' ) end [2025-01-11 11:16:19] Production.INFO: ProcessCDR(1,14223892,1,1,2) [2025-01-11 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223892', 'tblTempUsageDetail_20' ) start [2025-01-11 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223892', 'tblTempUsageDetail_20' ) end [2025-01-11 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:16:22] Production.INFO: ==5580== Releasing lock... [2025-01-11 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:16:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:17:05 [end_date_ymd] => 2025-01-11 11:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:17:05' and `end` < '2025-01-11 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-11 11:17:18] Production.INFO: count ==1224 [2025-01-11 11:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:17:05 - End Time 2025-01-11 11:17:05 [2025-01-11 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223897', 'tblTempUsageDetail_20' ) start [2025-01-11 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223897', 'tblTempUsageDetail_20' ) end [2025-01-11 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223897', 'tblTempVendorCDR_20' ) start [2025-01-11 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223897', 'tblTempVendorCDR_20' ) end [2025-01-11 11:17:19] Production.INFO: ProcessCDR(1,14223897,1,1,2) [2025-01-11 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223897', 'tblTempUsageDetail_20' ) start [2025-01-11 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223897', 'tblTempUsageDetail_20' ) end [2025-01-11 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:17:23] Production.INFO: ==5668== Releasing lock... [2025-01-11 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:17:23] Production.INFO: 38 MB #Memory Used# [2025-01-11 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:18:05 [end_date_ymd] => 2025-01-11 11:18:05 [RateCDR] => 1 ) [2025-01-11 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:18:05' and `end` < '2025-01-11 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:18:18] Production.INFO: count ==1238 [2025-01-11 11:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:18:05 - End Time 2025-01-11 11:18:05 [2025-01-11 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223902', 'tblTempUsageDetail_20' ) start [2025-01-11 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223902', 'tblTempUsageDetail_20' ) end [2025-01-11 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223902', 'tblTempVendorCDR_20' ) start [2025-01-11 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223902', 'tblTempVendorCDR_20' ) end [2025-01-11 11:18:18] Production.INFO: ProcessCDR(1,14223902,1,1,2) [2025-01-11 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223902', 'tblTempUsageDetail_20' ) start [2025-01-11 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223902', 'tblTempUsageDetail_20' ) end [2025-01-11 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:18:23] Production.INFO: ==5738== Releasing lock... [2025-01-11 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:18:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:19:05 [end_date_ymd] => 2025-01-11 11:19:05 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:19:05' and `end` < '2025-01-11 11: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-11 11:19:18] Production.INFO: count ==1245 [2025-01-11 11:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:19:05 - End Time 2025-01-11 11:19:05 [2025-01-11 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223907', 'tblTempUsageDetail_20' ) start [2025-01-11 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223907', 'tblTempUsageDetail_20' ) end [2025-01-11 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223907', 'tblTempVendorCDR_20' ) start [2025-01-11 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223907', 'tblTempVendorCDR_20' ) end [2025-01-11 11:19:18] Production.INFO: ProcessCDR(1,14223907,1,1,2) [2025-01-11 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223907', 'tblTempUsageDetail_20' ) start [2025-01-11 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223907', 'tblTempUsageDetail_20' ) end [2025-01-11 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:19:23] Production.INFO: ==5808== Releasing lock... [2025-01-11 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:19:23] Production.INFO: 38 MB #Memory Used# [2025-01-11 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:20:06 [end_date_ymd] => 2025-01-11 11:20:06 [RateCDR] => 1 ) [2025-01-11 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:20:06' and `end` < '2025-01-11 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:20:19] Production.INFO: count ==1245 [2025-01-11 11:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:20:06 - End Time 2025-01-11 11:20:06 [2025-01-11 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223913', 'tblTempUsageDetail_20' ) start [2025-01-11 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223913', 'tblTempUsageDetail_20' ) end [2025-01-11 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223913', 'tblTempVendorCDR_20' ) start [2025-01-11 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223913', 'tblTempVendorCDR_20' ) end [2025-01-11 11:20:19] Production.INFO: ProcessCDR(1,14223913,1,1,2) [2025-01-11 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223913', 'tblTempUsageDetail_20' ) start [2025-01-11 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223913', 'tblTempUsageDetail_20' ) end [2025-01-11 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:20:24] Production.INFO: ==5882== Releasing lock... [2025-01-11 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:20:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:21:05 [end_date_ymd] => 2025-01-11 11:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:21:05' and `end` < '2025-01-11 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-11 11:21:18] Production.INFO: count ==1308 [2025-01-11 11:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:21:05 - End Time 2025-01-11 11:21:05 [2025-01-11 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223918', 'tblTempUsageDetail_20' ) start [2025-01-11 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223918', 'tblTempUsageDetail_20' ) end [2025-01-11 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223918', 'tblTempVendorCDR_20' ) start [2025-01-11 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223918', 'tblTempVendorCDR_20' ) end [2025-01-11 11:21:19] Production.INFO: ProcessCDR(1,14223918,1,1,2) [2025-01-11 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223918', 'tblTempUsageDetail_20' ) start [2025-01-11 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223918', 'tblTempUsageDetail_20' ) end [2025-01-11 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:21:23] Production.INFO: ==5958== Releasing lock... [2025-01-11 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:21:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:22:05 [end_date_ymd] => 2025-01-11 11:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:22:05' and `end` < '2025-01-11 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-11 11:22:18] Production.INFO: count ==1318 [2025-01-11 11:22:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:22:05 - End Time 2025-01-11 11:22:05 [2025-01-11 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223923', 'tblTempUsageDetail_20' ) start [2025-01-11 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223923', 'tblTempUsageDetail_20' ) end [2025-01-11 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223923', 'tblTempVendorCDR_20' ) start [2025-01-11 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223923', 'tblTempVendorCDR_20' ) end [2025-01-11 11:22:18] Production.INFO: ProcessCDR(1,14223923,1,1,2) [2025-01-11 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223923', 'tblTempUsageDetail_20' ) start [2025-01-11 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223923', 'tblTempUsageDetail_20' ) end [2025-01-11 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:22:23] Production.INFO: ==6043== Releasing lock... [2025-01-11 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:22:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:23:05 [end_date_ymd] => 2025-01-11 11:23:05 [RateCDR] => 1 ) [2025-01-11 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:23:05' and `end` < '2025-01-11 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:23:18] Production.INFO: count ==1321 [2025-01-11 11:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:23:05 - End Time 2025-01-11 11:23:05 [2025-01-11 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223928', 'tblTempUsageDetail_20' ) start [2025-01-11 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223928', 'tblTempUsageDetail_20' ) end [2025-01-11 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223928', 'tblTempVendorCDR_20' ) start [2025-01-11 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223928', 'tblTempVendorCDR_20' ) end [2025-01-11 11:23:19] Production.INFO: ProcessCDR(1,14223928,1,1,2) [2025-01-11 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223928', 'tblTempUsageDetail_20' ) start [2025-01-11 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223928', 'tblTempUsageDetail_20' ) end [2025-01-11 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:23:23] Production.INFO: ==6169== Releasing lock... [2025-01-11 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:24:05 [end_date_ymd] => 2025-01-11 11:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:24:05' and `end` < '2025-01-11 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-11 11:24:19] Production.INFO: count ==1320 [2025-01-11 11:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:24:05 - End Time 2025-01-11 11:24:05 [2025-01-11 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223933', 'tblTempUsageDetail_20' ) start [2025-01-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223933', 'tblTempUsageDetail_20' ) end [2025-01-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223933', 'tblTempVendorCDR_20' ) start [2025-01-11 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223933', 'tblTempVendorCDR_20' ) end [2025-01-11 11:24:20] Production.INFO: ProcessCDR(1,14223933,1,1,2) [2025-01-11 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223933', 'tblTempUsageDetail_20' ) start [2025-01-11 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223933', 'tblTempUsageDetail_20' ) end [2025-01-11 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:24:24] Production.INFO: ==6269== Releasing lock... [2025-01-11 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-11 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:25:05 [end_date_ymd] => 2025-01-11 11:25:05 [RateCDR] => 1 ) [2025-01-11 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:25:05' and `end` < '2025-01-11 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:25:18] Production.INFO: count ==1322 [2025-01-11 11:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:25:05 - End Time 2025-01-11 11:25:05 [2025-01-11 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223938', 'tblTempUsageDetail_20' ) start [2025-01-11 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223938', 'tblTempUsageDetail_20' ) end [2025-01-11 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223938', 'tblTempVendorCDR_20' ) start [2025-01-11 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223938', 'tblTempVendorCDR_20' ) end [2025-01-11 11:25:18] Production.INFO: ProcessCDR(1,14223938,1,1,2) [2025-01-11 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223938', 'tblTempUsageDetail_20' ) start [2025-01-11 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223938', 'tblTempUsageDetail_20' ) end [2025-01-11 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:25:23] Production.INFO: ==6340== Releasing lock... [2025-01-11 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:26:04 [end_date_ymd] => 2025-01-11 11:26:04 [RateCDR] => 1 ) [2025-01-11 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-11 08:26:04' and `end` < '2025-01-11 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-11 11:26:18] Production.INFO: count ==1323 [2025-01-11 11:26:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:26:04 - End Time 2025-01-11 11:26:04 [2025-01-11 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223943', 'tblTempUsageDetail_20' ) start [2025-01-11 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223943', 'tblTempUsageDetail_20' ) end [2025-01-11 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223943', 'tblTempVendorCDR_20' ) start [2025-01-11 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223943', 'tblTempVendorCDR_20' ) end [2025-01-11 11:26:18] Production.INFO: ProcessCDR(1,14223943,1,1,2) [2025-01-11 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223943', 'tblTempUsageDetail_20' ) start [2025-01-11 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223943', 'tblTempUsageDetail_20' ) end [2025-01-11 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:26:23] Production.INFO: ==6451== Releasing lock... [2025-01-11 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:27:05 [end_date_ymd] => 2025-01-11 11:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:27:05' and `end` < '2025-01-11 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-11 11:27:21] Production.INFO: count ==1328 [2025-01-11 11:27:21] Production.ERROR: pbx CDR StartTime 2025-01-11 08:27:05 - End Time 2025-01-11 11:27:05 [2025-01-11 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223948', 'tblTempUsageDetail_20' ) start [2025-01-11 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223948', 'tblTempUsageDetail_20' ) end [2025-01-11 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223948', 'tblTempVendorCDR_20' ) start [2025-01-11 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223948', 'tblTempVendorCDR_20' ) end [2025-01-11 11:27:21] Production.INFO: ProcessCDR(1,14223948,1,1,2) [2025-01-11 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223948', 'tblTempUsageDetail_20' ) start [2025-01-11 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223948', 'tblTempUsageDetail_20' ) end [2025-01-11 11:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:27:24] Production.INFO: ==6530== Releasing lock... [2025-01-11 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:28:05 [end_date_ymd] => 2025-01-11 11:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:28:05' and `end` < '2025-01-11 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-11 11:28:18] Production.INFO: count ==1337 [2025-01-11 11:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:28:05 - End Time 2025-01-11 11:28:05 [2025-01-11 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223953', 'tblTempUsageDetail_20' ) start [2025-01-11 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223953', 'tblTempUsageDetail_20' ) end [2025-01-11 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223953', 'tblTempVendorCDR_20' ) start [2025-01-11 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223953', 'tblTempVendorCDR_20' ) end [2025-01-11 11:28:18] Production.INFO: ProcessCDR(1,14223953,1,1,2) [2025-01-11 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223953', 'tblTempUsageDetail_20' ) start [2025-01-11 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223953', 'tblTempUsageDetail_20' ) end [2025-01-11 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:28:23] Production.INFO: ==6605== Releasing lock... [2025-01-11 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:29:05 [end_date_ymd] => 2025-01-11 11:29:05 [RateCDR] => 1 ) [2025-01-11 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:29:05' and `end` < '2025-01-11 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:29:18] Production.INFO: count ==1350 [2025-01-11 11:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:29:05 - End Time 2025-01-11 11:29:05 [2025-01-11 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223958', 'tblTempUsageDetail_20' ) start [2025-01-11 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223958', 'tblTempUsageDetail_20' ) end [2025-01-11 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223958', 'tblTempVendorCDR_20' ) start [2025-01-11 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223958', 'tblTempVendorCDR_20' ) end [2025-01-11 11:29:19] Production.INFO: ProcessCDR(1,14223958,1,1,2) [2025-01-11 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223958', 'tblTempUsageDetail_20' ) start [2025-01-11 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223958', 'tblTempUsageDetail_20' ) end [2025-01-11 11:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:29:24] Production.INFO: ==6679== Releasing lock... [2025-01-11 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:29:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:30:05 [end_date_ymd] => 2025-01-11 11:30:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:30:05' and `end` < '2025-01-11 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-11 11:30:19] Production.INFO: count ==1352 [2025-01-11 11:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:30:05 - End Time 2025-01-11 11:30:05 [2025-01-11 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223963', 'tblTempUsageDetail_20' ) start [2025-01-11 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223963', 'tblTempUsageDetail_20' ) end [2025-01-11 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223963', 'tblTempVendorCDR_20' ) start [2025-01-11 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223963', 'tblTempVendorCDR_20' ) end [2025-01-11 11:30:19] Production.INFO: ProcessCDR(1,14223963,1,1,2) [2025-01-11 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223963', 'tblTempUsageDetail_20' ) start [2025-01-11 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223963', 'tblTempUsageDetail_20' ) end [2025-01-11 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:30:22] Production.INFO: ==6752== Releasing lock... [2025-01-11 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:31:05 [end_date_ymd] => 2025-01-11 11:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:31:05' and `end` < '2025-01-11 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-11 11:31:19] Production.INFO: count ==1379 [2025-01-11 11:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:31:05 - End Time 2025-01-11 11:31:05 [2025-01-11 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223969', 'tblTempUsageDetail_20' ) start [2025-01-11 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223969', 'tblTempUsageDetail_20' ) end [2025-01-11 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223969', 'tblTempVendorCDR_20' ) start [2025-01-11 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223969', 'tblTempVendorCDR_20' ) end [2025-01-11 11:31:19] Production.INFO: ProcessCDR(1,14223969,1,1,2) [2025-01-11 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223969', 'tblTempUsageDetail_20' ) start [2025-01-11 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223969', 'tblTempUsageDetail_20' ) end [2025-01-11 11:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:31:24] Production.INFO: ==6823== Releasing lock... [2025-01-11 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:31:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:32:05 [end_date_ymd] => 2025-01-11 11:32:05 [RateCDR] => 1 ) [2025-01-11 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:32:05' and `end` < '2025-01-11 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:32:19] Production.INFO: count ==1387 [2025-01-11 11:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:32:05 - End Time 2025-01-11 11:32:05 [2025-01-11 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223974', 'tblTempUsageDetail_20' ) start [2025-01-11 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223974', 'tblTempUsageDetail_20' ) end [2025-01-11 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223974', 'tblTempVendorCDR_20' ) start [2025-01-11 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223974', 'tblTempVendorCDR_20' ) end [2025-01-11 11:32:19] Production.INFO: ProcessCDR(1,14223974,1,1,2) [2025-01-11 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223974', 'tblTempUsageDetail_20' ) start [2025-01-11 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223974', 'tblTempUsageDetail_20' ) end [2025-01-11 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:32:24] Production.INFO: ==6893== Releasing lock... [2025-01-11 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-11 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:33:05 [end_date_ymd] => 2025-01-11 11:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:33:05' and `end` < '2025-01-11 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-11 11:33:19] Production.INFO: count ==1401 [2025-01-11 11:33:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:33:05 - End Time 2025-01-11 11:33:05 [2025-01-11 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223979', 'tblTempUsageDetail_20' ) start [2025-01-11 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223979', 'tblTempUsageDetail_20' ) end [2025-01-11 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223979', 'tblTempVendorCDR_20' ) start [2025-01-11 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223979', 'tblTempVendorCDR_20' ) end [2025-01-11 11:33:20] Production.INFO: ProcessCDR(1,14223979,1,1,2) [2025-01-11 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223979', 'tblTempUsageDetail_20' ) start [2025-01-11 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223979', 'tblTempUsageDetail_20' ) end [2025-01-11 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:33:25] Production.INFO: ==6963== Releasing lock... [2025-01-11 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:33:25] Production.INFO: 39 MB #Memory Used# [2025-01-11 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:34:05 [end_date_ymd] => 2025-01-11 11:34:05 [RateCDR] => 1 ) [2025-01-11 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:34:05' and `end` < '2025-01-11 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:34:18] Production.INFO: count ==1409 [2025-01-11 11:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:34:05 - End Time 2025-01-11 11:34:05 [2025-01-11 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223980', 'tblTempUsageDetail_20' ) start [2025-01-11 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223980', 'tblTempUsageDetail_20' ) end [2025-01-11 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223980', 'tblTempVendorCDR_20' ) start [2025-01-11 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223980', 'tblTempVendorCDR_20' ) end [2025-01-11 11:34:18] Production.INFO: ProcessCDR(1,14223980,1,1,2) [2025-01-11 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223980', 'tblTempUsageDetail_20' ) start [2025-01-11 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223980', 'tblTempUsageDetail_20' ) end [2025-01-11 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:34:23] Production.INFO: ==7033== Releasing lock... [2025-01-11 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-11 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:35:05 [end_date_ymd] => 2025-01-11 11:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:35:05' and `end` < '2025-01-11 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-11 11:35:18] Production.INFO: count ==1420 [2025-01-11 11:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:35:05 - End Time 2025-01-11 11:35:05 [2025-01-11 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223989', 'tblTempUsageDetail_20' ) start [2025-01-11 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223989', 'tblTempUsageDetail_20' ) end [2025-01-11 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223989', 'tblTempVendorCDR_20' ) start [2025-01-11 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223989', 'tblTempVendorCDR_20' ) end [2025-01-11 11:35:18] Production.INFO: ProcessCDR(1,14223989,1,1,2) [2025-01-11 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223989', 'tblTempUsageDetail_20' ) start [2025-01-11 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223989', 'tblTempUsageDetail_20' ) end [2025-01-11 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:35:23] Production.INFO: ==7104== Releasing lock... [2025-01-11 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:35:23] Production.INFO: 39 MB #Memory Used# [2025-01-11 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:36:05 [end_date_ymd] => 2025-01-11 11:36:05 [RateCDR] => 1 ) [2025-01-11 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:36:05' and `end` < '2025-01-11 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:36:18] Production.INFO: count ==1421 [2025-01-11 11:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:36:05 - End Time 2025-01-11 11:36:05 [2025-01-11 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223994', 'tblTempUsageDetail_20' ) start [2025-01-11 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223994', 'tblTempUsageDetail_20' ) end [2025-01-11 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223994', 'tblTempVendorCDR_20' ) start [2025-01-11 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223994', 'tblTempVendorCDR_20' ) end [2025-01-11 11:36:19] Production.INFO: ProcessCDR(1,14223994,1,1,2) [2025-01-11 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223994', 'tblTempUsageDetail_20' ) start [2025-01-11 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223994', 'tblTempUsageDetail_20' ) end [2025-01-11 11:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:36:24] Production.INFO: ==7181== Releasing lock... [2025-01-11 11:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:36:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:37:05 [end_date_ymd] => 2025-01-11 11:37:05 [RateCDR] => 1 ) [2025-01-11 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:37:05' and `end` < '2025-01-11 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:37:18] Production.INFO: count ==1422 [2025-01-11 11:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:37:05 - End Time 2025-01-11 11:37:05 [2025-01-11 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223999', 'tblTempUsageDetail_20' ) start [2025-01-11 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14223999', 'tblTempUsageDetail_20' ) end [2025-01-11 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223999', 'tblTempVendorCDR_20' ) start [2025-01-11 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14223999', 'tblTempVendorCDR_20' ) end [2025-01-11 11:37:18] Production.INFO: ProcessCDR(1,14223999,1,1,2) [2025-01-11 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14223999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14223999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14223999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14223999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223999', 'tblTempUsageDetail_20' ) start [2025-01-11 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14223999', 'tblTempUsageDetail_20' ) end [2025-01-11 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:37:23] Production.INFO: ==7269== Releasing lock... [2025-01-11 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:37:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:38:05 [end_date_ymd] => 2025-01-11 11:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:38:05' and `end` < '2025-01-11 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-11 11:38:20] Production.INFO: count ==1427 [2025-01-11 11:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:38:05 - End Time 2025-01-11 11:38:05 [2025-01-11 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224004', 'tblTempUsageDetail_20' ) start [2025-01-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224004', 'tblTempUsageDetail_20' ) end [2025-01-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224004', 'tblTempVendorCDR_20' ) start [2025-01-11 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224004', 'tblTempVendorCDR_20' ) end [2025-01-11 11:38:20] Production.INFO: ProcessCDR(1,14224004,1,1,2) [2025-01-11 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224004', 'tblTempUsageDetail_20' ) start [2025-01-11 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224004', 'tblTempUsageDetail_20' ) end [2025-01-11 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:38:25] Production.INFO: ==7357== Releasing lock... [2025-01-11 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:38:25] Production.INFO: 39 MB #Memory Used# [2025-01-11 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:39:04 [end_date_ymd] => 2025-01-11 11:39:04 [RateCDR] => 1 ) [2025-01-11 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-11 08:39:04' and `end` < '2025-01-11 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-11 11:39:18] Production.INFO: count ==1432 [2025-01-11 11:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:39:04 - End Time 2025-01-11 11:39:04 [2025-01-11 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224009', 'tblTempUsageDetail_20' ) start [2025-01-11 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224009', 'tblTempUsageDetail_20' ) end [2025-01-11 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224009', 'tblTempVendorCDR_20' ) start [2025-01-11 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224009', 'tblTempVendorCDR_20' ) end [2025-01-11 11:39:18] Production.INFO: ProcessCDR(1,14224009,1,1,2) [2025-01-11 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224009', 'tblTempUsageDetail_20' ) start [2025-01-11 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224009', 'tblTempUsageDetail_20' ) end [2025-01-11 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:39:23] Production.INFO: ==7446== Releasing lock... [2025-01-11 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:40:05 [end_date_ymd] => 2025-01-11 11:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:40:05' and `end` < '2025-01-11 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-11 11:40:19] Production.INFO: count ==1436 [2025-01-11 11:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:40:05 - End Time 2025-01-11 11:40:05 [2025-01-11 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224014', 'tblTempUsageDetail_20' ) start [2025-01-11 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224014', 'tblTempUsageDetail_20' ) end [2025-01-11 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224014', 'tblTempVendorCDR_20' ) start [2025-01-11 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224014', 'tblTempVendorCDR_20' ) end [2025-01-11 11:40:19] Production.INFO: ProcessCDR(1,14224014,1,1,2) [2025-01-11 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224014', 'tblTempUsageDetail_20' ) start [2025-01-11 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224014', 'tblTempUsageDetail_20' ) end [2025-01-11 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:40:24] Production.INFO: ==7539== Releasing lock... [2025-01-11 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:41:04 [end_date_ymd] => 2025-01-11 11:41:04 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:41:04' and `end` < '2025-01-11 11: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-11 11:41:19] Production.INFO: count ==1479 [2025-01-11 11:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:41:04 - End Time 2025-01-11 11:41:04 [2025-01-11 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224020', 'tblTempUsageDetail_20' ) start [2025-01-11 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224020', 'tblTempUsageDetail_20' ) end [2025-01-11 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224020', 'tblTempVendorCDR_20' ) start [2025-01-11 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224020', 'tblTempVendorCDR_20' ) end [2025-01-11 11:41:19] Production.INFO: ProcessCDR(1,14224020,1,1,2) [2025-01-11 11:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224020', 'tblTempUsageDetail_20' ) start [2025-01-11 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224020', 'tblTempUsageDetail_20' ) end [2025-01-11 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:41:22] Production.INFO: ==7627== Releasing lock... [2025-01-11 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:42:05 [end_date_ymd] => 2025-01-11 11:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:42:05' and `end` < '2025-01-11 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-11 11:42:18] Production.INFO: count ==1480 [2025-01-11 11:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:42:05 - End Time 2025-01-11 11:42:05 [2025-01-11 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224025', 'tblTempUsageDetail_20' ) start [2025-01-11 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224025', 'tblTempUsageDetail_20' ) end [2025-01-11 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224025', 'tblTempVendorCDR_20' ) start [2025-01-11 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224025', 'tblTempVendorCDR_20' ) end [2025-01-11 11:42:18] Production.INFO: ProcessCDR(1,14224025,1,1,2) [2025-01-11 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224025', 'tblTempUsageDetail_20' ) start [2025-01-11 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224025', 'tblTempUsageDetail_20' ) end [2025-01-11 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:42:23] Production.INFO: ==7749== Releasing lock... [2025-01-11 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:42:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:43:05 [end_date_ymd] => 2025-01-11 11:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:43:05' and `end` < '2025-01-11 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-11 11:43:18] Production.INFO: count ==1481 [2025-01-11 11:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:43:05 - End Time 2025-01-11 11:43:05 [2025-01-11 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224030', 'tblTempUsageDetail_20' ) start [2025-01-11 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224030', 'tblTempUsageDetail_20' ) end [2025-01-11 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224030', 'tblTempVendorCDR_20' ) start [2025-01-11 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224030', 'tblTempVendorCDR_20' ) end [2025-01-11 11:43:18] Production.INFO: ProcessCDR(1,14224030,1,1,2) [2025-01-11 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224030', 'tblTempUsageDetail_20' ) start [2025-01-11 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224030', 'tblTempUsageDetail_20' ) end [2025-01-11 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:43:23] Production.INFO: ==7830== Releasing lock... [2025-01-11 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:44:05 [end_date_ymd] => 2025-01-11 11:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:44:05' and `end` < '2025-01-11 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-11 11:44:18] Production.INFO: count ==1488 [2025-01-11 11:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:44:05 - End Time 2025-01-11 11:44:05 [2025-01-11 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224035', 'tblTempUsageDetail_20' ) start [2025-01-11 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224035', 'tblTempUsageDetail_20' ) end [2025-01-11 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224035', 'tblTempVendorCDR_20' ) start [2025-01-11 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224035', 'tblTempVendorCDR_20' ) end [2025-01-11 11:44:19] Production.INFO: ProcessCDR(1,14224035,1,1,2) [2025-01-11 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224035', 'tblTempUsageDetail_20' ) start [2025-01-11 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224035', 'tblTempUsageDetail_20' ) end [2025-01-11 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:44:23] Production.INFO: ==7917== Releasing lock... [2025-01-11 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:44:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:45:05 [end_date_ymd] => 2025-01-11 11:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:45:05' and `end` < '2025-01-11 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-11 11:45:18] Production.INFO: count ==1489 [2025-01-11 11:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:45:05 - End Time 2025-01-11 11:45:05 [2025-01-11 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224040', 'tblTempUsageDetail_20' ) start [2025-01-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224040', 'tblTempUsageDetail_20' ) end [2025-01-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224040', 'tblTempVendorCDR_20' ) start [2025-01-11 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224040', 'tblTempVendorCDR_20' ) end [2025-01-11 11:45:19] Production.INFO: ProcessCDR(1,14224040,1,1,2) [2025-01-11 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224040', 'tblTempUsageDetail_20' ) start [2025-01-11 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224040', 'tblTempUsageDetail_20' ) end [2025-01-11 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:45:23] Production.INFO: ==8009== Releasing lock... [2025-01-11 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:45:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:46:06 [end_date_ymd] => 2025-01-11 11:46:06 [RateCDR] => 1 ) [2025-01-11 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:46:06' and `end` < '2025-01-11 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:46:19] Production.INFO: count ==1491 [2025-01-11 11:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:46:06 - End Time 2025-01-11 11:46:06 [2025-01-11 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224045', 'tblTempUsageDetail_20' ) start [2025-01-11 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224045', 'tblTempUsageDetail_20' ) end [2025-01-11 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224045', 'tblTempVendorCDR_20' ) start [2025-01-11 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224045', 'tblTempVendorCDR_20' ) end [2025-01-11 11:46:19] Production.INFO: ProcessCDR(1,14224045,1,1,2) [2025-01-11 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224045', 'tblTempUsageDetail_20' ) start [2025-01-11 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224045', 'tblTempUsageDetail_20' ) end [2025-01-11 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:46:25] Production.INFO: ==8098== Releasing lock... [2025-01-11 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:46:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:47:04 [end_date_ymd] => 2025-01-11 11:47:04 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:47:04' and `end` < '2025-01-11 11: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-11 11:47:18] Production.INFO: count ==1492 [2025-01-11 11:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:47:04 - End Time 2025-01-11 11:47:04 [2025-01-11 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224050', 'tblTempUsageDetail_20' ) start [2025-01-11 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224050', 'tblTempUsageDetail_20' ) end [2025-01-11 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224050', 'tblTempVendorCDR_20' ) start [2025-01-11 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224050', 'tblTempVendorCDR_20' ) end [2025-01-11 11:47:18] Production.INFO: ProcessCDR(1,14224050,1,1,2) [2025-01-11 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224050', 'tblTempUsageDetail_20' ) start [2025-01-11 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224050', 'tblTempUsageDetail_20' ) end [2025-01-11 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:47:23] Production.INFO: ==8183== Releasing lock... [2025-01-11 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:47:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:48:05 [end_date_ymd] => 2025-01-11 11:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:48:05' and `end` < '2025-01-11 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-11 11:48:18] Production.INFO: count ==1515 [2025-01-11 11:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:48:05 - End Time 2025-01-11 11:48:05 [2025-01-11 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224055', 'tblTempUsageDetail_20' ) start [2025-01-11 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224055', 'tblTempUsageDetail_20' ) end [2025-01-11 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224055', 'tblTempVendorCDR_20' ) start [2025-01-11 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224055', 'tblTempVendorCDR_20' ) end [2025-01-11 11:48:19] Production.INFO: ProcessCDR(1,14224055,1,1,2) [2025-01-11 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224055', 'tblTempUsageDetail_20' ) start [2025-01-11 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224055', 'tblTempUsageDetail_20' ) end [2025-01-11 11:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:48:24] Production.INFO: ==8274== Releasing lock... [2025-01-11 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:48:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:49:05 [end_date_ymd] => 2025-01-11 11:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:49:05' and `end` < '2025-01-11 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-11 11:49:18] Production.INFO: count ==1539 [2025-01-11 11:49:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:49:05 - End Time 2025-01-11 11:49:05 [2025-01-11 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224060', 'tblTempUsageDetail_20' ) start [2025-01-11 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224060', 'tblTempUsageDetail_20' ) end [2025-01-11 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224060', 'tblTempVendorCDR_20' ) start [2025-01-11 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224060', 'tblTempVendorCDR_20' ) end [2025-01-11 11:49:19] Production.INFO: ProcessCDR(1,14224060,1,1,2) [2025-01-11 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224060', 'tblTempUsageDetail_20' ) start [2025-01-11 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224060', 'tblTempUsageDetail_20' ) end [2025-01-11 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:49:24] Production.INFO: ==8365== Releasing lock... [2025-01-11 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:49:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:50:06 [end_date_ymd] => 2025-01-11 11:50:06 [RateCDR] => 1 ) [2025-01-11 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:50:06' and `end` < '2025-01-11 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:50:20] Production.INFO: count ==1567 [2025-01-11 11:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 08:50:06 - End Time 2025-01-11 11:50:06 [2025-01-11 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224066', 'tblTempUsageDetail_20' ) start [2025-01-11 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224066', 'tblTempUsageDetail_20' ) end [2025-01-11 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224066', 'tblTempVendorCDR_20' ) start [2025-01-11 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224066', 'tblTempVendorCDR_20' ) end [2025-01-11 11:50:20] Production.INFO: ProcessCDR(1,14224066,1,1,2) [2025-01-11 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224066', 'tblTempUsageDetail_20' ) start [2025-01-11 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224066', 'tblTempUsageDetail_20' ) end [2025-01-11 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:50:25] Production.INFO: ==8462== Releasing lock... [2025-01-11 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:50:25] Production.INFO: 40 MB #Memory Used# [2025-01-11 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:51:05 [end_date_ymd] => 2025-01-11 11:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:51:05' and `end` < '2025-01-11 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-11 11:51:18] Production.INFO: count ==1599 [2025-01-11 11:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:51:05 - End Time 2025-01-11 11:51:05 [2025-01-11 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224071', 'tblTempUsageDetail_20' ) start [2025-01-11 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224071', 'tblTempUsageDetail_20' ) end [2025-01-11 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224071', 'tblTempVendorCDR_20' ) start [2025-01-11 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224071', 'tblTempVendorCDR_20' ) end [2025-01-11 11:51:18] Production.INFO: ProcessCDR(1,14224071,1,1,2) [2025-01-11 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224071', 'tblTempUsageDetail_20' ) start [2025-01-11 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224071', 'tblTempUsageDetail_20' ) end [2025-01-11 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:51:22] Production.INFO: ==8555== Releasing lock... [2025-01-11 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:51:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:52:05 [end_date_ymd] => 2025-01-11 11:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:52:05' and `end` < '2025-01-11 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-11 11:52:18] Production.INFO: count ==1587 [2025-01-11 11:52:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:52:05 - End Time 2025-01-11 11:52:05 [2025-01-11 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224076', 'tblTempUsageDetail_20' ) start [2025-01-11 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224076', 'tblTempUsageDetail_20' ) end [2025-01-11 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224076', 'tblTempVendorCDR_20' ) start [2025-01-11 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224076', 'tblTempVendorCDR_20' ) end [2025-01-11 11:52:18] Production.INFO: ProcessCDR(1,14224076,1,1,2) [2025-01-11 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224076', 'tblTempUsageDetail_20' ) start [2025-01-11 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224076', 'tblTempUsageDetail_20' ) end [2025-01-11 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:52:23] Production.INFO: ==8649== Releasing lock... [2025-01-11 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:52:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:53:05 [end_date_ymd] => 2025-01-11 11:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:53:05' and `end` < '2025-01-11 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-11 11:53:18] Production.INFO: count ==1605 [2025-01-11 11:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:53:05 - End Time 2025-01-11 11:53:05 [2025-01-11 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224081', 'tblTempUsageDetail_20' ) start [2025-01-11 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224081', 'tblTempUsageDetail_20' ) end [2025-01-11 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224081', 'tblTempVendorCDR_20' ) start [2025-01-11 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224081', 'tblTempVendorCDR_20' ) end [2025-01-11 11:53:19] Production.INFO: ProcessCDR(1,14224081,1,1,2) [2025-01-11 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224081', 'tblTempUsageDetail_20' ) start [2025-01-11 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224081', 'tblTempUsageDetail_20' ) end [2025-01-11 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:53:23] Production.INFO: ==8740== Releasing lock... [2025-01-11 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:53:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:54:05 [end_date_ymd] => 2025-01-11 11:54:05 [RateCDR] => 1 ) [2025-01-11 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:54:05' and `end` < '2025-01-11 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:54:18] Production.INFO: count ==1609 [2025-01-11 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:54:05 - End Time 2025-01-11 11:54:05 [2025-01-11 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224086', 'tblTempUsageDetail_20' ) start [2025-01-11 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224086', 'tblTempUsageDetail_20' ) end [2025-01-11 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224086', 'tblTempVendorCDR_20' ) start [2025-01-11 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224086', 'tblTempVendorCDR_20' ) end [2025-01-11 11:54:18] Production.INFO: ProcessCDR(1,14224086,1,1,2) [2025-01-11 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224086', 'tblTempUsageDetail_20' ) start [2025-01-11 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224086', 'tblTempUsageDetail_20' ) end [2025-01-11 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:54:23] Production.INFO: ==8829== Releasing lock... [2025-01-11 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:55:05 [end_date_ymd] => 2025-01-11 11:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:55:05' and `end` < '2025-01-11 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-11 11:55:19] Production.INFO: count ==1614 [2025-01-11 11:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:55:05 - End Time 2025-01-11 11:55:05 [2025-01-11 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224091', 'tblTempUsageDetail_20' ) start [2025-01-11 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224091', 'tblTempUsageDetail_20' ) end [2025-01-11 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224091', 'tblTempVendorCDR_20' ) start [2025-01-11 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224091', 'tblTempVendorCDR_20' ) end [2025-01-11 11:55:19] Production.INFO: ProcessCDR(1,14224091,1,1,2) [2025-01-11 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224091', 'tblTempUsageDetail_20' ) start [2025-01-11 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224091', 'tblTempUsageDetail_20' ) end [2025-01-11 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:55:22] Production.INFO: ==8923== Releasing lock... [2025-01-11 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:56:04 [end_date_ymd] => 2025-01-11 11:56:04 [RateCDR] => 1 ) [2025-01-11 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-11 08:56:04' and `end` < '2025-01-11 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-11 11:56:18] Production.INFO: count ==1610 [2025-01-11 11:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 08:56:04 - End Time 2025-01-11 11:56:04 [2025-01-11 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224096', 'tblTempUsageDetail_20' ) start [2025-01-11 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224096', 'tblTempUsageDetail_20' ) end [2025-01-11 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224096', 'tblTempVendorCDR_20' ) start [2025-01-11 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224096', 'tblTempVendorCDR_20' ) end [2025-01-11 11:56:18] Production.INFO: ProcessCDR(1,14224096,1,1,2) [2025-01-11 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224096', 'tblTempUsageDetail_20' ) start [2025-01-11 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224096', 'tblTempUsageDetail_20' ) end [2025-01-11 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:56:22] Production.INFO: ==9011== Releasing lock... [2025-01-11 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:57:05 [end_date_ymd] => 2025-01-11 11:57:05 [RateCDR] => 1 ) [2025-01-11 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 08:57:05' and `end` < '2025-01-11 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 11:57:19] Production.INFO: count ==1610 [2025-01-11 11:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:57:05 - End Time 2025-01-11 11:57:05 [2025-01-11 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224101', 'tblTempUsageDetail_20' ) start [2025-01-11 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224101', 'tblTempUsageDetail_20' ) end [2025-01-11 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224101', 'tblTempVendorCDR_20' ) start [2025-01-11 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224101', 'tblTempVendorCDR_20' ) end [2025-01-11 11:57:19] Production.INFO: ProcessCDR(1,14224101,1,1,2) [2025-01-11 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224101', 'tblTempUsageDetail_20' ) start [2025-01-11 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224101', 'tblTempUsageDetail_20' ) end [2025-01-11 11:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:57:24] Production.INFO: ==9098== Releasing lock... [2025-01-11 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:57:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:58:05 [end_date_ymd] => 2025-01-11 11:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 08:58:05' and `end` < '2025-01-11 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-11 11:58:18] Production.INFO: count ==1619 [2025-01-11 11:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:58:05 - End Time 2025-01-11 11:58:05 [2025-01-11 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224106', 'tblTempUsageDetail_20' ) start [2025-01-11 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224106', 'tblTempUsageDetail_20' ) end [2025-01-11 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224106', 'tblTempVendorCDR_20' ) start [2025-01-11 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224106', 'tblTempVendorCDR_20' ) end [2025-01-11 11:58:19] Production.INFO: ProcessCDR(1,14224106,1,1,2) [2025-01-11 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224106', 'tblTempUsageDetail_20' ) start [2025-01-11 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224106', 'tblTempUsageDetail_20' ) end [2025-01-11 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:58:23] Production.INFO: ==9219== Releasing lock... [2025-01-11 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:58:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 08:59:04 [end_date_ymd] => 2025-01-11 11:59:04 [RateCDR] => 1 ) [2025-01-11 11: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-11 08:59:04' and `end` < '2025-01-11 11: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-11 11:59:18] Production.INFO: count ==1619 [2025-01-11 11:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 08:59:04 - End Time 2025-01-11 11:59:04 [2025-01-11 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224111', 'tblTempUsageDetail_20' ) start [2025-01-11 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224111', 'tblTempUsageDetail_20' ) end [2025-01-11 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224111', 'tblTempVendorCDR_20' ) start [2025-01-11 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224111', 'tblTempVendorCDR_20' ) end [2025-01-11 11:59:19] Production.INFO: ProcessCDR(1,14224111,1,1,2) [2025-01-11 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224111', 'tblTempUsageDetail_20' ) start [2025-01-11 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224111', 'tblTempUsageDetail_20' ) end [2025-01-11 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 11:59:22] Production.INFO: ==9312== Releasing lock... [2025-01-11 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 11:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:00:06 [end_date_ymd] => 2025-01-11 12:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 09:00:06' and `end` < '2025-01-11 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-11 12:00:19] Production.INFO: count ==1625 [2025-01-11 12:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:00:06 - End Time 2025-01-11 12:00:06 [2025-01-11 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224117', 'tblTempUsageDetail_20' ) start [2025-01-11 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224117', 'tblTempUsageDetail_20' ) end [2025-01-11 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224117', 'tblTempVendorCDR_20' ) start [2025-01-11 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224117', 'tblTempVendorCDR_20' ) end [2025-01-11 12:00:20] Production.INFO: ProcessCDR(1,14224117,1,1,2) [2025-01-11 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224117', 'tblTempUsageDetail_20' ) start [2025-01-11 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224117', 'tblTempUsageDetail_20' ) end [2025-01-11 12:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:00:25] Production.INFO: ==9404== Releasing lock... [2025-01-11 12:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:00:25] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:01:05 [end_date_ymd] => 2025-01-11 12:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:01:05' and `end` < '2025-01-11 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-11 12:01:18] Production.INFO: count ==1669 [2025-01-11 12:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:01:05 - End Time 2025-01-11 12:01:05 [2025-01-11 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224122', 'tblTempUsageDetail_20' ) start [2025-01-11 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224122', 'tblTempUsageDetail_20' ) end [2025-01-11 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224122', 'tblTempVendorCDR_20' ) start [2025-01-11 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224122', 'tblTempVendorCDR_20' ) end [2025-01-11 12:01:19] Production.INFO: ProcessCDR(1,14224122,1,1,2) [2025-01-11 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224122', 'tblTempUsageDetail_20' ) start [2025-01-11 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224122', 'tblTempUsageDetail_20' ) end [2025-01-11 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:01:24] Production.INFO: ==9499== Releasing lock... [2025-01-11 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:01:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:02:05 [end_date_ymd] => 2025-01-11 12:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:02:05' and `end` < '2025-01-11 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-11 12:02:19] Production.INFO: count ==1635 [2025-01-11 12:02:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:02:05 - End Time 2025-01-11 12:02:05 [2025-01-11 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224127', 'tblTempUsageDetail_20' ) start [2025-01-11 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224127', 'tblTempUsageDetail_20' ) end [2025-01-11 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224127', 'tblTempVendorCDR_20' ) start [2025-01-11 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224127', 'tblTempVendorCDR_20' ) end [2025-01-11 12:02:20] Production.INFO: ProcessCDR(1,14224127,1,1,2) [2025-01-11 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224127', 'tblTempUsageDetail_20' ) start [2025-01-11 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224127', 'tblTempUsageDetail_20' ) end [2025-01-11 12:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:02:24] Production.INFO: ==9577== Releasing lock... [2025-01-11 12:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:02:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:03:04 [end_date_ymd] => 2025-01-11 12:03:04 [RateCDR] => 1 ) [2025-01-11 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-11 09:03:04' and `end` < '2025-01-11 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-11 12:03:18] Production.INFO: count ==1628 [2025-01-11 12:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:03:04 - End Time 2025-01-11 12:03:04 [2025-01-11 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224132', 'tblTempUsageDetail_20' ) start [2025-01-11 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224132', 'tblTempUsageDetail_20' ) end [2025-01-11 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224132', 'tblTempVendorCDR_20' ) start [2025-01-11 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224132', 'tblTempVendorCDR_20' ) end [2025-01-11 12:03:18] Production.INFO: ProcessCDR(1,14224132,1,1,2) [2025-01-11 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224132', 'tblTempUsageDetail_20' ) start [2025-01-11 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224132', 'tblTempUsageDetail_20' ) end [2025-01-11 12:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:03:21] Production.INFO: ==9648== Releasing lock... [2025-01-11 12:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:03:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:04:05 [end_date_ymd] => 2025-01-11 12:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:04:05' and `end` < '2025-01-11 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-11 12:04:18] Production.INFO: count ==1643 [2025-01-11 12:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:04:05 - End Time 2025-01-11 12:04:05 [2025-01-11 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224137', 'tblTempUsageDetail_20' ) start [2025-01-11 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224137', 'tblTempUsageDetail_20' ) end [2025-01-11 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224137', 'tblTempVendorCDR_20' ) start [2025-01-11 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224137', 'tblTempVendorCDR_20' ) end [2025-01-11 12:04:19] Production.INFO: ProcessCDR(1,14224137,1,1,2) [2025-01-11 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224137', 'tblTempUsageDetail_20' ) start [2025-01-11 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224137', 'tblTempUsageDetail_20' ) end [2025-01-11 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:04:23] Production.INFO: ==9722== Releasing lock... [2025-01-11 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:05:04 [end_date_ymd] => 2025-01-11 12:05:04 [RateCDR] => 1 ) [2025-01-11 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-11 09:05:04' and `end` < '2025-01-11 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-11 12:05:17] Production.INFO: count ==1644 [2025-01-11 12:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:05:04 - End Time 2025-01-11 12:05:04 [2025-01-11 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224142', 'tblTempUsageDetail_20' ) start [2025-01-11 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224142', 'tblTempUsageDetail_20' ) end [2025-01-11 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224142', 'tblTempVendorCDR_20' ) start [2025-01-11 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224142', 'tblTempVendorCDR_20' ) end [2025-01-11 12:05:18] Production.INFO: ProcessCDR(1,14224142,1,1,2) [2025-01-11 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224142', 'tblTempUsageDetail_20' ) start [2025-01-11 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224142', 'tblTempUsageDetail_20' ) end [2025-01-11 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:05:22] Production.INFO: ==9796== Releasing lock... [2025-01-11 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:05:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:06:05 [end_date_ymd] => 2025-01-11 12:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:06:05' and `end` < '2025-01-11 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-11 12:06:18] Production.INFO: count ==1639 [2025-01-11 12:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:06:05 - End Time 2025-01-11 12:06:05 [2025-01-11 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224147', 'tblTempUsageDetail_20' ) start [2025-01-11 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224147', 'tblTempUsageDetail_20' ) end [2025-01-11 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224147', 'tblTempVendorCDR_20' ) start [2025-01-11 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224147', 'tblTempVendorCDR_20' ) end [2025-01-11 12:06:19] Production.INFO: ProcessCDR(1,14224147,1,1,2) [2025-01-11 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224147', 'tblTempUsageDetail_20' ) start [2025-01-11 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224147', 'tblTempUsageDetail_20' ) end [2025-01-11 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:06:22] Production.INFO: ==9872== Releasing lock... [2025-01-11 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:06:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:07:05 [end_date_ymd] => 2025-01-11 12:07:05 [RateCDR] => 1 ) [2025-01-11 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:07:05' and `end` < '2025-01-11 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:07:19] Production.INFO: count ==1643 [2025-01-11 12:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:07:05 - End Time 2025-01-11 12:07:05 [2025-01-11 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224152', 'tblTempUsageDetail_20' ) start [2025-01-11 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224152', 'tblTempUsageDetail_20' ) end [2025-01-11 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224152', 'tblTempVendorCDR_20' ) start [2025-01-11 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224152', 'tblTempVendorCDR_20' ) end [2025-01-11 12:07:20] Production.INFO: ProcessCDR(1,14224152,1,1,2) [2025-01-11 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224152', 'tblTempUsageDetail_20' ) start [2025-01-11 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224152', 'tblTempUsageDetail_20' ) end [2025-01-11 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:07:24] Production.INFO: ==9946== Releasing lock... [2025-01-11 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:07:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:08:05 [end_date_ymd] => 2025-01-11 12:08:05 [RateCDR] => 1 ) [2025-01-11 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:08:05' and `end` < '2025-01-11 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:08:26] Production.INFO: count ==1632 [2025-01-11 12:08:27] Production.ERROR: pbx CDR StartTime 2025-01-11 09:08:05 - End Time 2025-01-11 12:08:05 [2025-01-11 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224157', 'tblTempUsageDetail_20' ) start [2025-01-11 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224157', 'tblTempUsageDetail_20' ) end [2025-01-11 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224157', 'tblTempVendorCDR_20' ) start [2025-01-11 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224157', 'tblTempVendorCDR_20' ) end [2025-01-11 12:08:27] Production.INFO: ProcessCDR(1,14224157,1,1,2) [2025-01-11 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224157', 'tblTempUsageDetail_20' ) start [2025-01-11 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224157', 'tblTempUsageDetail_20' ) end [2025-01-11 12:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:08:31] Production.INFO: ==10027== Releasing lock... [2025-01-11 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:08:31] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:09:04 [end_date_ymd] => 2025-01-11 12:09:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:09:04' and `end` < '2025-01-11 12: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-11 12:09:20] Production.INFO: count ==1636 [2025-01-11 12:09:21] Production.ERROR: pbx CDR StartTime 2025-01-11 09:09:04 - End Time 2025-01-11 12:09:04 [2025-01-11 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224162', 'tblTempUsageDetail_20' ) start [2025-01-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224162', 'tblTempUsageDetail_20' ) end [2025-01-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224162', 'tblTempVendorCDR_20' ) start [2025-01-11 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224162', 'tblTempVendorCDR_20' ) end [2025-01-11 12:09:21] Production.INFO: ProcessCDR(1,14224162,1,1,2) [2025-01-11 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224162', 'tblTempUsageDetail_20' ) start [2025-01-11 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224162', 'tblTempUsageDetail_20' ) end [2025-01-11 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:09:25] Production.INFO: ==10109== Releasing lock... [2025-01-11 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:09:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:10:05 [end_date_ymd] => 2025-01-11 12:10:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:10:05' and `end` < '2025-01-11 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-11 12:10:19] Production.INFO: count ==1633 [2025-01-11 12:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:10:05 - End Time 2025-01-11 12:10:05 [2025-01-11 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224168', 'tblTempUsageDetail_20' ) start [2025-01-11 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224168', 'tblTempUsageDetail_20' ) end [2025-01-11 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224168', 'tblTempVendorCDR_20' ) start [2025-01-11 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224168', 'tblTempVendorCDR_20' ) end [2025-01-11 12:10:19] Production.INFO: ProcessCDR(1,14224168,1,1,2) [2025-01-11 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224168', 'tblTempUsageDetail_20' ) start [2025-01-11 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224168', 'tblTempUsageDetail_20' ) end [2025-01-11 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:10:22] Production.INFO: ==10193== Releasing lock... [2025-01-11 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:10:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:11:05 [end_date_ymd] => 2025-01-11 12:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:11:05' and `end` < '2025-01-11 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-11 12:11:18] Production.INFO: count ==1667 [2025-01-11 12:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:11:05 - End Time 2025-01-11 12:11:05 [2025-01-11 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224173', 'tblTempUsageDetail_20' ) start [2025-01-11 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224173', 'tblTempUsageDetail_20' ) end [2025-01-11 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224173', 'tblTempVendorCDR_20' ) start [2025-01-11 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224173', 'tblTempVendorCDR_20' ) end [2025-01-11 12:11:19] Production.INFO: ProcessCDR(1,14224173,1,1,2) [2025-01-11 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224173', 'tblTempUsageDetail_20' ) start [2025-01-11 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224173', 'tblTempUsageDetail_20' ) end [2025-01-11 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:11:22] Production.INFO: ==10277== Releasing lock... [2025-01-11 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:12:05 [end_date_ymd] => 2025-01-11 12:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:12:05' and `end` < '2025-01-11 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-11 12:12:18] Production.INFO: count ==1657 [2025-01-11 12:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:12:05 - End Time 2025-01-11 12:12:05 [2025-01-11 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224178', 'tblTempUsageDetail_20' ) start [2025-01-11 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224178', 'tblTempUsageDetail_20' ) end [2025-01-11 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224178', 'tblTempVendorCDR_20' ) start [2025-01-11 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224178', 'tblTempVendorCDR_20' ) end [2025-01-11 12:12:19] Production.INFO: ProcessCDR(1,14224178,1,1,2) [2025-01-11 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224178', 'tblTempUsageDetail_20' ) start [2025-01-11 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224178', 'tblTempUsageDetail_20' ) end [2025-01-11 12:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:12:23] Production.INFO: ==10349== Releasing lock... [2025-01-11 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:12:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:13:05 [end_date_ymd] => 2025-01-11 12:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:13:05' and `end` < '2025-01-11 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-11 12:13:18] Production.INFO: count ==1666 [2025-01-11 12:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:13:05 - End Time 2025-01-11 12:13:05 [2025-01-11 12:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224183', 'tblTempUsageDetail_20' ) start [2025-01-11 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224183', 'tblTempUsageDetail_20' ) end [2025-01-11 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224183', 'tblTempVendorCDR_20' ) start [2025-01-11 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224183', 'tblTempVendorCDR_20' ) end [2025-01-11 12:13:19] Production.INFO: ProcessCDR(1,14224183,1,1,2) [2025-01-11 12:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224183', 'tblTempUsageDetail_20' ) start [2025-01-11 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224183', 'tblTempUsageDetail_20' ) end [2025-01-11 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:13:23] Production.INFO: ==10460== Releasing lock... [2025-01-11 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:14:05 [end_date_ymd] => 2025-01-11 12:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:14:05' and `end` < '2025-01-11 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-11 12:14:18] Production.INFO: count ==1663 [2025-01-11 12:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:14:05 - End Time 2025-01-11 12:14:05 [2025-01-11 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224188', 'tblTempUsageDetail_20' ) start [2025-01-11 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224188', 'tblTempUsageDetail_20' ) end [2025-01-11 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224188', 'tblTempVendorCDR_20' ) start [2025-01-11 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224188', 'tblTempVendorCDR_20' ) end [2025-01-11 12:14:18] Production.INFO: ProcessCDR(1,14224188,1,1,2) [2025-01-11 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224188', 'tblTempUsageDetail_20' ) start [2025-01-11 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224188', 'tblTempUsageDetail_20' ) end [2025-01-11 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:14:23] Production.INFO: ==10539== Releasing lock... [2025-01-11 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:14:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:15:05 [end_date_ymd] => 2025-01-11 12:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:15:05' and `end` < '2025-01-11 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-11 12:15:18] Production.INFO: count ==1660 [2025-01-11 12:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:15:05 - End Time 2025-01-11 12:15:05 [2025-01-11 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224193', 'tblTempUsageDetail_20' ) start [2025-01-11 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224193', 'tblTempUsageDetail_20' ) end [2025-01-11 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224193', 'tblTempVendorCDR_20' ) start [2025-01-11 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224193', 'tblTempVendorCDR_20' ) end [2025-01-11 12:15:19] Production.INFO: ProcessCDR(1,14224193,1,1,2) [2025-01-11 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224193', 'tblTempUsageDetail_20' ) start [2025-01-11 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224193', 'tblTempUsageDetail_20' ) end [2025-01-11 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:15:22] Production.INFO: ==10613== Releasing lock... [2025-01-11 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:15:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:16:05 [end_date_ymd] => 2025-01-11 12:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:16:05' and `end` < '2025-01-11 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-11 12:16:19] Production.INFO: count ==1657 [2025-01-11 12:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:16:05 - End Time 2025-01-11 12:16:05 [2025-01-11 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224198', 'tblTempUsageDetail_20' ) start [2025-01-11 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224198', 'tblTempUsageDetail_20' ) end [2025-01-11 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224198', 'tblTempVendorCDR_20' ) start [2025-01-11 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224198', 'tblTempVendorCDR_20' ) end [2025-01-11 12:16:19] Production.INFO: ProcessCDR(1,14224198,1,1,2) [2025-01-11 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224198', 'tblTempUsageDetail_20' ) start [2025-01-11 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224198', 'tblTempUsageDetail_20' ) end [2025-01-11 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:16:22] Production.INFO: ==10688== Releasing lock... [2025-01-11 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:16:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:17:05 [end_date_ymd] => 2025-01-11 12:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:17:05' and `end` < '2025-01-11 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-11 12:17:19] Production.INFO: count ==1653 [2025-01-11 12:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:17:05 - End Time 2025-01-11 12:17:05 [2025-01-11 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224203', 'tblTempUsageDetail_20' ) start [2025-01-11 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224203', 'tblTempUsageDetail_20' ) end [2025-01-11 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224203', 'tblTempVendorCDR_20' ) start [2025-01-11 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224203', 'tblTempVendorCDR_20' ) end [2025-01-11 12:17:19] Production.INFO: ProcessCDR(1,14224203,1,1,2) [2025-01-11 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224203', 'tblTempUsageDetail_20' ) start [2025-01-11 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224203', 'tblTempUsageDetail_20' ) end [2025-01-11 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:17:22] Production.INFO: ==10766== Releasing lock... [2025-01-11 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:18:05 [end_date_ymd] => 2025-01-11 12:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:18:05' and `end` < '2025-01-11 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-11 12:18:21] Production.INFO: count ==1642 [2025-01-11 12:18:21] Production.ERROR: pbx CDR StartTime 2025-01-11 09:18:05 - End Time 2025-01-11 12:18:05 [2025-01-11 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224208', 'tblTempUsageDetail_20' ) start [2025-01-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224208', 'tblTempUsageDetail_20' ) end [2025-01-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224208', 'tblTempVendorCDR_20' ) start [2025-01-11 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224208', 'tblTempVendorCDR_20' ) end [2025-01-11 12:18:21] Production.INFO: ProcessCDR(1,14224208,1,1,2) [2025-01-11 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224208', 'tblTempUsageDetail_20' ) start [2025-01-11 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224208', 'tblTempUsageDetail_20' ) end [2025-01-11 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:18:25] Production.INFO: ==10856== Releasing lock... [2025-01-11 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:18:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:19:05 [end_date_ymd] => 2025-01-11 12:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:19:05' and `end` < '2025-01-11 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-11 12:19:18] Production.INFO: count ==1643 [2025-01-11 12:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:19:05 - End Time 2025-01-11 12:19:05 [2025-01-11 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224213', 'tblTempUsageDetail_20' ) start [2025-01-11 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224213', 'tblTempUsageDetail_20' ) end [2025-01-11 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224213', 'tblTempVendorCDR_20' ) start [2025-01-11 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224213', 'tblTempVendorCDR_20' ) end [2025-01-11 12:19:19] Production.INFO: ProcessCDR(1,14224213,1,1,2) [2025-01-11 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224213', 'tblTempUsageDetail_20' ) start [2025-01-11 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224213', 'tblTempUsageDetail_20' ) end [2025-01-11 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:19:22] Production.INFO: ==10934== Releasing lock... [2025-01-11 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:20:05 [end_date_ymd] => 2025-01-11 12:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:20:05' and `end` < '2025-01-11 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-11 12:20:18] Production.INFO: count ==1647 [2025-01-11 12:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:20:05 - End Time 2025-01-11 12:20:05 [2025-01-11 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224219', 'tblTempUsageDetail_20' ) start [2025-01-11 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224219', 'tblTempUsageDetail_20' ) end [2025-01-11 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224219', 'tblTempVendorCDR_20' ) start [2025-01-11 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224219', 'tblTempVendorCDR_20' ) end [2025-01-11 12:20:19] Production.INFO: ProcessCDR(1,14224219,1,1,2) [2025-01-11 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224219', 'tblTempUsageDetail_20' ) start [2025-01-11 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224219', 'tblTempUsageDetail_20' ) end [2025-01-11 12:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:20:23] Production.INFO: ==11014== Releasing lock... [2025-01-11 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:21:05 [end_date_ymd] => 2025-01-11 12:21:05 [RateCDR] => 1 ) [2025-01-11 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:21:05' and `end` < '2025-01-11 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:21:18] Production.INFO: count ==1656 [2025-01-11 12:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:21:05 - End Time 2025-01-11 12:21:05 [2025-01-11 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224223', 'tblTempUsageDetail_20' ) start [2025-01-11 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224223', 'tblTempUsageDetail_20' ) end [2025-01-11 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224223', 'tblTempVendorCDR_20' ) start [2025-01-11 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224223', 'tblTempVendorCDR_20' ) end [2025-01-11 12:21:19] Production.INFO: ProcessCDR(1,14224223,1,1,2) [2025-01-11 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224223', 'tblTempUsageDetail_20' ) start [2025-01-11 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224223', 'tblTempUsageDetail_20' ) end [2025-01-11 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:21:22] Production.INFO: ==11085== Releasing lock... [2025-01-11 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:22:06 [end_date_ymd] => 2025-01-11 12:22:06 [RateCDR] => 1 ) [2025-01-11 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:22:06' and `end` < '2025-01-11 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:22:21] Production.INFO: count ==1654 [2025-01-11 12:22:21] Production.ERROR: pbx CDR StartTime 2025-01-11 09:22:06 - End Time 2025-01-11 12:22:06 [2025-01-11 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224229', 'tblTempUsageDetail_20' ) start [2025-01-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224229', 'tblTempUsageDetail_20' ) end [2025-01-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224229', 'tblTempVendorCDR_20' ) start [2025-01-11 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224229', 'tblTempVendorCDR_20' ) end [2025-01-11 12:22:21] Production.INFO: ProcessCDR(1,14224229,1,1,2) [2025-01-11 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224229', 'tblTempUsageDetail_20' ) start [2025-01-11 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224229', 'tblTempUsageDetail_20' ) end [2025-01-11 12:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:22:25] Production.INFO: ==11157== Releasing lock... [2025-01-11 12:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:22:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:23:05 [end_date_ymd] => 2025-01-11 12:23:05 [RateCDR] => 1 ) [2025-01-11 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:23:05' and `end` < '2025-01-11 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:23:18] Production.INFO: count ==1653 [2025-01-11 12:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:23:05 - End Time 2025-01-11 12:23:05 [2025-01-11 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224234', 'tblTempUsageDetail_20' ) start [2025-01-11 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224234', 'tblTempUsageDetail_20' ) end [2025-01-11 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224234', 'tblTempVendorCDR_20' ) start [2025-01-11 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224234', 'tblTempVendorCDR_20' ) end [2025-01-11 12:23:19] Production.INFO: ProcessCDR(1,14224234,1,1,2) [2025-01-11 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224234', 'tblTempUsageDetail_20' ) start [2025-01-11 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224234', 'tblTempUsageDetail_20' ) end [2025-01-11 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:23:23] Production.INFO: ==11226== Releasing lock... [2025-01-11 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:23:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:24:05 [end_date_ymd] => 2025-01-11 12:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:24:05' and `end` < '2025-01-11 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-11 12:24:18] Production.INFO: count ==1653 [2025-01-11 12:24:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:24:05 - End Time 2025-01-11 12:24:05 [2025-01-11 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224239', 'tblTempUsageDetail_20' ) start [2025-01-11 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224239', 'tblTempUsageDetail_20' ) end [2025-01-11 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224239', 'tblTempVendorCDR_20' ) start [2025-01-11 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224239', 'tblTempVendorCDR_20' ) end [2025-01-11 12:24:19] Production.INFO: ProcessCDR(1,14224239,1,1,2) [2025-01-11 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224239', 'tblTempUsageDetail_20' ) start [2025-01-11 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224239', 'tblTempUsageDetail_20' ) end [2025-01-11 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:24:22] Production.INFO: ==11298== Releasing lock... [2025-01-11 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:25:04 [end_date_ymd] => 2025-01-11 12:25:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:25:04' and `end` < '2025-01-11 12: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-11 12:25:18] Production.INFO: count ==1652 [2025-01-11 12:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:25:04 - End Time 2025-01-11 12:25:04 [2025-01-11 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224244', 'tblTempUsageDetail_20' ) start [2025-01-11 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224244', 'tblTempUsageDetail_20' ) end [2025-01-11 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224244', 'tblTempVendorCDR_20' ) start [2025-01-11 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224244', 'tblTempVendorCDR_20' ) end [2025-01-11 12:25:18] Production.INFO: ProcessCDR(1,14224244,1,1,2) [2025-01-11 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224244', 'tblTempUsageDetail_20' ) start [2025-01-11 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224244', 'tblTempUsageDetail_20' ) end [2025-01-11 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:25:21] Production.INFO: ==11367== Releasing lock... [2025-01-11 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:25:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:26:05 [end_date_ymd] => 2025-01-11 12:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:26:05' and `end` < '2025-01-11 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-11 12:26:18] Production.INFO: count ==1644 [2025-01-11 12:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:26:05 - End Time 2025-01-11 12:26:05 [2025-01-11 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224249', 'tblTempUsageDetail_20' ) start [2025-01-11 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224249', 'tblTempUsageDetail_20' ) end [2025-01-11 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224249', 'tblTempVendorCDR_20' ) start [2025-01-11 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224249', 'tblTempVendorCDR_20' ) end [2025-01-11 12:26:19] Production.INFO: ProcessCDR(1,14224249,1,1,2) [2025-01-11 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224249', 'tblTempUsageDetail_20' ) start [2025-01-11 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224249', 'tblTempUsageDetail_20' ) end [2025-01-11 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:26:22] Production.INFO: ==11437== Releasing lock... [2025-01-11 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:26:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:27:04 [end_date_ymd] => 2025-01-11 12:27:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:27:04' and `end` < '2025-01-11 12: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-11 12:27:18] Production.INFO: count ==1641 [2025-01-11 12:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:27:04 - End Time 2025-01-11 12:27:04 [2025-01-11 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224254', 'tblTempUsageDetail_20' ) start [2025-01-11 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224254', 'tblTempUsageDetail_20' ) end [2025-01-11 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224254', 'tblTempVendorCDR_20' ) start [2025-01-11 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224254', 'tblTempVendorCDR_20' ) end [2025-01-11 12:27:19] Production.INFO: ProcessCDR(1,14224254,1,1,2) [2025-01-11 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224254', 'tblTempUsageDetail_20' ) start [2025-01-11 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224254', 'tblTempUsageDetail_20' ) end [2025-01-11 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:27:22] Production.INFO: ==11507== Releasing lock... [2025-01-11 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:28:05 [end_date_ymd] => 2025-01-11 12:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:28:05' and `end` < '2025-01-11 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-11 12:28:18] Production.INFO: count ==1654 [2025-01-11 12:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:28:05 - End Time 2025-01-11 12:28:05 [2025-01-11 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224259', 'tblTempUsageDetail_20' ) start [2025-01-11 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224259', 'tblTempUsageDetail_20' ) end [2025-01-11 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224259', 'tblTempVendorCDR_20' ) start [2025-01-11 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224259', 'tblTempVendorCDR_20' ) end [2025-01-11 12:28:19] Production.INFO: ProcessCDR(1,14224259,1,1,2) [2025-01-11 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224259', 'tblTempUsageDetail_20' ) start [2025-01-11 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224259', 'tblTempUsageDetail_20' ) end [2025-01-11 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:28:23] Production.INFO: ==11578== Releasing lock... [2025-01-11 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:28:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:29:05 [end_date_ymd] => 2025-01-11 12:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:29:05' and `end` < '2025-01-11 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-11 12:29:18] Production.INFO: count ==1655 [2025-01-11 12:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:29:05 - End Time 2025-01-11 12:29:05 [2025-01-11 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224264', 'tblTempUsageDetail_20' ) start [2025-01-11 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224264', 'tblTempUsageDetail_20' ) end [2025-01-11 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224264', 'tblTempVendorCDR_20' ) start [2025-01-11 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224264', 'tblTempVendorCDR_20' ) end [2025-01-11 12:29:19] Production.INFO: ProcessCDR(1,14224264,1,1,2) [2025-01-11 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224264', 'tblTempUsageDetail_20' ) start [2025-01-11 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224264', 'tblTempUsageDetail_20' ) end [2025-01-11 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:29:22] Production.INFO: ==11691== Releasing lock... [2025-01-11 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:29:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:30:06 [end_date_ymd] => 2025-01-11 12:30:06 [RateCDR] => 1 ) [2025-01-11 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:30:06' and `end` < '2025-01-11 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:30:19] Production.INFO: count ==1653 [2025-01-11 12:30:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:30:06 - End Time 2025-01-11 12:30:06 [2025-01-11 12:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224270', 'tblTempUsageDetail_20' ) start [2025-01-11 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224270', 'tblTempUsageDetail_20' ) end [2025-01-11 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224270', 'tblTempVendorCDR_20' ) start [2025-01-11 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224270', 'tblTempVendorCDR_20' ) end [2025-01-11 12:30:20] Production.INFO: ProcessCDR(1,14224270,1,1,2) [2025-01-11 12:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224270', 'tblTempUsageDetail_20' ) start [2025-01-11 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224270', 'tblTempUsageDetail_20' ) end [2025-01-11 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:30:23] Production.INFO: ==11764== Releasing lock... [2025-01-11 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:30:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:31:05 [end_date_ymd] => 2025-01-11 12:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:31:05' and `end` < '2025-01-11 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-11 12:31:18] Production.INFO: count ==1681 [2025-01-11 12:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:31:05 - End Time 2025-01-11 12:31:05 [2025-01-11 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224275', 'tblTempUsageDetail_20' ) start [2025-01-11 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224275', 'tblTempUsageDetail_20' ) end [2025-01-11 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224275', 'tblTempVendorCDR_20' ) start [2025-01-11 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224275', 'tblTempVendorCDR_20' ) end [2025-01-11 12:31:18] Production.INFO: ProcessCDR(1,14224275,1,1,2) [2025-01-11 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224275', 'tblTempUsageDetail_20' ) start [2025-01-11 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224275', 'tblTempUsageDetail_20' ) end [2025-01-11 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:31:22] Production.INFO: ==11836== Releasing lock... [2025-01-11 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:31:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:32:05 [end_date_ymd] => 2025-01-11 12:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:32:05' and `end` < '2025-01-11 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-11 12:32:18] Production.INFO: count ==1670 [2025-01-11 12:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:32:05 - End Time 2025-01-11 12:32:05 [2025-01-11 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224280', 'tblTempUsageDetail_20' ) start [2025-01-11 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224280', 'tblTempUsageDetail_20' ) end [2025-01-11 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224280', 'tblTempVendorCDR_20' ) start [2025-01-11 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224280', 'tblTempVendorCDR_20' ) end [2025-01-11 12:32:19] Production.INFO: ProcessCDR(1,14224280,1,1,2) [2025-01-11 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224280', 'tblTempUsageDetail_20' ) start [2025-01-11 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224280', 'tblTempUsageDetail_20' ) end [2025-01-11 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:32:22] Production.INFO: ==11909== Releasing lock... [2025-01-11 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:32:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:33:05 [end_date_ymd] => 2025-01-11 12:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:33:05' and `end` < '2025-01-11 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-11 12:33:18] Production.INFO: count ==1671 [2025-01-11 12:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:33:05 - End Time 2025-01-11 12:33:05 [2025-01-11 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224285', 'tblTempUsageDetail_20' ) start [2025-01-11 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224285', 'tblTempUsageDetail_20' ) end [2025-01-11 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224285', 'tblTempVendorCDR_20' ) start [2025-01-11 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224285', 'tblTempVendorCDR_20' ) end [2025-01-11 12:33:19] Production.INFO: ProcessCDR(1,14224285,1,1,2) [2025-01-11 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224285', 'tblTempUsageDetail_20' ) start [2025-01-11 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224285', 'tblTempUsageDetail_20' ) end [2025-01-11 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:33:24] Production.INFO: ==11982== Releasing lock... [2025-01-11 12:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:33:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:34:05 [end_date_ymd] => 2025-01-11 12:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:34:05' and `end` < '2025-01-11 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-11 12:34:19] Production.INFO: count ==1671 [2025-01-11 12:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:34:05 - End Time 2025-01-11 12:34:05 [2025-01-11 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224290', 'tblTempUsageDetail_20' ) start [2025-01-11 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224290', 'tblTempUsageDetail_20' ) end [2025-01-11 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224290', 'tblTempVendorCDR_20' ) start [2025-01-11 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224290', 'tblTempVendorCDR_20' ) end [2025-01-11 12:34:19] Production.INFO: ProcessCDR(1,14224290,1,1,2) [2025-01-11 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224290', 'tblTempUsageDetail_20' ) start [2025-01-11 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224290', 'tblTempUsageDetail_20' ) end [2025-01-11 12:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:34:24] Production.INFO: ==12051== Releasing lock... [2025-01-11 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:34:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:35:05 [end_date_ymd] => 2025-01-11 12:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:35:05' and `end` < '2025-01-11 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-11 12:35:18] Production.INFO: count ==1673 [2025-01-11 12:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:35:05 - End Time 2025-01-11 12:35:05 [2025-01-11 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224295', 'tblTempUsageDetail_20' ) start [2025-01-11 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224295', 'tblTempUsageDetail_20' ) end [2025-01-11 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224295', 'tblTempVendorCDR_20' ) start [2025-01-11 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224295', 'tblTempVendorCDR_20' ) end [2025-01-11 12:35:18] Production.INFO: ProcessCDR(1,14224295,1,1,2) [2025-01-11 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224295', 'tblTempUsageDetail_20' ) start [2025-01-11 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224295', 'tblTempUsageDetail_20' ) end [2025-01-11 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:35:23] Production.INFO: ==12121== Releasing lock... [2025-01-11 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:35:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:36:05 [end_date_ymd] => 2025-01-11 12:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:36:05' and `end` < '2025-01-11 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-11 12:36:19] Production.INFO: count ==1669 [2025-01-11 12:36:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:36:05 - End Time 2025-01-11 12:36:05 [2025-01-11 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224300', 'tblTempUsageDetail_20' ) start [2025-01-11 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224300', 'tblTempUsageDetail_20' ) end [2025-01-11 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224300', 'tblTempVendorCDR_20' ) start [2025-01-11 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224300', 'tblTempVendorCDR_20' ) end [2025-01-11 12:36:20] Production.INFO: ProcessCDR(1,14224300,1,1,2) [2025-01-11 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224300', 'tblTempUsageDetail_20' ) start [2025-01-11 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224300', 'tblTempUsageDetail_20' ) end [2025-01-11 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:36:24] Production.INFO: ==12193== Releasing lock... [2025-01-11 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:36:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:37:05 [end_date_ymd] => 2025-01-11 12:37:05 [RateCDR] => 1 ) [2025-01-11 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:37:05' and `end` < '2025-01-11 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:37:18] Production.INFO: count ==1667 [2025-01-11 12:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:37:05 - End Time 2025-01-11 12:37:05 [2025-01-11 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224305', 'tblTempUsageDetail_20' ) start [2025-01-11 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224305', 'tblTempUsageDetail_20' ) end [2025-01-11 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224305', 'tblTempVendorCDR_20' ) start [2025-01-11 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224305', 'tblTempVendorCDR_20' ) end [2025-01-11 12:37:19] Production.INFO: ProcessCDR(1,14224305,1,1,2) [2025-01-11 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224305', 'tblTempUsageDetail_20' ) start [2025-01-11 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224305', 'tblTempUsageDetail_20' ) end [2025-01-11 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:37:22] Production.INFO: ==12268== Releasing lock... [2025-01-11 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:37:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:38:05 [end_date_ymd] => 2025-01-11 12:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:38:05' and `end` < '2025-01-11 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-11 12:38:19] Production.INFO: count ==1667 [2025-01-11 12:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:38:05 - End Time 2025-01-11 12:38:05 [2025-01-11 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224310', 'tblTempUsageDetail_20' ) start [2025-01-11 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224310', 'tblTempUsageDetail_20' ) end [2025-01-11 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224310', 'tblTempVendorCDR_20' ) start [2025-01-11 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224310', 'tblTempVendorCDR_20' ) end [2025-01-11 12:38:20] Production.INFO: ProcessCDR(1,14224310,1,1,2) [2025-01-11 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224310', 'tblTempUsageDetail_20' ) start [2025-01-11 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224310', 'tblTempUsageDetail_20' ) end [2025-01-11 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:38:23] Production.INFO: ==12338== Releasing lock... [2025-01-11 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:38:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:39:04 [end_date_ymd] => 2025-01-11 12:39:04 [RateCDR] => 1 ) [2025-01-11 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-11 09:39:04' and `end` < '2025-01-11 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-11 12:39:18] Production.INFO: count ==1657 [2025-01-11 12:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:39:04 - End Time 2025-01-11 12:39:04 [2025-01-11 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224315', 'tblTempUsageDetail_20' ) start [2025-01-11 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224315', 'tblTempUsageDetail_20' ) end [2025-01-11 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224315', 'tblTempVendorCDR_20' ) start [2025-01-11 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224315', 'tblTempVendorCDR_20' ) end [2025-01-11 12:39:19] Production.INFO: ProcessCDR(1,14224315,1,1,2) [2025-01-11 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224315', 'tblTempUsageDetail_20' ) start [2025-01-11 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224315', 'tblTempUsageDetail_20' ) end [2025-01-11 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:39:23] Production.INFO: ==12408== Releasing lock... [2025-01-11 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:39:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:40:06 [end_date_ymd] => 2025-01-11 12:40:06 [RateCDR] => 1 ) [2025-01-11 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:40:06' and `end` < '2025-01-11 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:40:19] Production.INFO: count ==1653 [2025-01-11 12:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:40:06 - End Time 2025-01-11 12:40:06 [2025-01-11 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224320', 'tblTempUsageDetail_20' ) start [2025-01-11 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224320', 'tblTempUsageDetail_20' ) end [2025-01-11 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224320', 'tblTempVendorCDR_20' ) start [2025-01-11 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224320', 'tblTempVendorCDR_20' ) end [2025-01-11 12:40:19] Production.INFO: ProcessCDR(1,14224320,1,1,2) [2025-01-11 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224320', 'tblTempUsageDetail_20' ) start [2025-01-11 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224320', 'tblTempUsageDetail_20' ) end [2025-01-11 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:40:23] Production.INFO: ==12480== Releasing lock... [2025-01-11 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:40:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:41:04 [end_date_ymd] => 2025-01-11 12:41:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:41:04' and `end` < '2025-01-11 12: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-11 12:41:19] Production.INFO: count ==1693 [2025-01-11 12:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:41:04 - End Time 2025-01-11 12:41:04 [2025-01-11 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224326', 'tblTempUsageDetail_20' ) start [2025-01-11 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224326', 'tblTempUsageDetail_20' ) end [2025-01-11 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224326', 'tblTempVendorCDR_20' ) start [2025-01-11 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224326', 'tblTempVendorCDR_20' ) end [2025-01-11 12:41:19] Production.INFO: ProcessCDR(1,14224326,1,1,2) [2025-01-11 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224326', 'tblTempUsageDetail_20' ) start [2025-01-11 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224326', 'tblTempUsageDetail_20' ) end [2025-01-11 12:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:41:24] Production.INFO: ==12586== Releasing lock... [2025-01-11 12:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:42:05 [end_date_ymd] => 2025-01-11 12:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:42:05' and `end` < '2025-01-11 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-11 12:42:18] Production.INFO: count ==1694 [2025-01-11 12:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:42:05 - End Time 2025-01-11 12:42:05 [2025-01-11 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224331', 'tblTempUsageDetail_20' ) start [2025-01-11 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224331', 'tblTempUsageDetail_20' ) end [2025-01-11 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224331', 'tblTempVendorCDR_20' ) start [2025-01-11 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224331', 'tblTempVendorCDR_20' ) end [2025-01-11 12:42:19] Production.INFO: ProcessCDR(1,14224331,1,1,2) [2025-01-11 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224331', 'tblTempUsageDetail_20' ) start [2025-01-11 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224331', 'tblTempUsageDetail_20' ) end [2025-01-11 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:42:24] Production.INFO: ==12660== Releasing lock... [2025-01-11 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:42:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:43:04 [end_date_ymd] => 2025-01-11 12:43:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:43:04' and `end` < '2025-01-11 12: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-11 12:43:17] Production.INFO: count ==1700 [2025-01-11 12:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:43:04 - End Time 2025-01-11 12:43:04 [2025-01-11 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224336', 'tblTempUsageDetail_20' ) start [2025-01-11 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224336', 'tblTempUsageDetail_20' ) end [2025-01-11 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224336', 'tblTempVendorCDR_20' ) start [2025-01-11 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224336', 'tblTempVendorCDR_20' ) end [2025-01-11 12:43:18] Production.INFO: ProcessCDR(1,14224336,1,1,2) [2025-01-11 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224336', 'tblTempUsageDetail_20' ) start [2025-01-11 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224336', 'tblTempUsageDetail_20' ) end [2025-01-11 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:43:23] Production.INFO: ==12729== Releasing lock... [2025-01-11 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:43:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:44:05 [end_date_ymd] => 2025-01-11 12:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:44:05' and `end` < '2025-01-11 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-11 12:44:18] Production.INFO: count ==1701 [2025-01-11 12:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:44:05 - End Time 2025-01-11 12:44:05 [2025-01-11 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224341', 'tblTempUsageDetail_20' ) start [2025-01-11 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224341', 'tblTempUsageDetail_20' ) end [2025-01-11 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224341', 'tblTempVendorCDR_20' ) start [2025-01-11 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224341', 'tblTempVendorCDR_20' ) end [2025-01-11 12:44:19] Production.INFO: ProcessCDR(1,14224341,1,1,2) [2025-01-11 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224341', 'tblTempUsageDetail_20' ) start [2025-01-11 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224341', 'tblTempUsageDetail_20' ) end [2025-01-11 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:44:23] Production.INFO: ==12841== Releasing lock... [2025-01-11 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:45:05 [end_date_ymd] => 2025-01-11 12:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:45:05' and `end` < '2025-01-11 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-11 12:45:18] Production.INFO: count ==1701 [2025-01-11 12:45:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:45:05 - End Time 2025-01-11 12:45:05 [2025-01-11 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224346', 'tblTempUsageDetail_20' ) start [2025-01-11 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224346', 'tblTempUsageDetail_20' ) end [2025-01-11 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224346', 'tblTempVendorCDR_20' ) start [2025-01-11 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224346', 'tblTempVendorCDR_20' ) end [2025-01-11 12:45:19] Production.INFO: ProcessCDR(1,14224346,1,1,2) [2025-01-11 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224346', 'tblTempUsageDetail_20' ) start [2025-01-11 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224346', 'tblTempUsageDetail_20' ) end [2025-01-11 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:45:24] Production.INFO: ==12913== Releasing lock... [2025-01-11 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:45:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:46:05 [end_date_ymd] => 2025-01-11 12:46:05 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:46:05' and `end` < '2025-01-11 12: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-11 12:46:37] Production.INFO: count ==1696 [2025-01-11 12:46:37] Production.ERROR: pbx CDR StartTime 2025-01-11 09:46:05 - End Time 2025-01-11 12:46:05 [2025-01-11 12:46:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224351', 'tblTempUsageDetail_20' ) start [2025-01-11 12:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224351', 'tblTempUsageDetail_20' ) end [2025-01-11 12:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224351', 'tblTempVendorCDR_20' ) start [2025-01-11 12:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224351', 'tblTempVendorCDR_20' ) end [2025-01-11 12:46:37] Production.INFO: ProcessCDR(1,14224351,1,1,2) [2025-01-11 12:46:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224351', 'tblTempUsageDetail_20' ) start [2025-01-11 12:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224351', 'tblTempUsageDetail_20' ) end [2025-01-11 12:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:46:42] Production.INFO: ==12986== Releasing lock... [2025-01-11 12:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:46:42] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:47:05 [end_date_ymd] => 2025-01-11 12:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:47:05' and `end` < '2025-01-11 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-11 12:47:25] Production.INFO: count ==1701 [2025-01-11 12:47:25] Production.ERROR: pbx CDR StartTime 2025-01-11 09:47:05 - End Time 2025-01-11 12:47:05 [2025-01-11 12:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224356', 'tblTempUsageDetail_20' ) start [2025-01-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224356', 'tblTempUsageDetail_20' ) end [2025-01-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224356', 'tblTempVendorCDR_20' ) start [2025-01-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224356', 'tblTempVendorCDR_20' ) end [2025-01-11 12:47:25] Production.INFO: ProcessCDR(1,14224356,1,1,2) [2025-01-11 12:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224356', 'tblTempUsageDetail_20' ) start [2025-01-11 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224356', 'tblTempUsageDetail_20' ) end [2025-01-11 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:47:29] Production.INFO: ==13057== Releasing lock... [2025-01-11 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:47:29] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:48:04 [end_date_ymd] => 2025-01-11 12:48:04 [RateCDR] => 1 ) [2025-01-11 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-11 09:48:04' and `end` < '2025-01-11 12: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-11 12:48:23] Production.INFO: count ==1705 [2025-01-11 12:48:23] Production.ERROR: pbx CDR StartTime 2025-01-11 09:48:04 - End Time 2025-01-11 12:48:04 [2025-01-11 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224361', 'tblTempUsageDetail_20' ) start [2025-01-11 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224361', 'tblTempUsageDetail_20' ) end [2025-01-11 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224361', 'tblTempVendorCDR_20' ) start [2025-01-11 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224361', 'tblTempVendorCDR_20' ) end [2025-01-11 12:48:23] Production.INFO: ProcessCDR(1,14224361,1,1,2) [2025-01-11 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224361', 'tblTempUsageDetail_20' ) start [2025-01-11 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224361', 'tblTempUsageDetail_20' ) end [2025-01-11 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:48:28] Production.INFO: ==13127== Releasing lock... [2025-01-11 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:48:28] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:49:05 [end_date_ymd] => 2025-01-11 12:49:05 [RateCDR] => 1 ) [2025-01-11 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:49:05' and `end` < '2025-01-11 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:49:22] Production.INFO: count ==1687 [2025-01-11 12:49:22] Production.ERROR: pbx CDR StartTime 2025-01-11 09:49:05 - End Time 2025-01-11 12:49:05 [2025-01-11 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224366', 'tblTempUsageDetail_20' ) start [2025-01-11 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224366', 'tblTempUsageDetail_20' ) end [2025-01-11 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224366', 'tblTempVendorCDR_20' ) start [2025-01-11 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224366', 'tblTempVendorCDR_20' ) end [2025-01-11 12:49:22] Production.INFO: ProcessCDR(1,14224366,1,1,2) [2025-01-11 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224366', 'tblTempUsageDetail_20' ) start [2025-01-11 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224366', 'tblTempUsageDetail_20' ) end [2025-01-11 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:49:26] Production.INFO: ==13198== Releasing lock... [2025-01-11 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:49:26] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:50:05 [end_date_ymd] => 2025-01-11 12:50:05 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:50:05' and `end` < '2025-01-11 12: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-11 12:50:18] Production.INFO: count ==1682 [2025-01-11 12:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:50:05 - End Time 2025-01-11 12:50:05 [2025-01-11 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224372', 'tblTempUsageDetail_20' ) start [2025-01-11 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224372', 'tblTempUsageDetail_20' ) end [2025-01-11 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224372', 'tblTempVendorCDR_20' ) start [2025-01-11 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224372', 'tblTempVendorCDR_20' ) end [2025-01-11 12:50:19] Production.INFO: ProcessCDR(1,14224372,1,1,2) [2025-01-11 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224372', 'tblTempUsageDetail_20' ) start [2025-01-11 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224372', 'tblTempUsageDetail_20' ) end [2025-01-11 12:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:50:23] Production.INFO: ==13272== Releasing lock... [2025-01-11 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:50:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:51:05 [end_date_ymd] => 2025-01-11 12:51:05 [RateCDR] => 1 ) [2025-01-11 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:51:05' and `end` < '2025-01-11 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:51:19] Production.INFO: count ==1708 [2025-01-11 12:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:51:05 - End Time 2025-01-11 12:51:05 [2025-01-11 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224377', 'tblTempUsageDetail_20' ) start [2025-01-11 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224377', 'tblTempUsageDetail_20' ) end [2025-01-11 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224377', 'tblTempVendorCDR_20' ) start [2025-01-11 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224377', 'tblTempVendorCDR_20' ) end [2025-01-11 12:51:19] Production.INFO: ProcessCDR(1,14224377,1,1,2) [2025-01-11 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224377', 'tblTempUsageDetail_20' ) start [2025-01-11 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224377', 'tblTempUsageDetail_20' ) end [2025-01-11 12:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:51:24] Production.INFO: ==13344== Releasing lock... [2025-01-11 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:51:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:52:05 [end_date_ymd] => 2025-01-11 12:52:05 [RateCDR] => 1 ) [2025-01-11 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:52:05' and `end` < '2025-01-11 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:52:19] Production.INFO: count ==1703 [2025-01-11 12:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:52:05 - End Time 2025-01-11 12:52:05 [2025-01-11 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224382', 'tblTempUsageDetail_20' ) start [2025-01-11 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224382', 'tblTempUsageDetail_20' ) end [2025-01-11 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224382', 'tblTempVendorCDR_20' ) start [2025-01-11 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224382', 'tblTempVendorCDR_20' ) end [2025-01-11 12:52:19] Production.INFO: ProcessCDR(1,14224382,1,1,2) [2025-01-11 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224382', 'tblTempUsageDetail_20' ) start [2025-01-11 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224382', 'tblTempUsageDetail_20' ) end [2025-01-11 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:52:22] Production.INFO: ==13415== Releasing lock... [2025-01-11 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:53:04 [end_date_ymd] => 2025-01-11 12:53:04 [RateCDR] => 1 ) [2025-01-11 12: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-11 09:53:04' and `end` < '2025-01-11 12: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-11 12:53:19] Production.INFO: count ==1694 [2025-01-11 12:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:53:04 - End Time 2025-01-11 12:53:04 [2025-01-11 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224387', 'tblTempUsageDetail_20' ) start [2025-01-11 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224387', 'tblTempUsageDetail_20' ) end [2025-01-11 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224387', 'tblTempVendorCDR_20' ) start [2025-01-11 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224387', 'tblTempVendorCDR_20' ) end [2025-01-11 12:53:19] Production.INFO: ProcessCDR(1,14224387,1,1,2) [2025-01-11 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224387', 'tblTempUsageDetail_20' ) start [2025-01-11 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224387', 'tblTempUsageDetail_20' ) end [2025-01-11 12:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:53:24] Production.INFO: ==13485== Releasing lock... [2025-01-11 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:53:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:54:05 [end_date_ymd] => 2025-01-11 12:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:54:05' and `end` < '2025-01-11 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-11 12:54:19] Production.INFO: count ==1675 [2025-01-11 12:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:54:05 - End Time 2025-01-11 12:54:05 [2025-01-11 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224392', 'tblTempUsageDetail_20' ) start [2025-01-11 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224392', 'tblTempUsageDetail_20' ) end [2025-01-11 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224392', 'tblTempVendorCDR_20' ) start [2025-01-11 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224392', 'tblTempVendorCDR_20' ) end [2025-01-11 12:54:19] Production.INFO: ProcessCDR(1,14224392,1,1,2) [2025-01-11 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224392', 'tblTempUsageDetail_20' ) start [2025-01-11 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224392', 'tblTempUsageDetail_20' ) end [2025-01-11 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:54:23] Production.INFO: ==13574== Releasing lock... [2025-01-11 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:54:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:55:05 [end_date_ymd] => 2025-01-11 12:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:55:05' and `end` < '2025-01-11 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-11 12:55:18] Production.INFO: count ==1672 [2025-01-11 12:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:55:05 - End Time 2025-01-11 12:55:05 [2025-01-11 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224397', 'tblTempUsageDetail_20' ) start [2025-01-11 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224397', 'tblTempUsageDetail_20' ) end [2025-01-11 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224397', 'tblTempVendorCDR_20' ) start [2025-01-11 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224397', 'tblTempVendorCDR_20' ) end [2025-01-11 12:55:19] Production.INFO: ProcessCDR(1,14224397,1,1,2) [2025-01-11 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224397', 'tblTempUsageDetail_20' ) start [2025-01-11 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224397', 'tblTempUsageDetail_20' ) end [2025-01-11 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:55:23] Production.INFO: ==13645== Releasing lock... [2025-01-11 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:55:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:56:05 [end_date_ymd] => 2025-01-11 12:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:56:05' and `end` < '2025-01-11 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-11 12:56:19] Production.INFO: count ==1665 [2025-01-11 12:56:20] Production.ERROR: pbx CDR StartTime 2025-01-11 09:56:05 - End Time 2025-01-11 12:56:05 [2025-01-11 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224402', 'tblTempUsageDetail_20' ) start [2025-01-11 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224402', 'tblTempUsageDetail_20' ) end [2025-01-11 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224402', 'tblTempVendorCDR_20' ) start [2025-01-11 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224402', 'tblTempVendorCDR_20' ) end [2025-01-11 12:56:20] Production.INFO: ProcessCDR(1,14224402,1,1,2) [2025-01-11 12:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224402', 'tblTempUsageDetail_20' ) start [2025-01-11 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224402', 'tblTempUsageDetail_20' ) end [2025-01-11 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:56:23] Production.INFO: ==13716== Releasing lock... [2025-01-11 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:57:05 [end_date_ymd] => 2025-01-11 12:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:57:05' and `end` < '2025-01-11 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-11 12:57:18] Production.INFO: count ==1673 [2025-01-11 12:57:18] Production.ERROR: pbx CDR StartTime 2025-01-11 09:57:05 - End Time 2025-01-11 12:57:05 [2025-01-11 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224407', 'tblTempUsageDetail_20' ) start [2025-01-11 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224407', 'tblTempUsageDetail_20' ) end [2025-01-11 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224407', 'tblTempVendorCDR_20' ) start [2025-01-11 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224407', 'tblTempVendorCDR_20' ) end [2025-01-11 12:57:18] Production.INFO: ProcessCDR(1,14224407,1,1,2) [2025-01-11 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224407', 'tblTempUsageDetail_20' ) start [2025-01-11 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224407', 'tblTempUsageDetail_20' ) end [2025-01-11 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:57:23] Production.INFO: ==13785== Releasing lock... [2025-01-11 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:57:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:58:05 [end_date_ymd] => 2025-01-11 12:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 09:58:05' and `end` < '2025-01-11 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-11 12:58:19] Production.INFO: count ==1662 [2025-01-11 12:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:58:05 - End Time 2025-01-11 12:58:05 [2025-01-11 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224412', 'tblTempUsageDetail_20' ) start [2025-01-11 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224412', 'tblTempUsageDetail_20' ) end [2025-01-11 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224412', 'tblTempVendorCDR_20' ) start [2025-01-11 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224412', 'tblTempVendorCDR_20' ) end [2025-01-11 12:58:19] Production.INFO: ProcessCDR(1,14224412,1,1,2) [2025-01-11 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224412', 'tblTempUsageDetail_20' ) start [2025-01-11 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224412', 'tblTempUsageDetail_20' ) end [2025-01-11 12:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:58:24] Production.INFO: ==13856== Releasing lock... [2025-01-11 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:58:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 09:59:05 [end_date_ymd] => 2025-01-11 12:59:05 [RateCDR] => 1 ) [2025-01-11 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 09:59:05' and `end` < '2025-01-11 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 12:59:18] Production.INFO: count ==1660 [2025-01-11 12:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 09:59:05 - End Time 2025-01-11 12:59:05 [2025-01-11 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224417', 'tblTempUsageDetail_20' ) start [2025-01-11 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224417', 'tblTempUsageDetail_20' ) end [2025-01-11 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224417', 'tblTempVendorCDR_20' ) start [2025-01-11 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224417', 'tblTempVendorCDR_20' ) end [2025-01-11 12:59:19] Production.INFO: ProcessCDR(1,14224417,1,1,2) [2025-01-11 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224417', 'tblTempUsageDetail_20' ) start [2025-01-11 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224417', 'tblTempUsageDetail_20' ) end [2025-01-11 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 12:59:22] Production.INFO: ==13925== Releasing lock... [2025-01-11 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 12:59:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:00:06 [end_date_ymd] => 2025-01-11 13:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 10:00:06' and `end` < '2025-01-11 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-11 13:00:19] Production.INFO: count ==1646 [2025-01-11 13:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:00:06 - End Time 2025-01-11 13:00:06 [2025-01-11 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224423', 'tblTempUsageDetail_20' ) start [2025-01-11 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224423', 'tblTempUsageDetail_20' ) end [2025-01-11 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224423', 'tblTempVendorCDR_20' ) start [2025-01-11 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224423', 'tblTempVendorCDR_20' ) end [2025-01-11 13:00:20] Production.INFO: ProcessCDR(1,14224423,1,1,2) [2025-01-11 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224423', 'tblTempUsageDetail_20' ) start [2025-01-11 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224423', 'tblTempUsageDetail_20' ) end [2025-01-11 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:00:23] Production.INFO: ==14038== Releasing lock... [2025-01-11 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:00:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:01:05 [end_date_ymd] => 2025-01-11 13:01:05 [RateCDR] => 1 ) [2025-01-11 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:01:05' and `end` < '2025-01-11 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:01:18] Production.INFO: count ==1681 [2025-01-11 13:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:01:05 - End Time 2025-01-11 13:01:05 [2025-01-11 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224428', 'tblTempUsageDetail_20' ) start [2025-01-11 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224428', 'tblTempUsageDetail_20' ) end [2025-01-11 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224428', 'tblTempVendorCDR_20' ) start [2025-01-11 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224428', 'tblTempVendorCDR_20' ) end [2025-01-11 13:01:18] Production.INFO: ProcessCDR(1,14224428,1,1,2) [2025-01-11 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224428', 'tblTempUsageDetail_20' ) start [2025-01-11 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224428', 'tblTempUsageDetail_20' ) end [2025-01-11 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:01:23] Production.INFO: ==14123== Releasing lock... [2025-01-11 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:01:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:02:05 [end_date_ymd] => 2025-01-11 13:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:02:05' and `end` < '2025-01-11 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-11 13:02:19] Production.INFO: count ==1695 [2025-01-11 13:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:02:05 - End Time 2025-01-11 13:02:05 [2025-01-11 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224433', 'tblTempUsageDetail_20' ) start [2025-01-11 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224433', 'tblTempUsageDetail_20' ) end [2025-01-11 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224433', 'tblTempVendorCDR_20' ) start [2025-01-11 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224433', 'tblTempVendorCDR_20' ) end [2025-01-11 13:02:19] Production.INFO: ProcessCDR(1,14224433,1,1,2) [2025-01-11 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224433', 'tblTempUsageDetail_20' ) start [2025-01-11 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224433', 'tblTempUsageDetail_20' ) end [2025-01-11 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:02:24] Production.INFO: ==14199== Releasing lock... [2025-01-11 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:02:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:03:04 [end_date_ymd] => 2025-01-11 13:03:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:03:04' and `end` < '2025-01-11 13: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-11 13:03:17] Production.INFO: count ==1693 [2025-01-11 13:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:03:04 - End Time 2025-01-11 13:03:04 [2025-01-11 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224438', 'tblTempUsageDetail_20' ) start [2025-01-11 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224438', 'tblTempUsageDetail_20' ) end [2025-01-11 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224438', 'tblTempVendorCDR_20' ) start [2025-01-11 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224438', 'tblTempVendorCDR_20' ) end [2025-01-11 13:03:18] Production.INFO: ProcessCDR(1,14224438,1,1,2) [2025-01-11 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224438', 'tblTempUsageDetail_20' ) start [2025-01-11 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224438', 'tblTempUsageDetail_20' ) end [2025-01-11 13:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:03:22] Production.INFO: ==14277== Releasing lock... [2025-01-11 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:04:05 [end_date_ymd] => 2025-01-11 13:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:04:05' and `end` < '2025-01-11 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-11 13:04:18] Production.INFO: count ==1698 [2025-01-11 13:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:04:05 - End Time 2025-01-11 13:04:05 [2025-01-11 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224443', 'tblTempUsageDetail_20' ) start [2025-01-11 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224443', 'tblTempUsageDetail_20' ) end [2025-01-11 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224443', 'tblTempVendorCDR_20' ) start [2025-01-11 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224443', 'tblTempVendorCDR_20' ) end [2025-01-11 13:04:19] Production.INFO: ProcessCDR(1,14224443,1,1,2) [2025-01-11 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224443', 'tblTempUsageDetail_20' ) start [2025-01-11 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224443', 'tblTempUsageDetail_20' ) end [2025-01-11 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:04:23] Production.INFO: ==14360== Releasing lock... [2025-01-11 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:05:05 [end_date_ymd] => 2025-01-11 13:05:05 [RateCDR] => 1 ) [2025-01-11 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:05:05' and `end` < '2025-01-11 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:05:20] Production.INFO: count ==1687 [2025-01-11 13:05:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:05:05 - End Time 2025-01-11 13:05:05 [2025-01-11 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224448', 'tblTempUsageDetail_20' ) start [2025-01-11 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224448', 'tblTempUsageDetail_20' ) end [2025-01-11 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224448', 'tblTempVendorCDR_20' ) start [2025-01-11 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224448', 'tblTempVendorCDR_20' ) end [2025-01-11 13:05:20] Production.INFO: ProcessCDR(1,14224448,1,1,2) [2025-01-11 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224448', 'tblTempUsageDetail_20' ) start [2025-01-11 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224448', 'tblTempUsageDetail_20' ) end [2025-01-11 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:05:24] Production.INFO: ==14437== Releasing lock... [2025-01-11 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:05:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:06:05 [end_date_ymd] => 2025-01-11 13:06:05 [RateCDR] => 1 ) [2025-01-11 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:06:05' and `end` < '2025-01-11 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:06:22] Production.INFO: count ==1685 [2025-01-11 13:06:23] Production.ERROR: pbx CDR StartTime 2025-01-11 10:06:05 - End Time 2025-01-11 13:06:05 [2025-01-11 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224453', 'tblTempUsageDetail_20' ) start [2025-01-11 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224453', 'tblTempUsageDetail_20' ) end [2025-01-11 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224453', 'tblTempVendorCDR_20' ) start [2025-01-11 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224453', 'tblTempVendorCDR_20' ) end [2025-01-11 13:06:23] Production.INFO: ProcessCDR(1,14224453,1,1,2) [2025-01-11 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224453', 'tblTempUsageDetail_20' ) start [2025-01-11 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224453', 'tblTempUsageDetail_20' ) end [2025-01-11 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:06:27] Production.INFO: ==14506== Releasing lock... [2025-01-11 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:06:27] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:07:05 [end_date_ymd] => 2025-01-11 13:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:07:05' and `end` < '2025-01-11 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-11 13:07:22] Production.INFO: count ==1679 [2025-01-11 13:07:22] Production.ERROR: pbx CDR StartTime 2025-01-11 10:07:05 - End Time 2025-01-11 13:07:05 [2025-01-11 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224458', 'tblTempUsageDetail_20' ) start [2025-01-11 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224458', 'tblTempUsageDetail_20' ) end [2025-01-11 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224458', 'tblTempVendorCDR_20' ) start [2025-01-11 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224458', 'tblTempVendorCDR_20' ) end [2025-01-11 13:07:23] Production.INFO: ProcessCDR(1,14224458,1,1,2) [2025-01-11 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224458', 'tblTempUsageDetail_20' ) start [2025-01-11 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224458', 'tblTempUsageDetail_20' ) end [2025-01-11 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:07:27] Production.INFO: ==14580== Releasing lock... [2025-01-11 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:07:27] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:08:05 [end_date_ymd] => 2025-01-11 13:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:08:05' and `end` < '2025-01-11 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-11 13:08:18] Production.INFO: count ==1676 [2025-01-11 13:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:08:05 - End Time 2025-01-11 13:08:05 [2025-01-11 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224463', 'tblTempUsageDetail_20' ) start [2025-01-11 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224463', 'tblTempUsageDetail_20' ) end [2025-01-11 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224463', 'tblTempVendorCDR_20' ) start [2025-01-11 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224463', 'tblTempVendorCDR_20' ) end [2025-01-11 13:08:19] Production.INFO: ProcessCDR(1,14224463,1,1,2) [2025-01-11 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224463', 'tblTempUsageDetail_20' ) start [2025-01-11 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224463', 'tblTempUsageDetail_20' ) end [2025-01-11 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:08:22] Production.INFO: ==14659== Releasing lock... [2025-01-11 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:08:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:09:05 [end_date_ymd] => 2025-01-11 13:09:05 [RateCDR] => 1 ) [2025-01-11 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:09:05' and `end` < '2025-01-11 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:09:18] Production.INFO: count ==1670 [2025-01-11 13:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:09:05 - End Time 2025-01-11 13:09:05 [2025-01-11 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224468', 'tblTempUsageDetail_20' ) start [2025-01-11 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224468', 'tblTempUsageDetail_20' ) end [2025-01-11 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224468', 'tblTempVendorCDR_20' ) start [2025-01-11 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224468', 'tblTempVendorCDR_20' ) end [2025-01-11 13:09:19] Production.INFO: ProcessCDR(1,14224468,1,1,2) [2025-01-11 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224468', 'tblTempUsageDetail_20' ) start [2025-01-11 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224468', 'tblTempUsageDetail_20' ) end [2025-01-11 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:09:24] Production.INFO: ==14735== Releasing lock... [2025-01-11 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:09:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:10:06 [end_date_ymd] => 2025-01-11 13:10:06 [RateCDR] => 1 ) [2025-01-11 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-11 10:10:06' and `end` < '2025-01-11 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-11 13:10:19] Production.INFO: count ==1663 [2025-01-11 13:10:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:10:06 - End Time 2025-01-11 13:10:06 [2025-01-11 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224474', 'tblTempUsageDetail_20' ) start [2025-01-11 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224474', 'tblTempUsageDetail_20' ) end [2025-01-11 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224474', 'tblTempVendorCDR_20' ) start [2025-01-11 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224474', 'tblTempVendorCDR_20' ) end [2025-01-11 13:10:20] Production.INFO: ProcessCDR(1,14224474,1,1,2) [2025-01-11 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224474', 'tblTempUsageDetail_20' ) start [2025-01-11 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224474', 'tblTempUsageDetail_20' ) end [2025-01-11 13:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:10:24] Production.INFO: ==14825== Releasing lock... [2025-01-11 13:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:11:05 [end_date_ymd] => 2025-01-11 13:11:05 [RateCDR] => 1 ) [2025-01-11 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:11:05' and `end` < '2025-01-11 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:11:19] Production.INFO: count ==1662 [2025-01-11 13:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:11:05 - End Time 2025-01-11 13:11:05 [2025-01-11 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224479', 'tblTempUsageDetail_20' ) start [2025-01-11 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224479', 'tblTempUsageDetail_20' ) end [2025-01-11 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224479', 'tblTempVendorCDR_20' ) start [2025-01-11 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224479', 'tblTempVendorCDR_20' ) end [2025-01-11 13:11:20] Production.INFO: ProcessCDR(1,14224479,1,1,2) [2025-01-11 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224479', 'tblTempUsageDetail_20' ) start [2025-01-11 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224479', 'tblTempUsageDetail_20' ) end [2025-01-11 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:11:24] Production.INFO: ==14907== Releasing lock... [2025-01-11 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:11:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:12:04 [end_date_ymd] => 2025-01-11 13:12:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:12:04' and `end` < '2025-01-11 13: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-11 13:12:18] Production.INFO: count ==1670 [2025-01-11 13:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:12:04 - End Time 2025-01-11 13:12:04 [2025-01-11 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224484', 'tblTempUsageDetail_20' ) start [2025-01-11 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224484', 'tblTempUsageDetail_20' ) end [2025-01-11 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224484', 'tblTempVendorCDR_20' ) start [2025-01-11 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224484', 'tblTempVendorCDR_20' ) end [2025-01-11 13:12:18] Production.INFO: ProcessCDR(1,14224484,1,1,2) [2025-01-11 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224484', 'tblTempUsageDetail_20' ) start [2025-01-11 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224484', 'tblTempUsageDetail_20' ) end [2025-01-11 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:12:22] Production.INFO: ==14983== Releasing lock... [2025-01-11 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:12:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:13:05 [end_date_ymd] => 2025-01-11 13:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:13:05' and `end` < '2025-01-11 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-11 13:13:18] Production.INFO: count ==1669 [2025-01-11 13:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:13:05 - End Time 2025-01-11 13:13:05 [2025-01-11 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224489', 'tblTempUsageDetail_20' ) start [2025-01-11 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224489', 'tblTempUsageDetail_20' ) end [2025-01-11 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224489', 'tblTempVendorCDR_20' ) start [2025-01-11 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224489', 'tblTempVendorCDR_20' ) end [2025-01-11 13:13:19] Production.INFO: ProcessCDR(1,14224489,1,1,2) [2025-01-11 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224489', 'tblTempUsageDetail_20' ) start [2025-01-11 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224489', 'tblTempUsageDetail_20' ) end [2025-01-11 13:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:13:24] Production.INFO: ==15065== Releasing lock... [2025-01-11 13:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:13:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:14:05 [end_date_ymd] => 2025-01-11 13:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:14:05' and `end` < '2025-01-11 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-11 13:14:18] Production.INFO: count ==1667 [2025-01-11 13:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:14:05 - End Time 2025-01-11 13:14:05 [2025-01-11 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224494', 'tblTempUsageDetail_20' ) start [2025-01-11 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224494', 'tblTempUsageDetail_20' ) end [2025-01-11 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224494', 'tblTempVendorCDR_20' ) start [2025-01-11 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224494', 'tblTempVendorCDR_20' ) end [2025-01-11 13:14:18] Production.INFO: ProcessCDR(1,14224494,1,1,2) [2025-01-11 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224494', 'tblTempUsageDetail_20' ) start [2025-01-11 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224494', 'tblTempUsageDetail_20' ) end [2025-01-11 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:14:22] Production.INFO: ==15144== Releasing lock... [2025-01-11 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:15:05 [end_date_ymd] => 2025-01-11 13:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:15:05' and `end` < '2025-01-11 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-11 13:15:18] Production.INFO: count ==1662 [2025-01-11 13:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:15:05 - End Time 2025-01-11 13:15:05 [2025-01-11 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224499', 'tblTempUsageDetail_20' ) start [2025-01-11 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224499', 'tblTempUsageDetail_20' ) end [2025-01-11 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224499', 'tblTempVendorCDR_20' ) start [2025-01-11 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224499', 'tblTempVendorCDR_20' ) end [2025-01-11 13:15:19] Production.INFO: ProcessCDR(1,14224499,1,1,2) [2025-01-11 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224499', 'tblTempUsageDetail_20' ) start [2025-01-11 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224499', 'tblTempUsageDetail_20' ) end [2025-01-11 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:15:24] Production.INFO: ==15223== Releasing lock... [2025-01-11 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:15:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:16:05 [end_date_ymd] => 2025-01-11 13:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:16:05' and `end` < '2025-01-11 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-11 13:16:18] Production.INFO: count ==1667 [2025-01-11 13:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:16:05 - End Time 2025-01-11 13:16:05 [2025-01-11 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224504', 'tblTempUsageDetail_20' ) start [2025-01-11 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224504', 'tblTempUsageDetail_20' ) end [2025-01-11 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224504', 'tblTempVendorCDR_20' ) start [2025-01-11 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224504', 'tblTempVendorCDR_20' ) end [2025-01-11 13:16:19] Production.INFO: ProcessCDR(1,14224504,1,1,2) [2025-01-11 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224504', 'tblTempUsageDetail_20' ) start [2025-01-11 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224504', 'tblTempUsageDetail_20' ) end [2025-01-11 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:16:23] Production.INFO: ==15339== Releasing lock... [2025-01-11 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:16:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:17:05 [end_date_ymd] => 2025-01-11 13:17:05 [RateCDR] => 1 ) [2025-01-11 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:17:05' and `end` < '2025-01-11 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:17:18] Production.INFO: count ==1667 [2025-01-11 13:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:17:05 - End Time 2025-01-11 13:17:05 [2025-01-11 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224509', 'tblTempUsageDetail_20' ) start [2025-01-11 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224509', 'tblTempUsageDetail_20' ) end [2025-01-11 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224509', 'tblTempVendorCDR_20' ) start [2025-01-11 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224509', 'tblTempVendorCDR_20' ) end [2025-01-11 13:17:19] Production.INFO: ProcessCDR(1,14224509,1,1,2) [2025-01-11 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224509', 'tblTempUsageDetail_20' ) start [2025-01-11 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224509', 'tblTempUsageDetail_20' ) end [2025-01-11 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:17:22] Production.INFO: ==15418== Releasing lock... [2025-01-11 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:17:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:18:04 [end_date_ymd] => 2025-01-11 13:18:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:18:04' and `end` < '2025-01-11 13: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-11 13:18:18] Production.INFO: count ==1636 [2025-01-11 13:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:18:04 - End Time 2025-01-11 13:18:04 [2025-01-11 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224514', 'tblTempUsageDetail_20' ) start [2025-01-11 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224514', 'tblTempUsageDetail_20' ) end [2025-01-11 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224514', 'tblTempVendorCDR_20' ) start [2025-01-11 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224514', 'tblTempVendorCDR_20' ) end [2025-01-11 13:18:19] Production.INFO: ProcessCDR(1,14224514,1,1,2) [2025-01-11 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224514', 'tblTempUsageDetail_20' ) start [2025-01-11 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224514', 'tblTempUsageDetail_20' ) end [2025-01-11 13:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:18:23] Production.INFO: ==15502== Releasing lock... [2025-01-11 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:18:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:19:05 [end_date_ymd] => 2025-01-11 13:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:19:05' and `end` < '2025-01-11 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-11 13:19:18] Production.INFO: count ==1639 [2025-01-11 13:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:19:05 - End Time 2025-01-11 13:19:05 [2025-01-11 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224519', 'tblTempUsageDetail_20' ) start [2025-01-11 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224519', 'tblTempUsageDetail_20' ) end [2025-01-11 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224519', 'tblTempVendorCDR_20' ) start [2025-01-11 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224519', 'tblTempVendorCDR_20' ) end [2025-01-11 13:19:19] Production.INFO: ProcessCDR(1,14224519,1,1,2) [2025-01-11 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224519', 'tblTempUsageDetail_20' ) start [2025-01-11 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224519', 'tblTempUsageDetail_20' ) end [2025-01-11 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:19:22] Production.INFO: ==15583== Releasing lock... [2025-01-11 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:20:06 [end_date_ymd] => 2025-01-11 13:20:06 [RateCDR] => 1 ) [2025-01-11 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:20:06' and `end` < '2025-01-11 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:20:19] Production.INFO: count ==1642 [2025-01-11 13:20:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:20:06 - End Time 2025-01-11 13:20:06 [2025-01-11 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224525', 'tblTempUsageDetail_20' ) start [2025-01-11 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224525', 'tblTempUsageDetail_20' ) end [2025-01-11 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224525', 'tblTempVendorCDR_20' ) start [2025-01-11 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224525', 'tblTempVendorCDR_20' ) end [2025-01-11 13:20:20] Production.INFO: ProcessCDR(1,14224525,1,1,2) [2025-01-11 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224525', 'tblTempUsageDetail_20' ) start [2025-01-11 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224525', 'tblTempUsageDetail_20' ) end [2025-01-11 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:20:23] Production.INFO: ==15673== Releasing lock... [2025-01-11 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:21:05 [end_date_ymd] => 2025-01-11 13:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:21:05' and `end` < '2025-01-11 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-11 13:21:20] Production.INFO: count ==1688 [2025-01-11 13:21:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:21:05 - End Time 2025-01-11 13:21:05 [2025-01-11 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224530', 'tblTempUsageDetail_20' ) start [2025-01-11 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224530', 'tblTempUsageDetail_20' ) end [2025-01-11 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224530', 'tblTempVendorCDR_20' ) start [2025-01-11 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224530', 'tblTempVendorCDR_20' ) end [2025-01-11 13:21:20] Production.INFO: ProcessCDR(1,14224530,1,1,2) [2025-01-11 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224530', 'tblTempUsageDetail_20' ) start [2025-01-11 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224530', 'tblTempUsageDetail_20' ) end [2025-01-11 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:21:25] Production.INFO: ==15756== Releasing lock... [2025-01-11 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:21:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:22:05 [end_date_ymd] => 2025-01-11 13:22:05 [RateCDR] => 1 ) [2025-01-11 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:22:05' and `end` < '2025-01-11 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:22:19] Production.INFO: count ==1689 [2025-01-11 13:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:22:05 - End Time 2025-01-11 13:22:05 [2025-01-11 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224535', 'tblTempUsageDetail_20' ) start [2025-01-11 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224535', 'tblTempUsageDetail_20' ) end [2025-01-11 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224535', 'tblTempVendorCDR_20' ) start [2025-01-11 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224535', 'tblTempVendorCDR_20' ) end [2025-01-11 13:22:19] Production.INFO: ProcessCDR(1,14224535,1,1,2) [2025-01-11 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224535', 'tblTempUsageDetail_20' ) start [2025-01-11 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224535', 'tblTempUsageDetail_20' ) end [2025-01-11 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:22:24] Production.INFO: ==15843== Releasing lock... [2025-01-11 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:23:05 [end_date_ymd] => 2025-01-11 13:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:23:05' and `end` < '2025-01-11 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-11 13:23:18] Production.INFO: count ==1698 [2025-01-11 13:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:23:05 - End Time 2025-01-11 13:23:05 [2025-01-11 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224540', 'tblTempUsageDetail_20' ) start [2025-01-11 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224540', 'tblTempUsageDetail_20' ) end [2025-01-11 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224540', 'tblTempVendorCDR_20' ) start [2025-01-11 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224540', 'tblTempVendorCDR_20' ) end [2025-01-11 13:23:18] Production.INFO: ProcessCDR(1,14224540,1,1,2) [2025-01-11 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224540', 'tblTempUsageDetail_20' ) start [2025-01-11 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224540', 'tblTempUsageDetail_20' ) end [2025-01-11 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:23:22] Production.INFO: ==15921== Releasing lock... [2025-01-11 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:24:04 [end_date_ymd] => 2025-01-11 13:24:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:24:04' and `end` < '2025-01-11 13: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-11 13:24:18] Production.INFO: count ==1684 [2025-01-11 13:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:24:04 - End Time 2025-01-11 13:24:04 [2025-01-11 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224545', 'tblTempUsageDetail_20' ) start [2025-01-11 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224545', 'tblTempUsageDetail_20' ) end [2025-01-11 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224545', 'tblTempVendorCDR_20' ) start [2025-01-11 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224545', 'tblTempVendorCDR_20' ) end [2025-01-11 13:24:18] Production.INFO: ProcessCDR(1,14224545,1,1,2) [2025-01-11 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224545', 'tblTempUsageDetail_20' ) start [2025-01-11 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224545', 'tblTempUsageDetail_20' ) end [2025-01-11 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:24:22] Production.INFO: ==16004== Releasing lock... [2025-01-11 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:24:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:25:05 [end_date_ymd] => 2025-01-11 13:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:25:05' and `end` < '2025-01-11 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-11 13:25:18] Production.INFO: count ==1688 [2025-01-11 13:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:25:05 - End Time 2025-01-11 13:25:05 [2025-01-11 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224550', 'tblTempUsageDetail_20' ) start [2025-01-11 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224550', 'tblTempUsageDetail_20' ) end [2025-01-11 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224550', 'tblTempVendorCDR_20' ) start [2025-01-11 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224550', 'tblTempVendorCDR_20' ) end [2025-01-11 13:25:19] Production.INFO: ProcessCDR(1,14224550,1,1,2) [2025-01-11 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224550', 'tblTempUsageDetail_20' ) start [2025-01-11 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224550', 'tblTempUsageDetail_20' ) end [2025-01-11 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:25:22] Production.INFO: ==16082== Releasing lock... [2025-01-11 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:25:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:26:05 [end_date_ymd] => 2025-01-11 13:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:26:05' and `end` < '2025-01-11 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-11 13:26:19] Production.INFO: count ==1689 [2025-01-11 13:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:26:05 - End Time 2025-01-11 13:26:05 [2025-01-11 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224555', 'tblTempUsageDetail_20' ) start [2025-01-11 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224555', 'tblTempUsageDetail_20' ) end [2025-01-11 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224555', 'tblTempVendorCDR_20' ) start [2025-01-11 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224555', 'tblTempVendorCDR_20' ) end [2025-01-11 13:26:19] Production.INFO: ProcessCDR(1,14224555,1,1,2) [2025-01-11 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224555', 'tblTempUsageDetail_20' ) start [2025-01-11 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224555', 'tblTempUsageDetail_20' ) end [2025-01-11 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:26:22] Production.INFO: ==16161== Releasing lock... [2025-01-11 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:26:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:27:04 [end_date_ymd] => 2025-01-11 13:27:04 [RateCDR] => 1 ) [2025-01-11 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-11 10:27:04' and `end` < '2025-01-11 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-11 13:27:18] Production.INFO: count ==1688 [2025-01-11 13:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:27:04 - End Time 2025-01-11 13:27:04 [2025-01-11 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224560', 'tblTempUsageDetail_20' ) start [2025-01-11 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224560', 'tblTempUsageDetail_20' ) end [2025-01-11 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224560', 'tblTempVendorCDR_20' ) start [2025-01-11 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224560', 'tblTempVendorCDR_20' ) end [2025-01-11 13:27:18] Production.INFO: ProcessCDR(1,14224560,1,1,2) [2025-01-11 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224560', 'tblTempUsageDetail_20' ) start [2025-01-11 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224560', 'tblTempUsageDetail_20' ) end [2025-01-11 13:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:27:21] Production.INFO: ==16236== Releasing lock... [2025-01-11 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:27:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:28:05 [end_date_ymd] => 2025-01-11 13:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:28:05' and `end` < '2025-01-11 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-11 13:28:18] Production.INFO: count ==1692 [2025-01-11 13:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:28:05 - End Time 2025-01-11 13:28:05 [2025-01-11 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224565', 'tblTempUsageDetail_20' ) start [2025-01-11 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224565', 'tblTempUsageDetail_20' ) end [2025-01-11 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224565', 'tblTempVendorCDR_20' ) start [2025-01-11 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224565', 'tblTempVendorCDR_20' ) end [2025-01-11 13:28:18] Production.INFO: ProcessCDR(1,14224565,1,1,2) [2025-01-11 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224565', 'tblTempUsageDetail_20' ) start [2025-01-11 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224565', 'tblTempUsageDetail_20' ) end [2025-01-11 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:28:23] Production.INFO: ==16307== Releasing lock... [2025-01-11 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:28:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:29:04 [end_date_ymd] => 2025-01-11 13:29:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:29:04' and `end` < '2025-01-11 13: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-11 13:29:18] Production.INFO: count ==1691 [2025-01-11 13:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:29:04 - End Time 2025-01-11 13:29:04 [2025-01-11 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224570', 'tblTempUsageDetail_20' ) start [2025-01-11 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224570', 'tblTempUsageDetail_20' ) end [2025-01-11 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224570', 'tblTempVendorCDR_20' ) start [2025-01-11 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224570', 'tblTempVendorCDR_20' ) end [2025-01-11 13:29:19] Production.INFO: ProcessCDR(1,14224570,1,1,2) [2025-01-11 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224570', 'tblTempUsageDetail_20' ) start [2025-01-11 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224570', 'tblTempUsageDetail_20' ) end [2025-01-11 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:29:22] Production.INFO: ==16379== Releasing lock... [2025-01-11 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:29:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:30:06 [end_date_ymd] => 2025-01-11 13:30:06 [RateCDR] => 1 ) [2025-01-11 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:30:06' and `end` < '2025-01-11 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:30:19] Production.INFO: count ==1701 [2025-01-11 13:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:30:06 - End Time 2025-01-11 13:30:06 [2025-01-11 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224575', 'tblTempUsageDetail_20' ) start [2025-01-11 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224575', 'tblTempUsageDetail_20' ) end [2025-01-11 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224575', 'tblTempVendorCDR_20' ) start [2025-01-11 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224575', 'tblTempVendorCDR_20' ) end [2025-01-11 13:30:19] Production.INFO: ProcessCDR(1,14224575,1,1,2) [2025-01-11 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224575', 'tblTempUsageDetail_20' ) start [2025-01-11 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224575', 'tblTempUsageDetail_20' ) end [2025-01-11 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:30:22] Production.INFO: ==16452== Releasing lock... [2025-01-11 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:30:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:31:04 [end_date_ymd] => 2025-01-11 13:31:04 [RateCDR] => 1 ) [2025-01-11 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-11 10:31:04' and `end` < '2025-01-11 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-11 13:31:17] Production.INFO: count ==1721 [2025-01-11 13:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:31:04 - End Time 2025-01-11 13:31:04 [2025-01-11 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224581', 'tblTempUsageDetail_20' ) start [2025-01-11 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224581', 'tblTempUsageDetail_20' ) end [2025-01-11 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224581', 'tblTempVendorCDR_20' ) start [2025-01-11 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224581', 'tblTempVendorCDR_20' ) end [2025-01-11 13:31:18] Production.INFO: ProcessCDR(1,14224581,1,1,2) [2025-01-11 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224581', 'tblTempUsageDetail_20' ) start [2025-01-11 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224581', 'tblTempUsageDetail_20' ) end [2025-01-11 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:31:22] Production.INFO: ==16563== Releasing lock... [2025-01-11 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:31:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:32:05 [end_date_ymd] => 2025-01-11 13:32:05 [RateCDR] => 1 ) [2025-01-11 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:32:05' and `end` < '2025-01-11 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:32:18] Production.INFO: count ==1722 [2025-01-11 13:32:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:32:05 - End Time 2025-01-11 13:32:05 [2025-01-11 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224586', 'tblTempUsageDetail_20' ) start [2025-01-11 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224586', 'tblTempUsageDetail_20' ) end [2025-01-11 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224586', 'tblTempVendorCDR_20' ) start [2025-01-11 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224586', 'tblTempVendorCDR_20' ) end [2025-01-11 13:32:18] Production.INFO: ProcessCDR(1,14224586,1,1,2) [2025-01-11 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224586', 'tblTempUsageDetail_20' ) start [2025-01-11 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224586', 'tblTempUsageDetail_20' ) end [2025-01-11 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:32:23] Production.INFO: ==16636== Releasing lock... [2025-01-11 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:33:05 [end_date_ymd] => 2025-01-11 13:33:05 [RateCDR] => 1 ) [2025-01-11 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:33:05' and `end` < '2025-01-11 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:33:18] Production.INFO: count ==1710 [2025-01-11 13:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:33:05 - End Time 2025-01-11 13:33:05 [2025-01-11 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224591', 'tblTempUsageDetail_20' ) start [2025-01-11 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224591', 'tblTempUsageDetail_20' ) end [2025-01-11 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224591', 'tblTempVendorCDR_20' ) start [2025-01-11 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224591', 'tblTempVendorCDR_20' ) end [2025-01-11 13:33:19] Production.INFO: ProcessCDR(1,14224591,1,1,2) [2025-01-11 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224591', 'tblTempUsageDetail_20' ) start [2025-01-11 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224591', 'tblTempUsageDetail_20' ) end [2025-01-11 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:33:22] Production.INFO: ==16720== Releasing lock... [2025-01-11 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:33:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:34:05 [end_date_ymd] => 2025-01-11 13:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:34:05' and `end` < '2025-01-11 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-11 13:34:18] Production.INFO: count ==1730 [2025-01-11 13:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:34:05 - End Time 2025-01-11 13:34:05 [2025-01-11 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224596', 'tblTempUsageDetail_20' ) start [2025-01-11 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224596', 'tblTempUsageDetail_20' ) end [2025-01-11 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224596', 'tblTempVendorCDR_20' ) start [2025-01-11 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224596', 'tblTempVendorCDR_20' ) end [2025-01-11 13:34:18] Production.INFO: ProcessCDR(1,14224596,1,1,2) [2025-01-11 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224596', 'tblTempUsageDetail_20' ) start [2025-01-11 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224596', 'tblTempUsageDetail_20' ) end [2025-01-11 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:34:23] Production.INFO: ==16791== Releasing lock... [2025-01-11 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:34:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:35:05 [end_date_ymd] => 2025-01-11 13:35:05 [RateCDR] => 1 ) [2025-01-11 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:35:05' and `end` < '2025-01-11 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:35:18] Production.INFO: count ==1730 [2025-01-11 13:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:35:05 - End Time 2025-01-11 13:35:05 [2025-01-11 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224601', 'tblTempUsageDetail_20' ) start [2025-01-11 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224601', 'tblTempUsageDetail_20' ) end [2025-01-11 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224601', 'tblTempVendorCDR_20' ) start [2025-01-11 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224601', 'tblTempVendorCDR_20' ) end [2025-01-11 13:35:19] Production.INFO: ProcessCDR(1,14224601,1,1,2) [2025-01-11 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224601', 'tblTempUsageDetail_20' ) start [2025-01-11 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224601', 'tblTempUsageDetail_20' ) end [2025-01-11 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:35:22] Production.INFO: ==16871== Releasing lock... [2025-01-11 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:35:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:36:05 [end_date_ymd] => 2025-01-11 13:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:36:05' and `end` < '2025-01-11 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-11 13:36:18] Production.INFO: count ==1731 [2025-01-11 13:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:36:05 - End Time 2025-01-11 13:36:05 [2025-01-11 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224606', 'tblTempUsageDetail_20' ) start [2025-01-11 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224606', 'tblTempUsageDetail_20' ) end [2025-01-11 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224606', 'tblTempVendorCDR_20' ) start [2025-01-11 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224606', 'tblTempVendorCDR_20' ) end [2025-01-11 13:36:19] Production.INFO: ProcessCDR(1,14224606,1,1,2) [2025-01-11 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224606', 'tblTempUsageDetail_20' ) start [2025-01-11 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224606', 'tblTempUsageDetail_20' ) end [2025-01-11 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:36:23] Production.INFO: ==16943== Releasing lock... [2025-01-11 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:36:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:37:05 [end_date_ymd] => 2025-01-11 13:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:37:05' and `end` < '2025-01-11 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-11 13:37:18] Production.INFO: count ==1728 [2025-01-11 13:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:37:05 - End Time 2025-01-11 13:37:05 [2025-01-11 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224611', 'tblTempUsageDetail_20' ) start [2025-01-11 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224611', 'tblTempUsageDetail_20' ) end [2025-01-11 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224611', 'tblTempVendorCDR_20' ) start [2025-01-11 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224611', 'tblTempVendorCDR_20' ) end [2025-01-11 13:37:18] Production.INFO: ProcessCDR(1,14224611,1,1,2) [2025-01-11 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224611', 'tblTempUsageDetail_20' ) start [2025-01-11 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224611', 'tblTempUsageDetail_20' ) end [2025-01-11 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:37:23] Production.INFO: ==17013== Releasing lock... [2025-01-11 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:37:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:38:06 [end_date_ymd] => 2025-01-11 13:38:06 [RateCDR] => 1 ) [2025-01-11 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:38:06' and `end` < '2025-01-11 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:38:19] Production.INFO: count ==1727 [2025-01-11 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:38:06 - End Time 2025-01-11 13:38:06 [2025-01-11 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224616', 'tblTempUsageDetail_20' ) start [2025-01-11 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224616', 'tblTempUsageDetail_20' ) end [2025-01-11 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224616', 'tblTempVendorCDR_20' ) start [2025-01-11 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224616', 'tblTempVendorCDR_20' ) end [2025-01-11 13:38:20] Production.INFO: ProcessCDR(1,14224616,1,1,2) [2025-01-11 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224616', 'tblTempUsageDetail_20' ) start [2025-01-11 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224616', 'tblTempUsageDetail_20' ) end [2025-01-11 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:38:23] Production.INFO: ==17088== Releasing lock... [2025-01-11 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:38:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:39:04 [end_date_ymd] => 2025-01-11 13:39:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:39:04' and `end` < '2025-01-11 13: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-11 13:39:18] Production.INFO: count ==1720 [2025-01-11 13:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:39:04 - End Time 2025-01-11 13:39:04 [2025-01-11 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224621', 'tblTempUsageDetail_20' ) start [2025-01-11 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224621', 'tblTempUsageDetail_20' ) end [2025-01-11 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224621', 'tblTempVendorCDR_20' ) start [2025-01-11 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224621', 'tblTempVendorCDR_20' ) end [2025-01-11 13:39:18] Production.INFO: ProcessCDR(1,14224621,1,1,2) [2025-01-11 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224621', 'tblTempUsageDetail_20' ) start [2025-01-11 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224621', 'tblTempUsageDetail_20' ) end [2025-01-11 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:39:21] Production.INFO: ==17160== Releasing lock... [2025-01-11 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:39:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:40:06 [end_date_ymd] => 2025-01-11 13:40:06 [RateCDR] => 1 ) [2025-01-11 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:40:06' and `end` < '2025-01-11 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:40:19] Production.INFO: count ==1713 [2025-01-11 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:40:06 - End Time 2025-01-11 13:40:06 [2025-01-11 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224627', 'tblTempUsageDetail_20' ) start [2025-01-11 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224627', 'tblTempUsageDetail_20' ) end [2025-01-11 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224627', 'tblTempVendorCDR_20' ) start [2025-01-11 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224627', 'tblTempVendorCDR_20' ) end [2025-01-11 13:40:19] Production.INFO: ProcessCDR(1,14224627,1,1,2) [2025-01-11 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224627', 'tblTempUsageDetail_20' ) start [2025-01-11 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224627', 'tblTempUsageDetail_20' ) end [2025-01-11 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:40:24] Production.INFO: ==17233== Releasing lock... [2025-01-11 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:40:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:41:04 [end_date_ymd] => 2025-01-11 13:41:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:41:04' and `end` < '2025-01-11 13: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-11 13:41:18] Production.INFO: count ==1716 [2025-01-11 13:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:41:04 - End Time 2025-01-11 13:41:04 [2025-01-11 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224632', 'tblTempUsageDetail_20' ) start [2025-01-11 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224632', 'tblTempUsageDetail_20' ) end [2025-01-11 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224632', 'tblTempVendorCDR_20' ) start [2025-01-11 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224632', 'tblTempVendorCDR_20' ) end [2025-01-11 13:41:18] Production.INFO: ProcessCDR(1,14224632,1,1,2) [2025-01-11 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224632', 'tblTempUsageDetail_20' ) start [2025-01-11 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224632', 'tblTempUsageDetail_20' ) end [2025-01-11 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:41:21] Production.INFO: ==17307== Releasing lock... [2025-01-11 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:41:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:42:05 [end_date_ymd] => 2025-01-11 13:42:05 [RateCDR] => 1 ) [2025-01-11 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:42:05' and `end` < '2025-01-11 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:42:18] Production.INFO: count ==1715 [2025-01-11 13:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:42:05 - End Time 2025-01-11 13:42:05 [2025-01-11 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224637', 'tblTempUsageDetail_20' ) start [2025-01-11 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224637', 'tblTempUsageDetail_20' ) end [2025-01-11 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224637', 'tblTempVendorCDR_20' ) start [2025-01-11 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224637', 'tblTempVendorCDR_20' ) end [2025-01-11 13:42:18] Production.INFO: ProcessCDR(1,14224637,1,1,2) [2025-01-11 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224637', 'tblTempUsageDetail_20' ) start [2025-01-11 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224637', 'tblTempUsageDetail_20' ) end [2025-01-11 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:42:23] Production.INFO: ==17378== Releasing lock... [2025-01-11 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:42:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:43:05 [end_date_ymd] => 2025-01-11 13:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:43:05' and `end` < '2025-01-11 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-11 13:43:19] Production.INFO: count ==1720 [2025-01-11 13:43:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:43:05 - End Time 2025-01-11 13:43:05 [2025-01-11 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224642', 'tblTempUsageDetail_20' ) start [2025-01-11 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224642', 'tblTempUsageDetail_20' ) end [2025-01-11 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224642', 'tblTempVendorCDR_20' ) start [2025-01-11 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224642', 'tblTempVendorCDR_20' ) end [2025-01-11 13:43:19] Production.INFO: ProcessCDR(1,14224642,1,1,2) [2025-01-11 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224642', 'tblTempUsageDetail_20' ) start [2025-01-11 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224642', 'tblTempUsageDetail_20' ) end [2025-01-11 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:43:24] Production.INFO: ==17450== Releasing lock... [2025-01-11 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:44:04 [end_date_ymd] => 2025-01-11 13:44:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:44:04' and `end` < '2025-01-11 13: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-11 13:44:18] Production.INFO: count ==1729 [2025-01-11 13:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:44:04 - End Time 2025-01-11 13:44:04 [2025-01-11 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224647', 'tblTempUsageDetail_20' ) start [2025-01-11 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224647', 'tblTempUsageDetail_20' ) end [2025-01-11 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224647', 'tblTempVendorCDR_20' ) start [2025-01-11 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224647', 'tblTempVendorCDR_20' ) end [2025-01-11 13:44:18] Production.INFO: ProcessCDR(1,14224647,1,1,2) [2025-01-11 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224647', 'tblTempUsageDetail_20' ) start [2025-01-11 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224647', 'tblTempUsageDetail_20' ) end [2025-01-11 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:44:23] Production.INFO: ==17520== Releasing lock... [2025-01-11 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:44:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:45:05 [end_date_ymd] => 2025-01-11 13:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:45:05' and `end` < '2025-01-11 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-11 13:45:18] Production.INFO: count ==1723 [2025-01-11 13:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:45:05 - End Time 2025-01-11 13:45:05 [2025-01-11 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224652', 'tblTempUsageDetail_20' ) start [2025-01-11 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224652', 'tblTempUsageDetail_20' ) end [2025-01-11 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224652', 'tblTempVendorCDR_20' ) start [2025-01-11 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224652', 'tblTempVendorCDR_20' ) end [2025-01-11 13:45:18] Production.INFO: ProcessCDR(1,14224652,1,1,2) [2025-01-11 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224652', 'tblTempUsageDetail_20' ) start [2025-01-11 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224652', 'tblTempUsageDetail_20' ) end [2025-01-11 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:45:23] Production.INFO: ==17591== Releasing lock... [2025-01-11 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:45:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:46:04 [end_date_ymd] => 2025-01-11 13:46:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:46:04' and `end` < '2025-01-11 13: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-11 13:46:19] Production.INFO: count ==1726 [2025-01-11 13:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:46:04 - End Time 2025-01-11 13:46:04 [2025-01-11 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224657', 'tblTempUsageDetail_20' ) start [2025-01-11 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224657', 'tblTempUsageDetail_20' ) end [2025-01-11 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224657', 'tblTempVendorCDR_20' ) start [2025-01-11 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224657', 'tblTempVendorCDR_20' ) end [2025-01-11 13:46:19] Production.INFO: ProcessCDR(1,14224657,1,1,2) [2025-01-11 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224657', 'tblTempUsageDetail_20' ) start [2025-01-11 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224657', 'tblTempUsageDetail_20' ) end [2025-01-11 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:46:24] Production.INFO: ==17661== Releasing lock... [2025-01-11 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:46:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:47:05 [end_date_ymd] => 2025-01-11 13:47:05 [RateCDR] => 1 ) [2025-01-11 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:47:05' and `end` < '2025-01-11 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:47:18] Production.INFO: count ==1727 [2025-01-11 13:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:47:05 - End Time 2025-01-11 13:47:05 [2025-01-11 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224662', 'tblTempUsageDetail_20' ) start [2025-01-11 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224662', 'tblTempUsageDetail_20' ) end [2025-01-11 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224662', 'tblTempVendorCDR_20' ) start [2025-01-11 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224662', 'tblTempVendorCDR_20' ) end [2025-01-11 13:47:19] Production.INFO: ProcessCDR(1,14224662,1,1,2) [2025-01-11 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224662', 'tblTempUsageDetail_20' ) start [2025-01-11 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224662', 'tblTempUsageDetail_20' ) end [2025-01-11 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:47:23] Production.INFO: ==17771== Releasing lock... [2025-01-11 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:47:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:48:04 [end_date_ymd] => 2025-01-11 13:48:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:48:04' and `end` < '2025-01-11 13: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-11 13:48:20] Production.INFO: count ==1728 [2025-01-11 13:48:20] Production.ERROR: pbx CDR StartTime 2025-01-11 10:48:04 - End Time 2025-01-11 13:48:04 [2025-01-11 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224667', 'tblTempUsageDetail_20' ) start [2025-01-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224667', 'tblTempUsageDetail_20' ) end [2025-01-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224667', 'tblTempVendorCDR_20' ) start [2025-01-11 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224667', 'tblTempVendorCDR_20' ) end [2025-01-11 13:48:21] Production.INFO: ProcessCDR(1,14224667,1,1,2) [2025-01-11 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224667', 'tblTempUsageDetail_20' ) start [2025-01-11 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224667', 'tblTempUsageDetail_20' ) end [2025-01-11 13:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:48:25] Production.INFO: ==17846== Releasing lock... [2025-01-11 13:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:48:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:49:05 [end_date_ymd] => 2025-01-11 13:49:05 [RateCDR] => 1 ) [2025-01-11 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:49:05' and `end` < '2025-01-11 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:49:18] Production.INFO: count ==1714 [2025-01-11 13:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:49:05 - End Time 2025-01-11 13:49:05 [2025-01-11 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224672', 'tblTempUsageDetail_20' ) start [2025-01-11 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224672', 'tblTempUsageDetail_20' ) end [2025-01-11 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224672', 'tblTempVendorCDR_20' ) start [2025-01-11 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224672', 'tblTempVendorCDR_20' ) end [2025-01-11 13:49:18] Production.INFO: ProcessCDR(1,14224672,1,1,2) [2025-01-11 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224672', 'tblTempUsageDetail_20' ) start [2025-01-11 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224672', 'tblTempUsageDetail_20' ) end [2025-01-11 13:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:49:23] Production.INFO: ==17920== Releasing lock... [2025-01-11 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:49:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:50:05 [end_date_ymd] => 2025-01-11 13:50:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:50:05' and `end` < '2025-01-11 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-11 13:50:18] Production.INFO: count ==1700 [2025-01-11 13:50:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:50:05 - End Time 2025-01-11 13:50:05 [2025-01-11 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224677', 'tblTempUsageDetail_20' ) start [2025-01-11 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224677', 'tblTempUsageDetail_20' ) end [2025-01-11 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224677', 'tblTempVendorCDR_20' ) start [2025-01-11 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224677', 'tblTempVendorCDR_20' ) end [2025-01-11 13:50:18] Production.INFO: ProcessCDR(1,14224677,1,1,2) [2025-01-11 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224677', 'tblTempUsageDetail_20' ) start [2025-01-11 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224677', 'tblTempUsageDetail_20' ) end [2025-01-11 13:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:50:21] Production.INFO: ==17999== Releasing lock... [2025-01-11 13:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:50:21] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:51:05 [end_date_ymd] => 2025-01-11 13:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:51:05' and `end` < '2025-01-11 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-11 13:51:18] Production.INFO: count ==1718 [2025-01-11 13:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:51:05 - End Time 2025-01-11 13:51:05 [2025-01-11 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224683', 'tblTempUsageDetail_20' ) start [2025-01-11 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224683', 'tblTempUsageDetail_20' ) end [2025-01-11 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224683', 'tblTempVendorCDR_20' ) start [2025-01-11 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224683', 'tblTempVendorCDR_20' ) end [2025-01-11 13:51:18] Production.INFO: ProcessCDR(1,14224683,1,1,2) [2025-01-11 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224683', 'tblTempUsageDetail_20' ) start [2025-01-11 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224683', 'tblTempUsageDetail_20' ) end [2025-01-11 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:51:23] Production.INFO: ==18084== Releasing lock... [2025-01-11 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:52:05 [end_date_ymd] => 2025-01-11 13:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:52:05' and `end` < '2025-01-11 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-11 13:52:19] Production.INFO: count ==1721 [2025-01-11 13:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:52:05 - End Time 2025-01-11 13:52:05 [2025-01-11 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224688', 'tblTempUsageDetail_20' ) start [2025-01-11 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224688', 'tblTempUsageDetail_20' ) end [2025-01-11 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224688', 'tblTempVendorCDR_20' ) start [2025-01-11 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224688', 'tblTempVendorCDR_20' ) end [2025-01-11 13:52:19] Production.INFO: ProcessCDR(1,14224688,1,1,2) [2025-01-11 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224688', 'tblTempUsageDetail_20' ) start [2025-01-11 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224688', 'tblTempUsageDetail_20' ) end [2025-01-11 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:52:24] Production.INFO: ==18161== Releasing lock... [2025-01-11 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:52:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:53:05 [end_date_ymd] => 2025-01-11 13:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:53:05' and `end` < '2025-01-11 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-11 13:53:18] Production.INFO: count ==1737 [2025-01-11 13:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:53:05 - End Time 2025-01-11 13:53:05 [2025-01-11 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224693', 'tblTempUsageDetail_20' ) start [2025-01-11 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224693', 'tblTempUsageDetail_20' ) end [2025-01-11 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224693', 'tblTempVendorCDR_20' ) start [2025-01-11 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224693', 'tblTempVendorCDR_20' ) end [2025-01-11 13:53:19] Production.INFO: ProcessCDR(1,14224693,1,1,2) [2025-01-11 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224693', 'tblTempUsageDetail_20' ) start [2025-01-11 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224693', 'tblTempUsageDetail_20' ) end [2025-01-11 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:53:23] Production.INFO: ==18234== Releasing lock... [2025-01-11 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:53:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:54:05 [end_date_ymd] => 2025-01-11 13:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:54:05' and `end` < '2025-01-11 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-11 13:54:19] Production.INFO: count ==1738 [2025-01-11 13:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:54:05 - End Time 2025-01-11 13:54:05 [2025-01-11 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224698', 'tblTempUsageDetail_20' ) start [2025-01-11 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224698', 'tblTempUsageDetail_20' ) end [2025-01-11 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224698', 'tblTempVendorCDR_20' ) start [2025-01-11 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224698', 'tblTempVendorCDR_20' ) end [2025-01-11 13:54:19] Production.INFO: ProcessCDR(1,14224698,1,1,2) [2025-01-11 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224698', 'tblTempUsageDetail_20' ) start [2025-01-11 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224698', 'tblTempUsageDetail_20' ) end [2025-01-11 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:54:22] Production.INFO: ==18307== Releasing lock... [2025-01-11 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:54:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:55:05 [end_date_ymd] => 2025-01-11 13:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:55:05' and `end` < '2025-01-11 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-11 13:55:18] Production.INFO: count ==1744 [2025-01-11 13:55:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:55:05 - End Time 2025-01-11 13:55:05 [2025-01-11 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224703', 'tblTempUsageDetail_20' ) start [2025-01-11 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224703', 'tblTempUsageDetail_20' ) end [2025-01-11 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224703', 'tblTempVendorCDR_20' ) start [2025-01-11 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224703', 'tblTempVendorCDR_20' ) end [2025-01-11 13:55:19] Production.INFO: ProcessCDR(1,14224703,1,1,2) [2025-01-11 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224703', 'tblTempUsageDetail_20' ) start [2025-01-11 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224703', 'tblTempUsageDetail_20' ) end [2025-01-11 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:55:23] Production.INFO: ==18377== Releasing lock... [2025-01-11 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:55:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:56:05 [end_date_ymd] => 2025-01-11 13:56:05 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:56:05' and `end` < '2025-01-11 13: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-11 13:56:18] Production.INFO: count ==1746 [2025-01-11 13:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 10:56:05 - End Time 2025-01-11 13:56:05 [2025-01-11 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224708', 'tblTempUsageDetail_20' ) start [2025-01-11 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224708', 'tblTempUsageDetail_20' ) end [2025-01-11 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224708', 'tblTempVendorCDR_20' ) start [2025-01-11 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224708', 'tblTempVendorCDR_20' ) end [2025-01-11 13:56:18] Production.INFO: ProcessCDR(1,14224708,1,1,2) [2025-01-11 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224708', 'tblTempUsageDetail_20' ) start [2025-01-11 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224708', 'tblTempUsageDetail_20' ) end [2025-01-11 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:56:23] Production.INFO: ==18446== Releasing lock... [2025-01-11 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:56:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:57:04 [end_date_ymd] => 2025-01-11 13:57:04 [RateCDR] => 1 ) [2025-01-11 13: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-11 10:57:04' and `end` < '2025-01-11 13: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-11 13:57:19] Production.INFO: count ==1750 [2025-01-11 13:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:57:04 - End Time 2025-01-11 13:57:04 [2025-01-11 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224713', 'tblTempUsageDetail_20' ) start [2025-01-11 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224713', 'tblTempUsageDetail_20' ) end [2025-01-11 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224713', 'tblTempVendorCDR_20' ) start [2025-01-11 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224713', 'tblTempVendorCDR_20' ) end [2025-01-11 13:57:19] Production.INFO: ProcessCDR(1,14224713,1,1,2) [2025-01-11 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224713', 'tblTempUsageDetail_20' ) start [2025-01-11 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224713', 'tblTempUsageDetail_20' ) end [2025-01-11 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:57:23] Production.INFO: ==18515== Releasing lock... [2025-01-11 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:58:05 [end_date_ymd] => 2025-01-11 13:58:05 [RateCDR] => 1 ) [2025-01-11 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 10:58:05' and `end` < '2025-01-11 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 13:58:18] Production.INFO: count ==1756 [2025-01-11 13:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:58:05 - End Time 2025-01-11 13:58:05 [2025-01-11 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224718', 'tblTempUsageDetail_20' ) start [2025-01-11 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224718', 'tblTempUsageDetail_20' ) end [2025-01-11 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224718', 'tblTempVendorCDR_20' ) start [2025-01-11 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224718', 'tblTempVendorCDR_20' ) end [2025-01-11 13:58:19] Production.INFO: ProcessCDR(1,14224718,1,1,2) [2025-01-11 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224718', 'tblTempUsageDetail_20' ) start [2025-01-11 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224718', 'tblTempUsageDetail_20' ) end [2025-01-11 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:58:23] Production.INFO: ==18588== Releasing lock... [2025-01-11 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:58:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 10:59:05 [end_date_ymd] => 2025-01-11 13:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 10:59:05' and `end` < '2025-01-11 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-11 13:59:19] Production.INFO: count ==1761 [2025-01-11 13:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 10:59:05 - End Time 2025-01-11 13:59:05 [2025-01-11 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224723', 'tblTempUsageDetail_20' ) start [2025-01-11 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224723', 'tblTempUsageDetail_20' ) end [2025-01-11 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224723', 'tblTempVendorCDR_20' ) start [2025-01-11 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224723', 'tblTempVendorCDR_20' ) end [2025-01-11 13:59:20] Production.INFO: ProcessCDR(1,14224723,1,1,2) [2025-01-11 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224723', 'tblTempUsageDetail_20' ) start [2025-01-11 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224723', 'tblTempUsageDetail_20' ) end [2025-01-11 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 13:59:24] Production.INFO: ==18659== Releasing lock... [2025-01-11 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 13:59:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:00:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:00:04 [end_date_ymd] => 2025-01-11 14:00:04 [RateCDR] => 1 ) [2025-01-11 14:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:00:04' and `end` < '2025-01-11 14:00:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:00:18] Production.INFO: count ==1751 [2025-01-11 14:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:00:04 - End Time 2025-01-11 14:00:04 [2025-01-11 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224727', 'tblTempUsageDetail_20' ) start [2025-01-11 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224727', 'tblTempUsageDetail_20' ) end [2025-01-11 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224727', 'tblTempVendorCDR_20' ) start [2025-01-11 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224727', 'tblTempVendorCDR_20' ) end [2025-01-11 14:00:18] Production.INFO: ProcessCDR(1,14224727,1,1,2) [2025-01-11 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224727', 'tblTempUsageDetail_20' ) start [2025-01-11 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224727', 'tblTempUsageDetail_20' ) end [2025-01-11 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:00:23] Production.INFO: ==18733== Releasing lock... [2025-01-11 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:01:05 [end_date_ymd] => 2025-01-11 14:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:01:05' and `end` < '2025-01-11 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-11 14:01:18] Production.INFO: count ==1751 [2025-01-11 14:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:01:05 - End Time 2025-01-11 14:01:05 [2025-01-11 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224734', 'tblTempUsageDetail_20' ) start [2025-01-11 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224734', 'tblTempUsageDetail_20' ) end [2025-01-11 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224734', 'tblTempVendorCDR_20' ) start [2025-01-11 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224734', 'tblTempVendorCDR_20' ) end [2025-01-11 14:01:19] Production.INFO: ProcessCDR(1,14224734,1,1,2) [2025-01-11 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224734', 'tblTempUsageDetail_20' ) start [2025-01-11 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224734', 'tblTempUsageDetail_20' ) end [2025-01-11 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:01:23] Production.INFO: ==18816== Releasing lock... [2025-01-11 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:01:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:02:05 [end_date_ymd] => 2025-01-11 14:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:02:05' and `end` < '2025-01-11 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-11 14:02:18] Production.INFO: count ==1751 [2025-01-11 14:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:02:05 - End Time 2025-01-11 14:02:05 [2025-01-11 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224739', 'tblTempUsageDetail_20' ) start [2025-01-11 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224739', 'tblTempUsageDetail_20' ) end [2025-01-11 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224739', 'tblTempVendorCDR_20' ) start [2025-01-11 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224739', 'tblTempVendorCDR_20' ) end [2025-01-11 14:02:19] Production.INFO: ProcessCDR(1,14224739,1,1,2) [2025-01-11 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224739', 'tblTempUsageDetail_20' ) start [2025-01-11 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224739', 'tblTempUsageDetail_20' ) end [2025-01-11 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:02:23] Production.INFO: ==18886== Releasing lock... [2025-01-11 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:02:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:03:05 [end_date_ymd] => 2025-01-11 14:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:03:05' and `end` < '2025-01-11 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-11 14:03:18] Production.INFO: count ==1757 [2025-01-11 14:03:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:03:05 - End Time 2025-01-11 14:03:05 [2025-01-11 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224744', 'tblTempUsageDetail_20' ) start [2025-01-11 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224744', 'tblTempUsageDetail_20' ) end [2025-01-11 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224744', 'tblTempVendorCDR_20' ) start [2025-01-11 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224744', 'tblTempVendorCDR_20' ) end [2025-01-11 14:03:19] Production.INFO: ProcessCDR(1,14224744,1,1,2) [2025-01-11 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224744', 'tblTempUsageDetail_20' ) start [2025-01-11 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224744', 'tblTempUsageDetail_20' ) end [2025-01-11 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:03:23] Production.INFO: ==18998== Releasing lock... [2025-01-11 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:03:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:04:04 [end_date_ymd] => 2025-01-11 14:04:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:04:04' and `end` < '2025-01-11 14: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-11 14:04:17] Production.INFO: count ==1763 [2025-01-11 14:04:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:04:04 - End Time 2025-01-11 14:04:04 [2025-01-11 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224749', 'tblTempUsageDetail_20' ) start [2025-01-11 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224749', 'tblTempUsageDetail_20' ) end [2025-01-11 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224749', 'tblTempVendorCDR_20' ) start [2025-01-11 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224749', 'tblTempVendorCDR_20' ) end [2025-01-11 14:04:18] Production.INFO: ProcessCDR(1,14224749,1,1,2) [2025-01-11 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224749', 'tblTempUsageDetail_20' ) start [2025-01-11 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224749', 'tblTempUsageDetail_20' ) end [2025-01-11 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:04:22] Production.INFO: ==19074== Releasing lock... [2025-01-11 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:05:05 [end_date_ymd] => 2025-01-11 14:05:05 [RateCDR] => 1 ) [2025-01-11 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:05:05' and `end` < '2025-01-11 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:05:18] Production.INFO: count ==1764 [2025-01-11 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:05:05 - End Time 2025-01-11 14:05:05 [2025-01-11 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224754', 'tblTempUsageDetail_20' ) start [2025-01-11 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224754', 'tblTempUsageDetail_20' ) end [2025-01-11 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224754', 'tblTempVendorCDR_20' ) start [2025-01-11 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224754', 'tblTempVendorCDR_20' ) end [2025-01-11 14:05:18] Production.INFO: ProcessCDR(1,14224754,1,1,2) [2025-01-11 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224754', 'tblTempUsageDetail_20' ) start [2025-01-11 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224754', 'tblTempUsageDetail_20' ) end [2025-01-11 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:05:23] Production.INFO: ==19149== Releasing lock... [2025-01-11 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:06:05 [end_date_ymd] => 2025-01-11 14:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:06:05' and `end` < '2025-01-11 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-11 14:06:19] Production.INFO: count ==1762 [2025-01-11 14:06:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:06:05 - End Time 2025-01-11 14:06:05 [2025-01-11 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224759', 'tblTempUsageDetail_20' ) start [2025-01-11 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224759', 'tblTempUsageDetail_20' ) end [2025-01-11 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224759', 'tblTempVendorCDR_20' ) start [2025-01-11 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224759', 'tblTempVendorCDR_20' ) end [2025-01-11 14:06:20] Production.INFO: ProcessCDR(1,14224759,1,1,2) [2025-01-11 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224759', 'tblTempUsageDetail_20' ) start [2025-01-11 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224759', 'tblTempUsageDetail_20' ) end [2025-01-11 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:06:24] Production.INFO: ==19227== Releasing lock... [2025-01-11 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:06:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:07:05 [end_date_ymd] => 2025-01-11 14:07:05 [RateCDR] => 1 ) [2025-01-11 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:07:05' and `end` < '2025-01-11 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:07:19] Production.INFO: count ==1763 [2025-01-11 14:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:07:05 - End Time 2025-01-11 14:07:05 [2025-01-11 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224764', 'tblTempUsageDetail_20' ) start [2025-01-11 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224764', 'tblTempUsageDetail_20' ) end [2025-01-11 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224764', 'tblTempVendorCDR_20' ) start [2025-01-11 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224764', 'tblTempVendorCDR_20' ) end [2025-01-11 14:07:19] Production.INFO: ProcessCDR(1,14224764,1,1,2) [2025-01-11 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224764', 'tblTempUsageDetail_20' ) start [2025-01-11 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224764', 'tblTempUsageDetail_20' ) end [2025-01-11 14:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:07:24] Production.INFO: ==19297== Releasing lock... [2025-01-11 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:07:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:08:05 [end_date_ymd] => 2025-01-11 14:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:08:05' and `end` < '2025-01-11 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-11 14:08:18] Production.INFO: count ==1759 [2025-01-11 14:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:08:05 - End Time 2025-01-11 14:08:05 [2025-01-11 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224769', 'tblTempUsageDetail_20' ) start [2025-01-11 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224769', 'tblTempUsageDetail_20' ) end [2025-01-11 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224769', 'tblTempVendorCDR_20' ) start [2025-01-11 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224769', 'tblTempVendorCDR_20' ) end [2025-01-11 14:08:19] Production.INFO: ProcessCDR(1,14224769,1,1,2) [2025-01-11 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224769', 'tblTempUsageDetail_20' ) start [2025-01-11 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224769', 'tblTempUsageDetail_20' ) end [2025-01-11 14:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:08:23] Production.INFO: ==19369== Releasing lock... [2025-01-11 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:08:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:09:05 [end_date_ymd] => 2025-01-11 14:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:09:05' and `end` < '2025-01-11 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-11 14:09:19] Production.INFO: count ==1760 [2025-01-11 14:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:09:05 - End Time 2025-01-11 14:09:05 [2025-01-11 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224774', 'tblTempUsageDetail_20' ) start [2025-01-11 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224774', 'tblTempUsageDetail_20' ) end [2025-01-11 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224774', 'tblTempVendorCDR_20' ) start [2025-01-11 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224774', 'tblTempVendorCDR_20' ) end [2025-01-11 14:09:19] Production.INFO: ProcessCDR(1,14224774,1,1,2) [2025-01-11 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224774', 'tblTempUsageDetail_20' ) start [2025-01-11 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224774', 'tblTempUsageDetail_20' ) end [2025-01-11 14:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:09:24] Production.INFO: ==19447== Releasing lock... [2025-01-11 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:09:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:10:05 [end_date_ymd] => 2025-01-11 14:10:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:10:05' and `end` < '2025-01-11 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-11 14:10:19] Production.INFO: count ==1734 [2025-01-11 14:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:10:05 - End Time 2025-01-11 14:10:05 [2025-01-11 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224779', 'tblTempUsageDetail_20' ) start [2025-01-11 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224779', 'tblTempUsageDetail_20' ) end [2025-01-11 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224779', 'tblTempVendorCDR_20' ) start [2025-01-11 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224779', 'tblTempVendorCDR_20' ) end [2025-01-11 14:10:19] Production.INFO: ProcessCDR(1,14224779,1,1,2) [2025-01-11 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224779', 'tblTempUsageDetail_20' ) start [2025-01-11 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224779', 'tblTempUsageDetail_20' ) end [2025-01-11 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:10:24] Production.INFO: ==19523== Releasing lock... [2025-01-11 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:10:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:11:05 [end_date_ymd] => 2025-01-11 14:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:11:05' and `end` < '2025-01-11 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-11 14:11:18] Production.INFO: count ==1718 [2025-01-11 14:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:11:05 - End Time 2025-01-11 14:11:05 [2025-01-11 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224785', 'tblTempUsageDetail_20' ) start [2025-01-11 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224785', 'tblTempUsageDetail_20' ) end [2025-01-11 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224785', 'tblTempVendorCDR_20' ) start [2025-01-11 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224785', 'tblTempVendorCDR_20' ) end [2025-01-11 14:11:19] Production.INFO: ProcessCDR(1,14224785,1,1,2) [2025-01-11 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224785', 'tblTempUsageDetail_20' ) start [2025-01-11 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224785', 'tblTempUsageDetail_20' ) end [2025-01-11 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:11:23] Production.INFO: ==19597== Releasing lock... [2025-01-11 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:11:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:12:05 [end_date_ymd] => 2025-01-11 14:12:05 [RateCDR] => 1 ) [2025-01-11 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:12:05' and `end` < '2025-01-11 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:12:20] Production.INFO: count ==1698 [2025-01-11 14:12:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:12:05 - End Time 2025-01-11 14:12:05 [2025-01-11 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224790', 'tblTempUsageDetail_20' ) start [2025-01-11 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224790', 'tblTempUsageDetail_20' ) end [2025-01-11 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224790', 'tblTempVendorCDR_20' ) start [2025-01-11 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224790', 'tblTempVendorCDR_20' ) end [2025-01-11 14:12:20] Production.INFO: ProcessCDR(1,14224790,1,1,2) [2025-01-11 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224790', 'tblTempUsageDetail_20' ) start [2025-01-11 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224790', 'tblTempUsageDetail_20' ) end [2025-01-11 14:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:12:25] Production.INFO: ==19667== Releasing lock... [2025-01-11 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:12:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:13:04 [end_date_ymd] => 2025-01-11 14:13:04 [RateCDR] => 1 ) [2025-01-11 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-11 11:13:04' and `end` < '2025-01-11 14: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-11 14:13:18] Production.INFO: count ==1706 [2025-01-11 14:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:13:04 - End Time 2025-01-11 14:13:04 [2025-01-11 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224795', 'tblTempUsageDetail_20' ) start [2025-01-11 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224795', 'tblTempUsageDetail_20' ) end [2025-01-11 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224795', 'tblTempVendorCDR_20' ) start [2025-01-11 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224795', 'tblTempVendorCDR_20' ) end [2025-01-11 14:13:18] Production.INFO: ProcessCDR(1,14224795,1,1,2) [2025-01-11 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224795', 'tblTempUsageDetail_20' ) start [2025-01-11 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224795', 'tblTempUsageDetail_20' ) end [2025-01-11 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:13:23] Production.INFO: ==19739== Releasing lock... [2025-01-11 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:14:05 [end_date_ymd] => 2025-01-11 14:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:14:05' and `end` < '2025-01-11 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-11 14:14:18] Production.INFO: count ==1689 [2025-01-11 14:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:14:05 - End Time 2025-01-11 14:14:05 [2025-01-11 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224800', 'tblTempUsageDetail_20' ) start [2025-01-11 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224800', 'tblTempUsageDetail_20' ) end [2025-01-11 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224800', 'tblTempVendorCDR_20' ) start [2025-01-11 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224800', 'tblTempVendorCDR_20' ) end [2025-01-11 14:14:19] Production.INFO: ProcessCDR(1,14224800,1,1,2) [2025-01-11 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224800', 'tblTempUsageDetail_20' ) start [2025-01-11 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224800', 'tblTempUsageDetail_20' ) end [2025-01-11 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:14:23] Production.INFO: ==19810== Releasing lock... [2025-01-11 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:14:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:15:05 [end_date_ymd] => 2025-01-11 14:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:15:05' and `end` < '2025-01-11 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-11 14:15:18] Production.INFO: count ==1735 [2025-01-11 14:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:15:05 - End Time 2025-01-11 14:15:05 [2025-01-11 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224805', 'tblTempUsageDetail_20' ) start [2025-01-11 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224805', 'tblTempUsageDetail_20' ) end [2025-01-11 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224805', 'tblTempVendorCDR_20' ) start [2025-01-11 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224805', 'tblTempVendorCDR_20' ) end [2025-01-11 14:15:19] Production.INFO: ProcessCDR(1,14224805,1,1,2) [2025-01-11 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224805', 'tblTempUsageDetail_20' ) start [2025-01-11 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224805', 'tblTempUsageDetail_20' ) end [2025-01-11 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:15:23] Production.INFO: ==19880== Releasing lock... [2025-01-11 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:16:05 [end_date_ymd] => 2025-01-11 14:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:16:05' and `end` < '2025-01-11 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-11 14:16:18] Production.INFO: count ==1735 [2025-01-11 14:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:16:05 - End Time 2025-01-11 14:16:05 [2025-01-11 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224810', 'tblTempUsageDetail_20' ) start [2025-01-11 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224810', 'tblTempUsageDetail_20' ) end [2025-01-11 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224810', 'tblTempVendorCDR_20' ) start [2025-01-11 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224810', 'tblTempVendorCDR_20' ) end [2025-01-11 14:16:19] Production.INFO: ProcessCDR(1,14224810,1,1,2) [2025-01-11 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224810', 'tblTempUsageDetail_20' ) start [2025-01-11 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224810', 'tblTempUsageDetail_20' ) end [2025-01-11 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:16:22] Production.INFO: ==19950== Releasing lock... [2025-01-11 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:16:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:17:05 [end_date_ymd] => 2025-01-11 14:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:17:05' and `end` < '2025-01-11 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-11 14:17:19] Production.INFO: count ==1728 [2025-01-11 14:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:17:05 - End Time 2025-01-11 14:17:05 [2025-01-11 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224815', 'tblTempUsageDetail_20' ) start [2025-01-11 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224815', 'tblTempUsageDetail_20' ) end [2025-01-11 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224815', 'tblTempVendorCDR_20' ) start [2025-01-11 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224815', 'tblTempVendorCDR_20' ) end [2025-01-11 14:17:19] Production.INFO: ProcessCDR(1,14224815,1,1,2) [2025-01-11 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224815', 'tblTempUsageDetail_20' ) start [2025-01-11 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224815', 'tblTempUsageDetail_20' ) end [2025-01-11 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:17:23] Production.INFO: ==20022== Releasing lock... [2025-01-11 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:17:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:18:04 [end_date_ymd] => 2025-01-11 14:18:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:18:04' and `end` < '2025-01-11 14: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-11 14:18:19] Production.INFO: count ==1733 [2025-01-11 14:18:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:18:04 - End Time 2025-01-11 14:18:04 [2025-01-11 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224820', 'tblTempUsageDetail_20' ) start [2025-01-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224820', 'tblTempUsageDetail_20' ) end [2025-01-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224820', 'tblTempVendorCDR_20' ) start [2025-01-11 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224820', 'tblTempVendorCDR_20' ) end [2025-01-11 14:18:20] Production.INFO: ProcessCDR(1,14224820,1,1,2) [2025-01-11 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224820', 'tblTempUsageDetail_20' ) start [2025-01-11 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224820', 'tblTempUsageDetail_20' ) end [2025-01-11 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:18:24] Production.INFO: ==20136== Releasing lock... [2025-01-11 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:18:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:19:05 [end_date_ymd] => 2025-01-11 14:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:19:05' and `end` < '2025-01-11 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-11 14:19:19] Production.INFO: count ==1721 [2025-01-11 14:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:19:05 - End Time 2025-01-11 14:19:05 [2025-01-11 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224825', 'tblTempUsageDetail_20' ) start [2025-01-11 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224825', 'tblTempUsageDetail_20' ) end [2025-01-11 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224825', 'tblTempVendorCDR_20' ) start [2025-01-11 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224825', 'tblTempVendorCDR_20' ) end [2025-01-11 14:19:19] Production.INFO: ProcessCDR(1,14224825,1,1,2) [2025-01-11 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224825', 'tblTempUsageDetail_20' ) start [2025-01-11 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224825', 'tblTempUsageDetail_20' ) end [2025-01-11 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:19:23] Production.INFO: ==20216== Releasing lock... [2025-01-11 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:19:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:20:05 [end_date_ymd] => 2025-01-11 14:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:20:05' and `end` < '2025-01-11 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-11 14:20:18] Production.INFO: count ==1722 [2025-01-11 14:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:20:05 - End Time 2025-01-11 14:20:05 [2025-01-11 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224831', 'tblTempUsageDetail_20' ) start [2025-01-11 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224831', 'tblTempUsageDetail_20' ) end [2025-01-11 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224831', 'tblTempVendorCDR_20' ) start [2025-01-11 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224831', 'tblTempVendorCDR_20' ) end [2025-01-11 14:20:19] Production.INFO: ProcessCDR(1,14224831,1,1,2) [2025-01-11 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224831', 'tblTempUsageDetail_20' ) start [2025-01-11 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224831', 'tblTempUsageDetail_20' ) end [2025-01-11 14:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:20:22] Production.INFO: ==20293== Releasing lock... [2025-01-11 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:20:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:21:04 [end_date_ymd] => 2025-01-11 14:21:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:21:04' and `end` < '2025-01-11 14: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-11 14:21:18] Production.INFO: count ==1713 [2025-01-11 14:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:21:04 - End Time 2025-01-11 14:21:04 [2025-01-11 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224836', 'tblTempUsageDetail_20' ) start [2025-01-11 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224836', 'tblTempUsageDetail_20' ) end [2025-01-11 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224836', 'tblTempVendorCDR_20' ) start [2025-01-11 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224836', 'tblTempVendorCDR_20' ) end [2025-01-11 14:21:19] Production.INFO: ProcessCDR(1,14224836,1,1,2) [2025-01-11 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224836', 'tblTempUsageDetail_20' ) start [2025-01-11 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224836', 'tblTempUsageDetail_20' ) end [2025-01-11 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:21:23] Production.INFO: ==20365== Releasing lock... [2025-01-11 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:21:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:22:05 [end_date_ymd] => 2025-01-11 14:22:05 [RateCDR] => 1 ) [2025-01-11 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:22:05' and `end` < '2025-01-11 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:22:19] Production.INFO: count ==1708 [2025-01-11 14:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:22:05 - End Time 2025-01-11 14:22:05 [2025-01-11 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224841', 'tblTempUsageDetail_20' ) start [2025-01-11 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224841', 'tblTempUsageDetail_20' ) end [2025-01-11 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224841', 'tblTempVendorCDR_20' ) start [2025-01-11 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224841', 'tblTempVendorCDR_20' ) end [2025-01-11 14:22:19] Production.INFO: ProcessCDR(1,14224841,1,1,2) [2025-01-11 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224841', 'tblTempUsageDetail_20' ) start [2025-01-11 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224841', 'tblTempUsageDetail_20' ) end [2025-01-11 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:22:24] Production.INFO: ==20437== Releasing lock... [2025-01-11 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:22:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:23:04 [end_date_ymd] => 2025-01-11 14:23:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:23:04' and `end` < '2025-01-11 14: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-11 14:23:18] Production.INFO: count ==1705 [2025-01-11 14:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:23:04 - End Time 2025-01-11 14:23:04 [2025-01-11 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224846', 'tblTempUsageDetail_20' ) start [2025-01-11 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224846', 'tblTempUsageDetail_20' ) end [2025-01-11 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224846', 'tblTempVendorCDR_20' ) start [2025-01-11 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224846', 'tblTempVendorCDR_20' ) end [2025-01-11 14:23:18] Production.INFO: ProcessCDR(1,14224846,1,1,2) [2025-01-11 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224846', 'tblTempUsageDetail_20' ) start [2025-01-11 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224846', 'tblTempUsageDetail_20' ) end [2025-01-11 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:23:21] Production.INFO: ==20508== Releasing lock... [2025-01-11 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:23:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:24:05 [end_date_ymd] => 2025-01-11 14:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:24:05' and `end` < '2025-01-11 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-11 14:24:20] Production.INFO: count ==1704 [2025-01-11 14:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:24:05 - End Time 2025-01-11 14:24:05 [2025-01-11 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224851', 'tblTempUsageDetail_20' ) start [2025-01-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224851', 'tblTempUsageDetail_20' ) end [2025-01-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224851', 'tblTempVendorCDR_20' ) start [2025-01-11 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224851', 'tblTempVendorCDR_20' ) end [2025-01-11 14:24:20] Production.INFO: ProcessCDR(1,14224851,1,1,2) [2025-01-11 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224851', 'tblTempUsageDetail_20' ) start [2025-01-11 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224851', 'tblTempUsageDetail_20' ) end [2025-01-11 14:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:24:25] Production.INFO: ==20590== Releasing lock... [2025-01-11 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:24:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:25:05 [end_date_ymd] => 2025-01-11 14:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:25:05' and `end` < '2025-01-11 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-11 14:25:18] Production.INFO: count ==1714 [2025-01-11 14:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:25:05 - End Time 2025-01-11 14:25:05 [2025-01-11 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224856', 'tblTempUsageDetail_20' ) start [2025-01-11 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224856', 'tblTempUsageDetail_20' ) end [2025-01-11 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224856', 'tblTempVendorCDR_20' ) start [2025-01-11 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224856', 'tblTempVendorCDR_20' ) end [2025-01-11 14:25:18] Production.INFO: ProcessCDR(1,14224856,1,1,2) [2025-01-11 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224856', 'tblTempUsageDetail_20' ) start [2025-01-11 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224856', 'tblTempUsageDetail_20' ) end [2025-01-11 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:25:22] Production.INFO: ==20662== Releasing lock... [2025-01-11 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:26:05 [end_date_ymd] => 2025-01-11 14:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:26:05' and `end` < '2025-01-11 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-11 14:26:18] Production.INFO: count ==1728 [2025-01-11 14:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:26:05 - End Time 2025-01-11 14:26:05 [2025-01-11 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224861', 'tblTempUsageDetail_20' ) start [2025-01-11 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224861', 'tblTempUsageDetail_20' ) end [2025-01-11 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224861', 'tblTempVendorCDR_20' ) start [2025-01-11 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224861', 'tblTempVendorCDR_20' ) end [2025-01-11 14:26:19] Production.INFO: ProcessCDR(1,14224861,1,1,2) [2025-01-11 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224861', 'tblTempUsageDetail_20' ) start [2025-01-11 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224861', 'tblTempUsageDetail_20' ) end [2025-01-11 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:26:22] Production.INFO: ==20734== Releasing lock... [2025-01-11 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:26:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:27:04 [end_date_ymd] => 2025-01-11 14:27:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:27:04' and `end` < '2025-01-11 14: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-11 14:27:18] Production.INFO: count ==1714 [2025-01-11 14:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:27:04 - End Time 2025-01-11 14:27:04 [2025-01-11 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224866', 'tblTempUsageDetail_20' ) start [2025-01-11 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224866', 'tblTempUsageDetail_20' ) end [2025-01-11 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224866', 'tblTempVendorCDR_20' ) start [2025-01-11 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224866', 'tblTempVendorCDR_20' ) end [2025-01-11 14:27:18] Production.INFO: ProcessCDR(1,14224866,1,1,2) [2025-01-11 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224866', 'tblTempUsageDetail_20' ) start [2025-01-11 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224866', 'tblTempUsageDetail_20' ) end [2025-01-11 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:27:23] Production.INFO: ==20803== Releasing lock... [2025-01-11 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:27:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:28:05 [end_date_ymd] => 2025-01-11 14:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:28:05' and `end` < '2025-01-11 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-11 14:28:19] Production.INFO: count ==1716 [2025-01-11 14:28:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:28:05 - End Time 2025-01-11 14:28:05 [2025-01-11 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224871', 'tblTempUsageDetail_20' ) start [2025-01-11 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224871', 'tblTempUsageDetail_20' ) end [2025-01-11 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224871', 'tblTempVendorCDR_20' ) start [2025-01-11 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224871', 'tblTempVendorCDR_20' ) end [2025-01-11 14:28:20] Production.INFO: ProcessCDR(1,14224871,1,1,2) [2025-01-11 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224871', 'tblTempUsageDetail_20' ) start [2025-01-11 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224871', 'tblTempUsageDetail_20' ) end [2025-01-11 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:28:23] Production.INFO: ==20873== Releasing lock... [2025-01-11 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:28:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:29:05 [end_date_ymd] => 2025-01-11 14:29:05 [RateCDR] => 1 ) [2025-01-11 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:29:05' and `end` < '2025-01-11 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:29:19] Production.INFO: count ==1715 [2025-01-11 14:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:29:05 - End Time 2025-01-11 14:29:05 [2025-01-11 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224876', 'tblTempUsageDetail_20' ) start [2025-01-11 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224876', 'tblTempUsageDetail_20' ) end [2025-01-11 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224876', 'tblTempVendorCDR_20' ) start [2025-01-11 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224876', 'tblTempVendorCDR_20' ) end [2025-01-11 14:29:19] Production.INFO: ProcessCDR(1,14224876,1,1,2) [2025-01-11 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224876', 'tblTempUsageDetail_20' ) start [2025-01-11 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224876', 'tblTempUsageDetail_20' ) end [2025-01-11 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:29:24] Production.INFO: ==20943== Releasing lock... [2025-01-11 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:29:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:30:05 [end_date_ymd] => 2025-01-11 14:30:05 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:30:05' and `end` < '2025-01-11 14: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-11 14:30:19] Production.INFO: count ==1718 [2025-01-11 14:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:30:05 - End Time 2025-01-11 14:30:05 [2025-01-11 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224882', 'tblTempUsageDetail_20' ) start [2025-01-11 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224882', 'tblTempUsageDetail_20' ) end [2025-01-11 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224882', 'tblTempVendorCDR_20' ) start [2025-01-11 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224882', 'tblTempVendorCDR_20' ) end [2025-01-11 14:30:19] Production.INFO: ProcessCDR(1,14224882,1,1,2) [2025-01-11 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224882', 'tblTempUsageDetail_20' ) start [2025-01-11 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224882', 'tblTempUsageDetail_20' ) end [2025-01-11 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:30:24] Production.INFO: ==21015== Releasing lock... [2025-01-11 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:30:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:31:05 [end_date_ymd] => 2025-01-11 14:31:05 [RateCDR] => 1 ) [2025-01-11 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:31:05' and `end` < '2025-01-11 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:31:21] Production.INFO: count ==1724 [2025-01-11 14:31:22] Production.ERROR: pbx CDR StartTime 2025-01-11 11:31:05 - End Time 2025-01-11 14:31:05 [2025-01-11 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224887', 'tblTempUsageDetail_20' ) start [2025-01-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224887', 'tblTempUsageDetail_20' ) end [2025-01-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224887', 'tblTempVendorCDR_20' ) start [2025-01-11 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224887', 'tblTempVendorCDR_20' ) end [2025-01-11 14:31:22] Production.INFO: ProcessCDR(1,14224887,1,1,2) [2025-01-11 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224887', 'tblTempUsageDetail_20' ) start [2025-01-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224887', 'tblTempUsageDetail_20' ) end [2025-01-11 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:31:26] Production.INFO: ==21088== Releasing lock... [2025-01-11 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:31:26] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:32:04 [end_date_ymd] => 2025-01-11 14:32:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:32:04' and `end` < '2025-01-11 14: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-11 14:32:23] Production.INFO: count ==1724 [2025-01-11 14:32:24] Production.ERROR: pbx CDR StartTime 2025-01-11 11:32:04 - End Time 2025-01-11 14:32:04 [2025-01-11 14:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224892', 'tblTempUsageDetail_20' ) start [2025-01-11 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224892', 'tblTempUsageDetail_20' ) end [2025-01-11 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224892', 'tblTempVendorCDR_20' ) start [2025-01-11 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224892', 'tblTempVendorCDR_20' ) end [2025-01-11 14:32:24] Production.INFO: ProcessCDR(1,14224892,1,1,2) [2025-01-11 14:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224892', 'tblTempUsageDetail_20' ) start [2025-01-11 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224892', 'tblTempUsageDetail_20' ) end [2025-01-11 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:32:28] Production.INFO: ==21158== Releasing lock... [2025-01-11 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:32:28] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:33:05 [end_date_ymd] => 2025-01-11 14:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:33:05' and `end` < '2025-01-11 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-11 14:33:19] Production.INFO: count ==1720 [2025-01-11 14:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:33:05 - End Time 2025-01-11 14:33:05 [2025-01-11 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224897', 'tblTempUsageDetail_20' ) start [2025-01-11 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224897', 'tblTempUsageDetail_20' ) end [2025-01-11 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224897', 'tblTempVendorCDR_20' ) start [2025-01-11 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224897', 'tblTempVendorCDR_20' ) end [2025-01-11 14:33:19] Production.INFO: ProcessCDR(1,14224897,1,1,2) [2025-01-11 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224897', 'tblTempUsageDetail_20' ) start [2025-01-11 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224897', 'tblTempUsageDetail_20' ) end [2025-01-11 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:33:22] Production.INFO: ==21234== Releasing lock... [2025-01-11 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:34:04 [end_date_ymd] => 2025-01-11 14:34:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:34:04' and `end` < '2025-01-11 14: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-11 14:34:18] Production.INFO: count ==1720 [2025-01-11 14:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:34:04 - End Time 2025-01-11 14:34:04 [2025-01-11 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224902', 'tblTempUsageDetail_20' ) start [2025-01-11 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224902', 'tblTempUsageDetail_20' ) end [2025-01-11 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224902', 'tblTempVendorCDR_20' ) start [2025-01-11 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224902', 'tblTempVendorCDR_20' ) end [2025-01-11 14:34:18] Production.INFO: ProcessCDR(1,14224902,1,1,2) [2025-01-11 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224902', 'tblTempUsageDetail_20' ) start [2025-01-11 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224902', 'tblTempUsageDetail_20' ) end [2025-01-11 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:34:23] Production.INFO: ==21360== Releasing lock... [2025-01-11 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:34:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:35:05 [end_date_ymd] => 2025-01-11 14:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:35:05' and `end` < '2025-01-11 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-11 14:35:18] Production.INFO: count ==1712 [2025-01-11 14:35:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:35:05 - End Time 2025-01-11 14:35:05 [2025-01-11 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224907', 'tblTempUsageDetail_20' ) start [2025-01-11 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224907', 'tblTempUsageDetail_20' ) end [2025-01-11 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224907', 'tblTempVendorCDR_20' ) start [2025-01-11 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224907', 'tblTempVendorCDR_20' ) end [2025-01-11 14:35:19] Production.INFO: ProcessCDR(1,14224907,1,1,2) [2025-01-11 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224907', 'tblTempUsageDetail_20' ) start [2025-01-11 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224907', 'tblTempUsageDetail_20' ) end [2025-01-11 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:35:22] Production.INFO: ==21448== Releasing lock... [2025-01-11 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:35:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:36:05 [end_date_ymd] => 2025-01-11 14:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:36:05' and `end` < '2025-01-11 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-11 14:36:18] Production.INFO: count ==1712 [2025-01-11 14:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:36:05 - End Time 2025-01-11 14:36:05 [2025-01-11 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224912', 'tblTempUsageDetail_20' ) start [2025-01-11 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224912', 'tblTempUsageDetail_20' ) end [2025-01-11 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224912', 'tblTempVendorCDR_20' ) start [2025-01-11 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224912', 'tblTempVendorCDR_20' ) end [2025-01-11 14:36:19] Production.INFO: ProcessCDR(1,14224912,1,1,2) [2025-01-11 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224912', 'tblTempUsageDetail_20' ) start [2025-01-11 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224912', 'tblTempUsageDetail_20' ) end [2025-01-11 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:36:23] Production.INFO: ==21527== Releasing lock... [2025-01-11 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:36:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:37:05 [end_date_ymd] => 2025-01-11 14:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:37:05' and `end` < '2025-01-11 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-11 14:37:18] Production.INFO: count ==1710 [2025-01-11 14:37:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:37:05 - End Time 2025-01-11 14:37:05 [2025-01-11 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224917', 'tblTempUsageDetail_20' ) start [2025-01-11 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224917', 'tblTempUsageDetail_20' ) end [2025-01-11 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224917', 'tblTempVendorCDR_20' ) start [2025-01-11 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224917', 'tblTempVendorCDR_20' ) end [2025-01-11 14:37:18] Production.INFO: ProcessCDR(1,14224917,1,1,2) [2025-01-11 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224917', 'tblTempUsageDetail_20' ) start [2025-01-11 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224917', 'tblTempUsageDetail_20' ) end [2025-01-11 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:37:23] Production.INFO: ==21611== Releasing lock... [2025-01-11 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:37:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:38:05 [end_date_ymd] => 2025-01-11 14:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:38:05' and `end` < '2025-01-11 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-11 14:38:18] Production.INFO: count ==1709 [2025-01-11 14:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:38:05 - End Time 2025-01-11 14:38:05 [2025-01-11 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224922', 'tblTempUsageDetail_20' ) start [2025-01-11 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224922', 'tblTempUsageDetail_20' ) end [2025-01-11 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224922', 'tblTempVendorCDR_20' ) start [2025-01-11 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224922', 'tblTempVendorCDR_20' ) end [2025-01-11 14:38:19] Production.INFO: ProcessCDR(1,14224922,1,1,2) [2025-01-11 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224922', 'tblTempUsageDetail_20' ) start [2025-01-11 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224922', 'tblTempUsageDetail_20' ) end [2025-01-11 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:38:23] Production.INFO: ==21694== Releasing lock... [2025-01-11 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:38:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:39:06 [end_date_ymd] => 2025-01-11 14:39:06 [RateCDR] => 1 ) [2025-01-11 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:39:06' and `end` < '2025-01-11 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:39:19] Production.INFO: count ==1715 [2025-01-11 14:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:39:06 - End Time 2025-01-11 14:39:06 [2025-01-11 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224927', 'tblTempUsageDetail_20' ) start [2025-01-11 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224927', 'tblTempUsageDetail_20' ) end [2025-01-11 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224927', 'tblTempVendorCDR_20' ) start [2025-01-11 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224927', 'tblTempVendorCDR_20' ) end [2025-01-11 14:39:19] Production.INFO: ProcessCDR(1,14224927,1,1,2) [2025-01-11 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224927', 'tblTempUsageDetail_20' ) start [2025-01-11 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224927', 'tblTempUsageDetail_20' ) end [2025-01-11 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:39:24] Production.INFO: ==21774== Releasing lock... [2025-01-11 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:39:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:40:06 [end_date_ymd] => 2025-01-11 14:40:06 [RateCDR] => 1 ) [2025-01-11 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:40:06' and `end` < '2025-01-11 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:40:19] Production.INFO: count ==1714 [2025-01-11 14:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:40:06 - End Time 2025-01-11 14:40:06 [2025-01-11 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224933', 'tblTempUsageDetail_20' ) start [2025-01-11 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224933', 'tblTempUsageDetail_20' ) end [2025-01-11 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224933', 'tblTempVendorCDR_20' ) start [2025-01-11 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224933', 'tblTempVendorCDR_20' ) end [2025-01-11 14:40:20] Production.INFO: ProcessCDR(1,14224933,1,1,2) [2025-01-11 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224933', 'tblTempUsageDetail_20' ) start [2025-01-11 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224933', 'tblTempUsageDetail_20' ) end [2025-01-11 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:40:24] Production.INFO: ==21855== Releasing lock... [2025-01-11 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:40:24] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:41:05 [end_date_ymd] => 2025-01-11 14:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:41:05' and `end` < '2025-01-11 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-11 14:41:18] Production.INFO: count ==1719 [2025-01-11 14:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:41:05 - End Time 2025-01-11 14:41:05 [2025-01-11 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224938', 'tblTempUsageDetail_20' ) start [2025-01-11 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224938', 'tblTempUsageDetail_20' ) end [2025-01-11 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224938', 'tblTempVendorCDR_20' ) start [2025-01-11 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224938', 'tblTempVendorCDR_20' ) end [2025-01-11 14:41:19] Production.INFO: ProcessCDR(1,14224938,1,1,2) [2025-01-11 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224938', 'tblTempUsageDetail_20' ) start [2025-01-11 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224938', 'tblTempUsageDetail_20' ) end [2025-01-11 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:41:23] Production.INFO: ==21934== Releasing lock... [2025-01-11 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:41:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:42:05 [end_date_ymd] => 2025-01-11 14:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:42:05' and `end` < '2025-01-11 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-11 14:42:19] Production.INFO: count ==1713 [2025-01-11 14:42:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:42:05 - End Time 2025-01-11 14:42:05 [2025-01-11 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224943', 'tblTempUsageDetail_20' ) start [2025-01-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224943', 'tblTempUsageDetail_20' ) end [2025-01-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224943', 'tblTempVendorCDR_20' ) start [2025-01-11 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224943', 'tblTempVendorCDR_20' ) end [2025-01-11 14:42:20] Production.INFO: ProcessCDR(1,14224943,1,1,2) [2025-01-11 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224943', 'tblTempUsageDetail_20' ) start [2025-01-11 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224943', 'tblTempUsageDetail_20' ) end [2025-01-11 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:42:23] Production.INFO: ==22012== Releasing lock... [2025-01-11 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:43:04 [end_date_ymd] => 2025-01-11 14:43:04 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:43:04' and `end` < '2025-01-11 14: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-11 14:43:17] Production.INFO: count ==1718 [2025-01-11 14:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:43:04 - End Time 2025-01-11 14:43:04 [2025-01-11 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224948', 'tblTempUsageDetail_20' ) start [2025-01-11 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224948', 'tblTempUsageDetail_20' ) end [2025-01-11 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224948', 'tblTempVendorCDR_20' ) start [2025-01-11 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224948', 'tblTempVendorCDR_20' ) end [2025-01-11 14:43:18] Production.INFO: ProcessCDR(1,14224948,1,1,2) [2025-01-11 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224948', 'tblTempUsageDetail_20' ) start [2025-01-11 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224948', 'tblTempUsageDetail_20' ) end [2025-01-11 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:43:22] Production.INFO: ==22091== Releasing lock... [2025-01-11 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:43:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:44:05 [end_date_ymd] => 2025-01-11 14:44:05 [RateCDR] => 1 ) [2025-01-11 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:44:05' and `end` < '2025-01-11 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:44:19] Production.INFO: count ==1718 [2025-01-11 14:44:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:44:05 - End Time 2025-01-11 14:44:05 [2025-01-11 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224953', 'tblTempUsageDetail_20' ) start [2025-01-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224953', 'tblTempUsageDetail_20' ) end [2025-01-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224953', 'tblTempVendorCDR_20' ) start [2025-01-11 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224953', 'tblTempVendorCDR_20' ) end [2025-01-11 14:44:20] Production.INFO: ProcessCDR(1,14224953,1,1,2) [2025-01-11 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224953', 'tblTempUsageDetail_20' ) start [2025-01-11 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224953', 'tblTempUsageDetail_20' ) end [2025-01-11 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:44:23] Production.INFO: ==22168== Releasing lock... [2025-01-11 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:45:05 [end_date_ymd] => 2025-01-11 14:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:45:05' and `end` < '2025-01-11 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-11 14:45:18] Production.INFO: count ==1718 [2025-01-11 14:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:45:05 - End Time 2025-01-11 14:45:05 [2025-01-11 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224958', 'tblTempUsageDetail_20' ) start [2025-01-11 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224958', 'tblTempUsageDetail_20' ) end [2025-01-11 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224958', 'tblTempVendorCDR_20' ) start [2025-01-11 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224958', 'tblTempVendorCDR_20' ) end [2025-01-11 14:45:18] Production.INFO: ProcessCDR(1,14224958,1,1,2) [2025-01-11 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224958', 'tblTempUsageDetail_20' ) start [2025-01-11 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224958', 'tblTempUsageDetail_20' ) end [2025-01-11 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:45:23] Production.INFO: ==22246== Releasing lock... [2025-01-11 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:46:05 [end_date_ymd] => 2025-01-11 14:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:46:05' and `end` < '2025-01-11 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-11 14:46:18] Production.INFO: count ==1697 [2025-01-11 14:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:46:05 - End Time 2025-01-11 14:46:05 [2025-01-11 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224963', 'tblTempUsageDetail_20' ) start [2025-01-11 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224963', 'tblTempUsageDetail_20' ) end [2025-01-11 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224963', 'tblTempVendorCDR_20' ) start [2025-01-11 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224963', 'tblTempVendorCDR_20' ) end [2025-01-11 14:46:19] Production.INFO: ProcessCDR(1,14224963,1,1,2) [2025-01-11 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224963', 'tblTempUsageDetail_20' ) start [2025-01-11 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224963', 'tblTempUsageDetail_20' ) end [2025-01-11 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:46:22] Production.INFO: ==22324== Releasing lock... [2025-01-11 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:46:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:47:05 [end_date_ymd] => 2025-01-11 14:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:47:05' and `end` < '2025-01-11 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-11 14:47:18] Production.INFO: count ==1699 [2025-01-11 14:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:47:05 - End Time 2025-01-11 14:47:05 [2025-01-11 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224968', 'tblTempUsageDetail_20' ) start [2025-01-11 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224968', 'tblTempUsageDetail_20' ) end [2025-01-11 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224968', 'tblTempVendorCDR_20' ) start [2025-01-11 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224968', 'tblTempVendorCDR_20' ) end [2025-01-11 14:47:19] Production.INFO: ProcessCDR(1,14224968,1,1,2) [2025-01-11 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224968', 'tblTempUsageDetail_20' ) start [2025-01-11 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224968', 'tblTempUsageDetail_20' ) end [2025-01-11 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:47:24] Production.INFO: ==22406== Releasing lock... [2025-01-11 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:47:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:48:05 [end_date_ymd] => 2025-01-11 14:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:48:05' and `end` < '2025-01-11 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-11 14:48:18] Production.INFO: count ==1699 [2025-01-11 14:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:48:05 - End Time 2025-01-11 14:48:05 [2025-01-11 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224973', 'tblTempUsageDetail_20' ) start [2025-01-11 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224973', 'tblTempUsageDetail_20' ) end [2025-01-11 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224973', 'tblTempVendorCDR_20' ) start [2025-01-11 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224973', 'tblTempVendorCDR_20' ) end [2025-01-11 14:48:19] Production.INFO: ProcessCDR(1,14224973,1,1,2) [2025-01-11 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224973', 'tblTempUsageDetail_20' ) start [2025-01-11 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224973', 'tblTempUsageDetail_20' ) end [2025-01-11 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:48:22] Production.INFO: ==22487== Releasing lock... [2025-01-11 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:49:05 [end_date_ymd] => 2025-01-11 14:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:49:05' and `end` < '2025-01-11 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-11 14:49:18] Production.INFO: count ==1684 [2025-01-11 14:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:49:05 - End Time 2025-01-11 14:49:05 [2025-01-11 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224978', 'tblTempUsageDetail_20' ) start [2025-01-11 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224978', 'tblTempUsageDetail_20' ) end [2025-01-11 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224978', 'tblTempVendorCDR_20' ) start [2025-01-11 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224978', 'tblTempVendorCDR_20' ) end [2025-01-11 14:49:18] Production.INFO: ProcessCDR(1,14224978,1,1,2) [2025-01-11 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224978', 'tblTempUsageDetail_20' ) start [2025-01-11 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224978', 'tblTempUsageDetail_20' ) end [2025-01-11 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:49:23] Production.INFO: ==22616== Releasing lock... [2025-01-11 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:49:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:50:05 [end_date_ymd] => 2025-01-11 14:50:05 [RateCDR] => 1 ) [2025-01-11 14: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-11 11:50:05' and `end` < '2025-01-11 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-11 14:50:19] Production.INFO: count ==1687 [2025-01-11 14:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:50:05 - End Time 2025-01-11 14:50:05 [2025-01-11 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224984', 'tblTempUsageDetail_20' ) start [2025-01-11 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224984', 'tblTempUsageDetail_20' ) end [2025-01-11 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224984', 'tblTempVendorCDR_20' ) start [2025-01-11 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224984', 'tblTempVendorCDR_20' ) end [2025-01-11 14:50:19] Production.INFO: ProcessCDR(1,14224984,1,1,2) [2025-01-11 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224984', 'tblTempUsageDetail_20' ) start [2025-01-11 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224984', 'tblTempUsageDetail_20' ) end [2025-01-11 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:50:24] Production.INFO: ==22698== Releasing lock... [2025-01-11 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:50:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:51:05 [end_date_ymd] => 2025-01-11 14:51:05 [RateCDR] => 1 ) [2025-01-11 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:51:05' and `end` < '2025-01-11 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:51:19] Production.INFO: count ==1699 [2025-01-11 14:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:51:05 - End Time 2025-01-11 14:51:05 [2025-01-11 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224989', 'tblTempUsageDetail_20' ) start [2025-01-11 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224989', 'tblTempUsageDetail_20' ) end [2025-01-11 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224989', 'tblTempVendorCDR_20' ) start [2025-01-11 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224989', 'tblTempVendorCDR_20' ) end [2025-01-11 14:51:19] Production.INFO: ProcessCDR(1,14224989,1,1,2) [2025-01-11 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224989', 'tblTempUsageDetail_20' ) start [2025-01-11 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224989', 'tblTempUsageDetail_20' ) end [2025-01-11 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:51:24] Production.INFO: ==22778== Releasing lock... [2025-01-11 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:51:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:52:05 [end_date_ymd] => 2025-01-11 14:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:52:05' and `end` < '2025-01-11 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-11 14:52:19] Production.INFO: count ==1700 [2025-01-11 14:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:52:05 - End Time 2025-01-11 14:52:05 [2025-01-11 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224994', 'tblTempUsageDetail_20' ) start [2025-01-11 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224994', 'tblTempUsageDetail_20' ) end [2025-01-11 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224994', 'tblTempVendorCDR_20' ) start [2025-01-11 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224994', 'tblTempVendorCDR_20' ) end [2025-01-11 14:52:20] Production.INFO: ProcessCDR(1,14224994,1,1,2) [2025-01-11 14:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224994', 'tblTempUsageDetail_20' ) start [2025-01-11 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224994', 'tblTempUsageDetail_20' ) end [2025-01-11 14:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:52:25] Production.INFO: ==22865== Releasing lock... [2025-01-11 14:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:52:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:53:05 [end_date_ymd] => 2025-01-11 14:53:05 [RateCDR] => 1 ) [2025-01-11 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:53:05' and `end` < '2025-01-11 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:53:21] Production.INFO: count ==1689 [2025-01-11 14:53:22] Production.ERROR: pbx CDR StartTime 2025-01-11 11:53:05 - End Time 2025-01-11 14:53:05 [2025-01-11 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224999', 'tblTempUsageDetail_20' ) start [2025-01-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14224999', 'tblTempUsageDetail_20' ) end [2025-01-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224999', 'tblTempVendorCDR_20' ) start [2025-01-11 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14224999', 'tblTempVendorCDR_20' ) end [2025-01-11 14:53:22] Production.INFO: ProcessCDR(1,14224999,1,1,2) [2025-01-11 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14224999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14224999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14224999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14224999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224999', 'tblTempUsageDetail_20' ) start [2025-01-11 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14224999', 'tblTempUsageDetail_20' ) end [2025-01-11 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:53:25] Production.INFO: ==22948== Releasing lock... [2025-01-11 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:53:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:54:05 [end_date_ymd] => 2025-01-11 14:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:54:05' and `end` < '2025-01-11 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-11 14:54:19] Production.INFO: count ==1681 [2025-01-11 14:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:54:05 - End Time 2025-01-11 14:54:05 [2025-01-11 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225004', 'tblTempUsageDetail_20' ) start [2025-01-11 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225004', 'tblTempUsageDetail_20' ) end [2025-01-11 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225004', 'tblTempVendorCDR_20' ) start [2025-01-11 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225004', 'tblTempVendorCDR_20' ) end [2025-01-11 14:54:19] Production.INFO: ProcessCDR(1,14225004,1,1,2) [2025-01-11 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225004', 'tblTempUsageDetail_20' ) start [2025-01-11 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225004', 'tblTempUsageDetail_20' ) end [2025-01-11 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:54:22] Production.INFO: ==23037== Releasing lock... [2025-01-11 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:55:05 [end_date_ymd] => 2025-01-11 14:55:05 [RateCDR] => 1 ) [2025-01-11 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:55:05' and `end` < '2025-01-11 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:55:18] Production.INFO: count ==1680 [2025-01-11 14:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:55:05 - End Time 2025-01-11 14:55:05 [2025-01-11 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225009', 'tblTempUsageDetail_20' ) start [2025-01-11 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225009', 'tblTempUsageDetail_20' ) end [2025-01-11 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225009', 'tblTempVendorCDR_20' ) start [2025-01-11 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225009', 'tblTempVendorCDR_20' ) end [2025-01-11 14:55:19] Production.INFO: ProcessCDR(1,14225009,1,1,2) [2025-01-11 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225009', 'tblTempUsageDetail_20' ) start [2025-01-11 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225009', 'tblTempUsageDetail_20' ) end [2025-01-11 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:55:22] Production.INFO: ==23143== Releasing lock... [2025-01-11 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:55:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:56:04 [end_date_ymd] => 2025-01-11 14:56:04 [RateCDR] => 1 ) [2025-01-11 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-11 11:56:04' and `end` < '2025-01-11 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-11 14:56:18] Production.INFO: count ==1680 [2025-01-11 14:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:56:04 - End Time 2025-01-11 14:56:04 [2025-01-11 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225014', 'tblTempUsageDetail_20' ) start [2025-01-11 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225014', 'tblTempUsageDetail_20' ) end [2025-01-11 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225014', 'tblTempVendorCDR_20' ) start [2025-01-11 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225014', 'tblTempVendorCDR_20' ) end [2025-01-11 14:56:18] Production.INFO: ProcessCDR(1,14225014,1,1,2) [2025-01-11 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225014', 'tblTempUsageDetail_20' ) start [2025-01-11 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225014', 'tblTempUsageDetail_20' ) end [2025-01-11 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:56:23] Production.INFO: ==23245== Releasing lock... [2025-01-11 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:57:05 [end_date_ymd] => 2025-01-11 14:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 11:57:05' and `end` < '2025-01-11 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-11 14:57:18] Production.INFO: count ==1680 [2025-01-11 14:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 11:57:05 - End Time 2025-01-11 14:57:05 [2025-01-11 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225019', 'tblTempUsageDetail_20' ) start [2025-01-11 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225019', 'tblTempUsageDetail_20' ) end [2025-01-11 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225019', 'tblTempVendorCDR_20' ) start [2025-01-11 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225019', 'tblTempVendorCDR_20' ) end [2025-01-11 14:57:19] Production.INFO: ProcessCDR(1,14225019,1,1,2) [2025-01-11 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225019', 'tblTempUsageDetail_20' ) start [2025-01-11 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225019', 'tblTempUsageDetail_20' ) end [2025-01-11 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:57:23] Production.INFO: ==23350== Releasing lock... [2025-01-11 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:57:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:58:04 [end_date_ymd] => 2025-01-11 14:58:04 [RateCDR] => 1 ) [2025-01-11 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-11 11:58:04' and `end` < '2025-01-11 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-11 14:58:18] Production.INFO: count ==1677 [2025-01-11 14:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 11:58:04 - End Time 2025-01-11 14:58:04 [2025-01-11 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225024', 'tblTempUsageDetail_20' ) start [2025-01-11 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225024', 'tblTempUsageDetail_20' ) end [2025-01-11 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225024', 'tblTempVendorCDR_20' ) start [2025-01-11 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225024', 'tblTempVendorCDR_20' ) end [2025-01-11 14:58:18] Production.INFO: ProcessCDR(1,14225024,1,1,2) [2025-01-11 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225024', 'tblTempUsageDetail_20' ) start [2025-01-11 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225024', 'tblTempUsageDetail_20' ) end [2025-01-11 14:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:58:21] Production.INFO: ==23456== Releasing lock... [2025-01-11 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:58:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 11:59:05 [end_date_ymd] => 2025-01-11 14:59:05 [RateCDR] => 1 ) [2025-01-11 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 11:59:05' and `end` < '2025-01-11 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 14:59:20] Production.INFO: count ==1680 [2025-01-11 14:59:20] Production.ERROR: pbx CDR StartTime 2025-01-11 11:59:05 - End Time 2025-01-11 14:59:05 [2025-01-11 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225029', 'tblTempUsageDetail_20' ) start [2025-01-11 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225029', 'tblTempUsageDetail_20' ) end [2025-01-11 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225029', 'tblTempVendorCDR_20' ) start [2025-01-11 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225029', 'tblTempVendorCDR_20' ) end [2025-01-11 14:59:20] Production.INFO: ProcessCDR(1,14225029,1,1,2) [2025-01-11 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225029', 'tblTempUsageDetail_20' ) start [2025-01-11 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225029', 'tblTempUsageDetail_20' ) end [2025-01-11 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 14:59:25] Production.INFO: ==23563== Releasing lock... [2025-01-11 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 14:59:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:00:05 [end_date_ymd] => 2025-01-11 15:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:00:05' and `end` < '2025-01-11 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-11 15:00:19] Production.INFO: count ==1677 [2025-01-11 15:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:00:05 - End Time 2025-01-11 15:00:05 [2025-01-11 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225035', 'tblTempUsageDetail_20' ) start [2025-01-11 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225035', 'tblTempUsageDetail_20' ) end [2025-01-11 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225035', 'tblTempVendorCDR_20' ) start [2025-01-11 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225035', 'tblTempVendorCDR_20' ) end [2025-01-11 15:00:19] Production.INFO: ProcessCDR(1,14225035,1,1,2) [2025-01-11 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225035', 'tblTempUsageDetail_20' ) start [2025-01-11 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225035', 'tblTempUsageDetail_20' ) end [2025-01-11 15:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:00:22] Production.INFO: ==23671== Releasing lock... [2025-01-11 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:00:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:01:05 [end_date_ymd] => 2025-01-11 15:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:01:05' and `end` < '2025-01-11 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-11 15:01:18] Production.INFO: count ==1676 [2025-01-11 15:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:01:05 - End Time 2025-01-11 15:01:05 [2025-01-11 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225040', 'tblTempUsageDetail_20' ) start [2025-01-11 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225040', 'tblTempUsageDetail_20' ) end [2025-01-11 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225040', 'tblTempVendorCDR_20' ) start [2025-01-11 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225040', 'tblTempVendorCDR_20' ) end [2025-01-11 15:01:19] Production.INFO: ProcessCDR(1,14225040,1,1,2) [2025-01-11 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225040', 'tblTempUsageDetail_20' ) start [2025-01-11 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225040', 'tblTempUsageDetail_20' ) end [2025-01-11 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:01:23] Production.INFO: ==23795== Releasing lock... [2025-01-11 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:01:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:02:04 [end_date_ymd] => 2025-01-11 15:02:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:02:04' and `end` < '2025-01-11 15: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-11 15:02:18] Production.INFO: count ==1677 [2025-01-11 15:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:02:04 - End Time 2025-01-11 15:02:04 [2025-01-11 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225045', 'tblTempUsageDetail_20' ) start [2025-01-11 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225045', 'tblTempUsageDetail_20' ) end [2025-01-11 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225045', 'tblTempVendorCDR_20' ) start [2025-01-11 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225045', 'tblTempVendorCDR_20' ) end [2025-01-11 15:02:19] Production.INFO: ProcessCDR(1,14225045,1,1,2) [2025-01-11 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225045', 'tblTempUsageDetail_20' ) start [2025-01-11 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225045', 'tblTempUsageDetail_20' ) end [2025-01-11 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:02:22] Production.INFO: ==23983== Releasing lock... [2025-01-11 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:03:05 [end_date_ymd] => 2025-01-11 15:03:05 [RateCDR] => 1 ) [2025-01-11 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:03:05' and `end` < '2025-01-11 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:03:18] Production.INFO: count ==1678 [2025-01-11 15:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:03:05 - End Time 2025-01-11 15:03:05 [2025-01-11 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225050', 'tblTempUsageDetail_20' ) start [2025-01-11 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225050', 'tblTempUsageDetail_20' ) end [2025-01-11 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225050', 'tblTempVendorCDR_20' ) start [2025-01-11 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225050', 'tblTempVendorCDR_20' ) end [2025-01-11 15:03:18] Production.INFO: ProcessCDR(1,14225050,1,1,2) [2025-01-11 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225050', 'tblTempUsageDetail_20' ) start [2025-01-11 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225050', 'tblTempUsageDetail_20' ) end [2025-01-11 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:03:23] Production.INFO: ==24088== Releasing lock... [2025-01-11 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:04:05 [end_date_ymd] => 2025-01-11 15:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:04:05' and `end` < '2025-01-11 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-11 15:04:19] Production.INFO: count ==1673 [2025-01-11 15:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:04:05 - End Time 2025-01-11 15:04:05 [2025-01-11 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225055', 'tblTempUsageDetail_20' ) start [2025-01-11 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225055', 'tblTempUsageDetail_20' ) end [2025-01-11 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225055', 'tblTempVendorCDR_20' ) start [2025-01-11 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225055', 'tblTempVendorCDR_20' ) end [2025-01-11 15:04:19] Production.INFO: ProcessCDR(1,14225055,1,1,2) [2025-01-11 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225055', 'tblTempUsageDetail_20' ) start [2025-01-11 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225055', 'tblTempUsageDetail_20' ) end [2025-01-11 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:04:23] Production.INFO: ==24201== Releasing lock... [2025-01-11 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:04:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:05:05 [end_date_ymd] => 2025-01-11 15:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:05:05' and `end` < '2025-01-11 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-11 15:05:18] Production.INFO: count ==1672 [2025-01-11 15:05:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:05:05 - End Time 2025-01-11 15:05:05 [2025-01-11 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225060', 'tblTempUsageDetail_20' ) start [2025-01-11 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225060', 'tblTempUsageDetail_20' ) end [2025-01-11 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225060', 'tblTempVendorCDR_20' ) start [2025-01-11 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225060', 'tblTempVendorCDR_20' ) end [2025-01-11 15:05:19] Production.INFO: ProcessCDR(1,14225060,1,1,2) [2025-01-11 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225060', 'tblTempUsageDetail_20' ) start [2025-01-11 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225060', 'tblTempUsageDetail_20' ) end [2025-01-11 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:05:22] Production.INFO: ==24429== Releasing lock... [2025-01-11 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:06:05 [end_date_ymd] => 2025-01-11 15:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:06:05' and `end` < '2025-01-11 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-11 15:06:18] Production.INFO: count ==1661 [2025-01-11 15:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:06:05 - End Time 2025-01-11 15:06:05 [2025-01-11 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225065', 'tblTempUsageDetail_20' ) start [2025-01-11 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225065', 'tblTempUsageDetail_20' ) end [2025-01-11 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225065', 'tblTempVendorCDR_20' ) start [2025-01-11 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225065', 'tblTempVendorCDR_20' ) end [2025-01-11 15:06:19] Production.INFO: ProcessCDR(1,14225065,1,1,2) [2025-01-11 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225065', 'tblTempUsageDetail_20' ) start [2025-01-11 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225065', 'tblTempUsageDetail_20' ) end [2025-01-11 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:06:22] Production.INFO: ==24540== Releasing lock... [2025-01-11 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:06:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:07:04 [end_date_ymd] => 2025-01-11 15:07:04 [RateCDR] => 1 ) [2025-01-11 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-11 12:07:04' and `end` < '2025-01-11 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-11 15:07:18] Production.INFO: count ==1662 [2025-01-11 15:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:07:04 - End Time 2025-01-11 15:07:04 [2025-01-11 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225070', 'tblTempUsageDetail_20' ) start [2025-01-11 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225070', 'tblTempUsageDetail_20' ) end [2025-01-11 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225070', 'tblTempVendorCDR_20' ) start [2025-01-11 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225070', 'tblTempVendorCDR_20' ) end [2025-01-11 15:07:18] Production.INFO: ProcessCDR(1,14225070,1,1,2) [2025-01-11 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225070', 'tblTempUsageDetail_20' ) start [2025-01-11 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225070', 'tblTempUsageDetail_20' ) end [2025-01-11 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:07:22] Production.INFO: ==24655== Releasing lock... [2025-01-11 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:07:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:08:05 [end_date_ymd] => 2025-01-11 15:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:08:05' and `end` < '2025-01-11 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-11 15:08:18] Production.INFO: count ==1663 [2025-01-11 15:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:08:05 - End Time 2025-01-11 15:08:05 [2025-01-11 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225075', 'tblTempUsageDetail_20' ) start [2025-01-11 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225075', 'tblTempUsageDetail_20' ) end [2025-01-11 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225075', 'tblTempVendorCDR_20' ) start [2025-01-11 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225075', 'tblTempVendorCDR_20' ) end [2025-01-11 15:08:19] Production.INFO: ProcessCDR(1,14225075,1,1,2) [2025-01-11 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225075', 'tblTempUsageDetail_20' ) start [2025-01-11 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225075', 'tblTempUsageDetail_20' ) end [2025-01-11 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:08:22] Production.INFO: ==24797== Releasing lock... [2025-01-11 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:09:04 [end_date_ymd] => 2025-01-11 15:09:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:09:04' and `end` < '2025-01-11 15: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-11 15:09:18] Production.INFO: count ==1659 [2025-01-11 15:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:09:04 - End Time 2025-01-11 15:09:04 [2025-01-11 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225080', 'tblTempUsageDetail_20' ) start [2025-01-11 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225080', 'tblTempUsageDetail_20' ) end [2025-01-11 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225080', 'tblTempVendorCDR_20' ) start [2025-01-11 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225080', 'tblTempVendorCDR_20' ) end [2025-01-11 15:09:19] Production.INFO: ProcessCDR(1,14225080,1,1,2) [2025-01-11 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225080', 'tblTempUsageDetail_20' ) start [2025-01-11 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225080', 'tblTempUsageDetail_20' ) end [2025-01-11 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:09:22] Production.INFO: ==24941== Releasing lock... [2025-01-11 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:09:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:10:06 [end_date_ymd] => 2025-01-11 15:10:06 [RateCDR] => 1 ) [2025-01-11 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:10:06' and `end` < '2025-01-11 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:10:19] Production.INFO: count ==1656 [2025-01-11 15:10:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:10:06 - End Time 2025-01-11 15:10:06 [2025-01-11 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225086', 'tblTempUsageDetail_20' ) start [2025-01-11 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225086', 'tblTempUsageDetail_20' ) end [2025-01-11 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225086', 'tblTempVendorCDR_20' ) start [2025-01-11 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225086', 'tblTempVendorCDR_20' ) end [2025-01-11 15:10:20] Production.INFO: ProcessCDR(1,14225086,1,1,2) [2025-01-11 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225086', 'tblTempUsageDetail_20' ) start [2025-01-11 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225086', 'tblTempUsageDetail_20' ) end [2025-01-11 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:10:23] Production.INFO: ==25046== Releasing lock... [2025-01-11 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:10:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:11:04 [end_date_ymd] => 2025-01-11 15:11:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:11:04' and `end` < '2025-01-11 15: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-11 15:11:18] Production.INFO: count ==1611 [2025-01-11 15:11:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:11:04 - End Time 2025-01-11 15:11:04 [2025-01-11 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225091', 'tblTempUsageDetail_20' ) start [2025-01-11 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225091', 'tblTempUsageDetail_20' ) end [2025-01-11 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225091', 'tblTempVendorCDR_20' ) start [2025-01-11 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225091', 'tblTempVendorCDR_20' ) end [2025-01-11 15:11:18] Production.INFO: ProcessCDR(1,14225091,1,1,2) [2025-01-11 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225091', 'tblTempUsageDetail_20' ) start [2025-01-11 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225091', 'tblTempUsageDetail_20' ) end [2025-01-11 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:11:23] Production.INFO: ==25153== Releasing lock... [2025-01-11 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:12:04 [end_date_ymd] => 2025-01-11 15:12:04 [RateCDR] => 1 ) [2025-01-11 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-11 12:12:04' and `end` < '2025-01-11 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-11 15:12:18] Production.INFO: count ==1604 [2025-01-11 15:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:12:04 - End Time 2025-01-11 15:12:04 [2025-01-11 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225096', 'tblTempUsageDetail_20' ) start [2025-01-11 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225096', 'tblTempUsageDetail_20' ) end [2025-01-11 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225096', 'tblTempVendorCDR_20' ) start [2025-01-11 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225096', 'tblTempVendorCDR_20' ) end [2025-01-11 15:12:18] Production.INFO: ProcessCDR(1,14225096,1,1,2) [2025-01-11 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225096', 'tblTempUsageDetail_20' ) start [2025-01-11 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225096', 'tblTempUsageDetail_20' ) end [2025-01-11 15:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:12:21] Production.INFO: ==25329== Releasing lock... [2025-01-11 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:12:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:13:04 [end_date_ymd] => 2025-01-11 15:13:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:13:04' and `end` < '2025-01-11 15: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-11 15:13:18] Production.INFO: count ==1604 [2025-01-11 15:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:13:04 - End Time 2025-01-11 15:13:04 [2025-01-11 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225101', 'tblTempUsageDetail_20' ) start [2025-01-11 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225101', 'tblTempUsageDetail_20' ) end [2025-01-11 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225101', 'tblTempVendorCDR_20' ) start [2025-01-11 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225101', 'tblTempVendorCDR_20' ) end [2025-01-11 15:13:18] Production.INFO: ProcessCDR(1,14225101,1,1,2) [2025-01-11 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225101', 'tblTempUsageDetail_20' ) start [2025-01-11 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225101', 'tblTempUsageDetail_20' ) end [2025-01-11 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:13:21] Production.INFO: ==25405== Releasing lock... [2025-01-11 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:13:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:14:05 [end_date_ymd] => 2025-01-11 15:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:14:05' and `end` < '2025-01-11 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-11 15:14:18] Production.INFO: count ==1598 [2025-01-11 15:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:14:05 - End Time 2025-01-11 15:14:05 [2025-01-11 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225106', 'tblTempUsageDetail_20' ) start [2025-01-11 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225106', 'tblTempUsageDetail_20' ) end [2025-01-11 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225106', 'tblTempVendorCDR_20' ) start [2025-01-11 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225106', 'tblTempVendorCDR_20' ) end [2025-01-11 15:14:19] Production.INFO: ProcessCDR(1,14225106,1,1,2) [2025-01-11 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225106', 'tblTempUsageDetail_20' ) start [2025-01-11 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225106', 'tblTempUsageDetail_20' ) end [2025-01-11 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:14:22] Production.INFO: ==25484== Releasing lock... [2025-01-11 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:14:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:15:05 [end_date_ymd] => 2025-01-11 15:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:15:05' and `end` < '2025-01-11 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:15:19] Production.INFO: count ==1596 [2025-01-11 15:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:15:05 - End Time 2025-01-11 15:15:05 [2025-01-11 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225111', 'tblTempUsageDetail_20' ) start [2025-01-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225111', 'tblTempUsageDetail_20' ) end [2025-01-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225111', 'tblTempVendorCDR_20' ) start [2025-01-11 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225111', 'tblTempVendorCDR_20' ) end [2025-01-11 15:15:20] Production.INFO: ProcessCDR(1,14225111,1,1,2) [2025-01-11 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225111', 'tblTempUsageDetail_20' ) start [2025-01-11 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225111', 'tblTempUsageDetail_20' ) end [2025-01-11 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:15:25] Production.INFO: ==25646== Releasing lock... [2025-01-11 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:15:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:16:05 [end_date_ymd] => 2025-01-11 15:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:16:05' and `end` < '2025-01-11 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-11 15:16:21] Production.INFO: count ==1597 [2025-01-11 15:16:22] Production.ERROR: pbx CDR StartTime 2025-01-11 12:16:05 - End Time 2025-01-11 15:16:05 [2025-01-11 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225116', 'tblTempUsageDetail_20' ) start [2025-01-11 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225116', 'tblTempUsageDetail_20' ) end [2025-01-11 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225116', 'tblTempVendorCDR_20' ) start [2025-01-11 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225116', 'tblTempVendorCDR_20' ) end [2025-01-11 15:16:22] Production.INFO: ProcessCDR(1,14225116,1,1,2) [2025-01-11 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225116', 'tblTempUsageDetail_20' ) start [2025-01-11 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225116', 'tblTempUsageDetail_20' ) end [2025-01-11 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:16:26] Production.INFO: ==25728== Releasing lock... [2025-01-11 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:16:26] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:17:05 [end_date_ymd] => 2025-01-11 15:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:17:05' and `end` < '2025-01-11 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-11 15:17:18] Production.INFO: count ==1594 [2025-01-11 15:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:17:05 - End Time 2025-01-11 15:17:05 [2025-01-11 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225121', 'tblTempUsageDetail_20' ) start [2025-01-11 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225121', 'tblTempUsageDetail_20' ) end [2025-01-11 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225121', 'tblTempVendorCDR_20' ) start [2025-01-11 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225121', 'tblTempVendorCDR_20' ) end [2025-01-11 15:17:19] Production.INFO: ProcessCDR(1,14225121,1,1,2) [2025-01-11 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225121', 'tblTempUsageDetail_20' ) start [2025-01-11 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225121', 'tblTempUsageDetail_20' ) end [2025-01-11 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:17:22] Production.INFO: ==25806== Releasing lock... [2025-01-11 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:17:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:18:05 [end_date_ymd] => 2025-01-11 15:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:18:05' and `end` < '2025-01-11 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-11 15:18:18] Production.INFO: count ==1591 [2025-01-11 15:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:18:05 - End Time 2025-01-11 15:18:05 [2025-01-11 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225126', 'tblTempUsageDetail_20' ) start [2025-01-11 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225126', 'tblTempUsageDetail_20' ) end [2025-01-11 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225126', 'tblTempVendorCDR_20' ) start [2025-01-11 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225126', 'tblTempVendorCDR_20' ) end [2025-01-11 15:18:18] Production.INFO: ProcessCDR(1,14225126,1,1,2) [2025-01-11 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225126', 'tblTempUsageDetail_20' ) start [2025-01-11 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225126', 'tblTempUsageDetail_20' ) end [2025-01-11 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:18:23] Production.INFO: ==25882== Releasing lock... [2025-01-11 15:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:18:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:19:06 [end_date_ymd] => 2025-01-11 15:19:06 [RateCDR] => 1 ) [2025-01-11 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-11 12:19:06' and `end` < '2025-01-11 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-11 15:19:19] Production.INFO: count ==1590 [2025-01-11 15:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:19:06 - End Time 2025-01-11 15:19:06 [2025-01-11 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225131', 'tblTempUsageDetail_20' ) start [2025-01-11 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225131', 'tblTempUsageDetail_20' ) end [2025-01-11 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225131', 'tblTempVendorCDR_20' ) start [2025-01-11 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225131', 'tblTempVendorCDR_20' ) end [2025-01-11 15:19:19] Production.INFO: ProcessCDR(1,14225131,1,1,2) [2025-01-11 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225131', 'tblTempUsageDetail_20' ) start [2025-01-11 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225131', 'tblTempUsageDetail_20' ) end [2025-01-11 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:19:23] Production.INFO: ==25969== Releasing lock... [2025-01-11 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:20:06 [end_date_ymd] => 2025-01-11 15:20:06 [RateCDR] => 1 ) [2025-01-11 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-11 12:20:06' and `end` < '2025-01-11 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-11 15:20:19] Production.INFO: count ==1601 [2025-01-11 15:20:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:20:06 - End Time 2025-01-11 15:20:06 [2025-01-11 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225136', 'tblTempUsageDetail_20' ) start [2025-01-11 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225136', 'tblTempUsageDetail_20' ) end [2025-01-11 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225136', 'tblTempVendorCDR_20' ) start [2025-01-11 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225136', 'tblTempVendorCDR_20' ) end [2025-01-11 15:20:20] Production.INFO: ProcessCDR(1,14225136,1,1,2) [2025-01-11 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225136', 'tblTempUsageDetail_20' ) start [2025-01-11 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225136', 'tblTempUsageDetail_20' ) end [2025-01-11 15:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:20:25] Production.INFO: ==26053== Releasing lock... [2025-01-11 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:20:25] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:21:04 [end_date_ymd] => 2025-01-11 15:21:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:21:04' and `end` < '2025-01-11 15: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-11 15:21:18] Production.INFO: count ==1583 [2025-01-11 15:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:21:04 - End Time 2025-01-11 15:21:04 [2025-01-11 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225142', 'tblTempUsageDetail_20' ) start [2025-01-11 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225142', 'tblTempUsageDetail_20' ) end [2025-01-11 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225142', 'tblTempVendorCDR_20' ) start [2025-01-11 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225142', 'tblTempVendorCDR_20' ) end [2025-01-11 15:21:19] Production.INFO: ProcessCDR(1,14225142,1,1,2) [2025-01-11 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225142', 'tblTempUsageDetail_20' ) start [2025-01-11 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225142', 'tblTempUsageDetail_20' ) end [2025-01-11 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:21:22] Production.INFO: ==26175== Releasing lock... [2025-01-11 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:22:05 [end_date_ymd] => 2025-01-11 15:22:05 [RateCDR] => 1 ) [2025-01-11 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:22:05' and `end` < '2025-01-11 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:22:19] Production.INFO: count ==1581 [2025-01-11 15:22:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:22:05 - End Time 2025-01-11 15:22:05 [2025-01-11 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225147', 'tblTempUsageDetail_20' ) start [2025-01-11 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225147', 'tblTempUsageDetail_20' ) end [2025-01-11 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225147', 'tblTempVendorCDR_20' ) start [2025-01-11 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225147', 'tblTempVendorCDR_20' ) end [2025-01-11 15:22:20] Production.INFO: ProcessCDR(1,14225147,1,1,2) [2025-01-11 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225147', 'tblTempUsageDetail_20' ) start [2025-01-11 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225147', 'tblTempUsageDetail_20' ) end [2025-01-11 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:22:23] Production.INFO: ==26261== Releasing lock... [2025-01-11 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:22:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:23:05 [end_date_ymd] => 2025-01-11 15:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:23:05' and `end` < '2025-01-11 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-11 15:23:19] Production.INFO: count ==1580 [2025-01-11 15:23:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:23:05 - End Time 2025-01-11 15:23:05 [2025-01-11 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225152', 'tblTempUsageDetail_20' ) start [2025-01-11 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225152', 'tblTempUsageDetail_20' ) end [2025-01-11 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225152', 'tblTempVendorCDR_20' ) start [2025-01-11 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225152', 'tblTempVendorCDR_20' ) end [2025-01-11 15:23:20] Production.INFO: ProcessCDR(1,14225152,1,1,2) [2025-01-11 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225152', 'tblTempUsageDetail_20' ) start [2025-01-11 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225152', 'tblTempUsageDetail_20' ) end [2025-01-11 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:23:23] Production.INFO: ==26340== Releasing lock... [2025-01-11 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:23:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:24:05 [end_date_ymd] => 2025-01-11 15:24:05 [RateCDR] => 1 ) [2025-01-11 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:24:05' and `end` < '2025-01-11 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:24:18] Production.INFO: count ==1578 [2025-01-11 15:24:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:24:05 - End Time 2025-01-11 15:24:05 [2025-01-11 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225157', 'tblTempUsageDetail_20' ) start [2025-01-11 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225157', 'tblTempUsageDetail_20' ) end [2025-01-11 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225157', 'tblTempVendorCDR_20' ) start [2025-01-11 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225157', 'tblTempVendorCDR_20' ) end [2025-01-11 15:24:19] Production.INFO: ProcessCDR(1,14225157,1,1,2) [2025-01-11 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225157', 'tblTempUsageDetail_20' ) start [2025-01-11 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225157', 'tblTempUsageDetail_20' ) end [2025-01-11 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:24:23] Production.INFO: ==26419== Releasing lock... [2025-01-11 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:24:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:25:05 [end_date_ymd] => 2025-01-11 15:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:25:05' and `end` < '2025-01-11 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-11 15:25:19] Production.INFO: count ==1584 [2025-01-11 15:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:25:05 - End Time 2025-01-11 15:25:05 [2025-01-11 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225162', 'tblTempUsageDetail_20' ) start [2025-01-11 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225162', 'tblTempUsageDetail_20' ) end [2025-01-11 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225162', 'tblTempVendorCDR_20' ) start [2025-01-11 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225162', 'tblTempVendorCDR_20' ) end [2025-01-11 15:25:19] Production.INFO: ProcessCDR(1,14225162,1,1,2) [2025-01-11 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225162', 'tblTempUsageDetail_20' ) start [2025-01-11 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225162', 'tblTempUsageDetail_20' ) end [2025-01-11 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:25:22] Production.INFO: ==26509== Releasing lock... [2025-01-11 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:25:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:26:04 [end_date_ymd] => 2025-01-11 15:26:04 [RateCDR] => 1 ) [2025-01-11 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-11 12:26:04' and `end` < '2025-01-11 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-11 15:26:18] Production.INFO: count ==1583 [2025-01-11 15:26:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:26:04 - End Time 2025-01-11 15:26:04 [2025-01-11 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225167', 'tblTempUsageDetail_20' ) start [2025-01-11 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225167', 'tblTempUsageDetail_20' ) end [2025-01-11 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225167', 'tblTempVendorCDR_20' ) start [2025-01-11 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225167', 'tblTempVendorCDR_20' ) end [2025-01-11 15:26:18] Production.INFO: ProcessCDR(1,14225167,1,1,2) [2025-01-11 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225167', 'tblTempUsageDetail_20' ) start [2025-01-11 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225167', 'tblTempUsageDetail_20' ) end [2025-01-11 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:26:23] Production.INFO: ==26587== Releasing lock... [2025-01-11 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:27:05 [end_date_ymd] => 2025-01-11 15:27:05 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:27:05' and `end` < '2025-01-11 15: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-11 15:27:18] Production.INFO: count ==1566 [2025-01-11 15:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:27:05 - End Time 2025-01-11 15:27:05 [2025-01-11 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225172', 'tblTempUsageDetail_20' ) start [2025-01-11 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225172', 'tblTempUsageDetail_20' ) end [2025-01-11 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225172', 'tblTempVendorCDR_20' ) start [2025-01-11 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225172', 'tblTempVendorCDR_20' ) end [2025-01-11 15:27:19] Production.INFO: ProcessCDR(1,14225172,1,1,2) [2025-01-11 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225172', 'tblTempUsageDetail_20' ) start [2025-01-11 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225172', 'tblTempUsageDetail_20' ) end [2025-01-11 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:27:22] Production.INFO: ==26667== Releasing lock... [2025-01-11 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:27:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:28:05 [end_date_ymd] => 2025-01-11 15:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:28:05' and `end` < '2025-01-11 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-11 15:28:20] Production.INFO: count ==1579 [2025-01-11 15:28:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:28:05 - End Time 2025-01-11 15:28:05 [2025-01-11 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225177', 'tblTempUsageDetail_20' ) start [2025-01-11 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225177', 'tblTempUsageDetail_20' ) end [2025-01-11 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225177', 'tblTempVendorCDR_20' ) start [2025-01-11 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225177', 'tblTempVendorCDR_20' ) end [2025-01-11 15:28:20] Production.INFO: ProcessCDR(1,14225177,1,1,2) [2025-01-11 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225177', 'tblTempUsageDetail_20' ) start [2025-01-11 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225177', 'tblTempUsageDetail_20' ) end [2025-01-11 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:28:25] Production.INFO: ==26748== Releasing lock... [2025-01-11 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:28:25] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:29:05 [end_date_ymd] => 2025-01-11 15:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:29:05' and `end` < '2025-01-11 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-11 15:29:18] Production.INFO: count ==1586 [2025-01-11 15:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:29:05 - End Time 2025-01-11 15:29:05 [2025-01-11 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225182', 'tblTempUsageDetail_20' ) start [2025-01-11 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225182', 'tblTempUsageDetail_20' ) end [2025-01-11 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225182', 'tblTempVendorCDR_20' ) start [2025-01-11 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225182', 'tblTempVendorCDR_20' ) end [2025-01-11 15:29:19] Production.INFO: ProcessCDR(1,14225182,1,1,2) [2025-01-11 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225182', 'tblTempUsageDetail_20' ) start [2025-01-11 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225182', 'tblTempUsageDetail_20' ) end [2025-01-11 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:29:23] Production.INFO: ==26832== Releasing lock... [2025-01-11 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:30:05 [end_date_ymd] => 2025-01-11 15:30:05 [RateCDR] => 1 ) [2025-01-11 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:30:05' and `end` < '2025-01-11 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:30:19] Production.INFO: count ==1586 [2025-01-11 15:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:30:05 - End Time 2025-01-11 15:30:05 [2025-01-11 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225188', 'tblTempUsageDetail_20' ) start [2025-01-11 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225188', 'tblTempUsageDetail_20' ) end [2025-01-11 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225188', 'tblTempVendorCDR_20' ) start [2025-01-11 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225188', 'tblTempVendorCDR_20' ) end [2025-01-11 15:30:19] Production.INFO: ProcessCDR(1,14225188,1,1,2) [2025-01-11 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225188', 'tblTempUsageDetail_20' ) start [2025-01-11 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225188', 'tblTempUsageDetail_20' ) end [2025-01-11 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:30:22] Production.INFO: ==26915== Releasing lock... [2025-01-11 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:30:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:31:05 [end_date_ymd] => 2025-01-11 15:31:05 [RateCDR] => 1 ) [2025-01-11 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:31:05' and `end` < '2025-01-11 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:31:18] Production.INFO: count ==1582 [2025-01-11 15:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:31:05 - End Time 2025-01-11 15:31:05 [2025-01-11 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225193', 'tblTempUsageDetail_20' ) start [2025-01-11 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225193', 'tblTempUsageDetail_20' ) end [2025-01-11 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225193', 'tblTempVendorCDR_20' ) start [2025-01-11 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225193', 'tblTempVendorCDR_20' ) end [2025-01-11 15:31:19] Production.INFO: ProcessCDR(1,14225193,1,1,2) [2025-01-11 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225193', 'tblTempUsageDetail_20' ) start [2025-01-11 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225193', 'tblTempUsageDetail_20' ) end [2025-01-11 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:31:22] Production.INFO: ==26993== Releasing lock... [2025-01-11 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:31:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:32:04 [end_date_ymd] => 2025-01-11 15:32:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:32:04' and `end` < '2025-01-11 15: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-11 15:32:18] Production.INFO: count ==1583 [2025-01-11 15:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:32:04 - End Time 2025-01-11 15:32:04 [2025-01-11 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225198', 'tblTempUsageDetail_20' ) start [2025-01-11 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225198', 'tblTempUsageDetail_20' ) end [2025-01-11 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225198', 'tblTempVendorCDR_20' ) start [2025-01-11 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225198', 'tblTempVendorCDR_20' ) end [2025-01-11 15:32:19] Production.INFO: ProcessCDR(1,14225198,1,1,2) [2025-01-11 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225198', 'tblTempUsageDetail_20' ) start [2025-01-11 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225198', 'tblTempUsageDetail_20' ) end [2025-01-11 15:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:32:23] Production.INFO: ==27074== Releasing lock... [2025-01-11 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:32:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:33:05 [end_date_ymd] => 2025-01-11 15:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:33:05' and `end` < '2025-01-11 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-11 15:33:19] Production.INFO: count ==1580 [2025-01-11 15:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:33:05 - End Time 2025-01-11 15:33:05 [2025-01-11 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225203', 'tblTempUsageDetail_20' ) start [2025-01-11 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225203', 'tblTempUsageDetail_20' ) end [2025-01-11 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225203', 'tblTempVendorCDR_20' ) start [2025-01-11 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225203', 'tblTempVendorCDR_20' ) end [2025-01-11 15:33:19] Production.INFO: ProcessCDR(1,14225203,1,1,2) [2025-01-11 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225203', 'tblTempUsageDetail_20' ) start [2025-01-11 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225203', 'tblTempUsageDetail_20' ) end [2025-01-11 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:33:22] Production.INFO: ==27163== Releasing lock... [2025-01-11 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:34:05 [end_date_ymd] => 2025-01-11 15:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:34:05' and `end` < '2025-01-11 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-11 15:34:24] Production.INFO: count ==1579 [2025-01-11 15:34:24] Production.ERROR: pbx CDR StartTime 2025-01-11 12:34:05 - End Time 2025-01-11 15:34:05 [2025-01-11 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225208', 'tblTempUsageDetail_20' ) start [2025-01-11 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225208', 'tblTempUsageDetail_20' ) end [2025-01-11 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225208', 'tblTempVendorCDR_20' ) start [2025-01-11 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225208', 'tblTempVendorCDR_20' ) end [2025-01-11 15:34:24] Production.INFO: ProcessCDR(1,14225208,1,1,2) [2025-01-11 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225208', 'tblTempUsageDetail_20' ) start [2025-01-11 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225208', 'tblTempUsageDetail_20' ) end [2025-01-11 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:34:27] Production.INFO: ==27297== Releasing lock... [2025-01-11 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:34:27] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:35:05 [end_date_ymd] => 2025-01-11 15:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:35:05' and `end` < '2025-01-11 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-11 15:35:18] Production.INFO: count ==1579 [2025-01-11 15:35:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:35:05 - End Time 2025-01-11 15:35:05 [2025-01-11 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225213', 'tblTempUsageDetail_20' ) start [2025-01-11 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225213', 'tblTempUsageDetail_20' ) end [2025-01-11 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225213', 'tblTempVendorCDR_20' ) start [2025-01-11 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225213', 'tblTempVendorCDR_20' ) end [2025-01-11 15:35:19] Production.INFO: ProcessCDR(1,14225213,1,1,2) [2025-01-11 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225213', 'tblTempUsageDetail_20' ) start [2025-01-11 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225213', 'tblTempUsageDetail_20' ) end [2025-01-11 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:35:23] Production.INFO: ==27431== Releasing lock... [2025-01-11 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:35:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:36:04 [end_date_ymd] => 2025-01-11 15:36:04 [RateCDR] => 1 ) [2025-01-11 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-11 12:36:04' and `end` < '2025-01-11 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-11 15:36:18] Production.INFO: count ==1576 [2025-01-11 15:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:36:04 - End Time 2025-01-11 15:36:04 [2025-01-11 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225218', 'tblTempUsageDetail_20' ) start [2025-01-11 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225218', 'tblTempUsageDetail_20' ) end [2025-01-11 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225218', 'tblTempVendorCDR_20' ) start [2025-01-11 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225218', 'tblTempVendorCDR_20' ) end [2025-01-11 15:36:18] Production.INFO: ProcessCDR(1,14225218,1,1,2) [2025-01-11 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225218', 'tblTempUsageDetail_20' ) start [2025-01-11 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225218', 'tblTempUsageDetail_20' ) end [2025-01-11 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:36:21] Production.INFO: ==27595== Releasing lock... [2025-01-11 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:36:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:37:05 [end_date_ymd] => 2025-01-11 15:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:37:05' and `end` < '2025-01-11 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-11 15:37:20] Production.INFO: count ==1582 [2025-01-11 15:37:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:37:05 - End Time 2025-01-11 15:37:05 [2025-01-11 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225223', 'tblTempUsageDetail_20' ) start [2025-01-11 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225223', 'tblTempUsageDetail_20' ) end [2025-01-11 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225223', 'tblTempVendorCDR_20' ) start [2025-01-11 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225223', 'tblTempVendorCDR_20' ) end [2025-01-11 15:37:20] Production.INFO: ProcessCDR(1,14225223,1,1,2) [2025-01-11 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225223', 'tblTempUsageDetail_20' ) start [2025-01-11 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225223', 'tblTempUsageDetail_20' ) end [2025-01-11 15:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:37:24] Production.INFO: ==27721== Releasing lock... [2025-01-11 15:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:37:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:38:05 [end_date_ymd] => 2025-01-11 15:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:38:05' and `end` < '2025-01-11 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-11 15:38:18] Production.INFO: count ==1587 [2025-01-11 15:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:38:05 - End Time 2025-01-11 15:38:05 [2025-01-11 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225228', 'tblTempUsageDetail_20' ) start [2025-01-11 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225228', 'tblTempUsageDetail_20' ) end [2025-01-11 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225228', 'tblTempVendorCDR_20' ) start [2025-01-11 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225228', 'tblTempVendorCDR_20' ) end [2025-01-11 15:38:19] Production.INFO: ProcessCDR(1,14225228,1,1,2) [2025-01-11 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225228', 'tblTempUsageDetail_20' ) start [2025-01-11 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225228', 'tblTempUsageDetail_20' ) end [2025-01-11 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:38:24] Production.INFO: ==27855== Releasing lock... [2025-01-11 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:38:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:39:04 [end_date_ymd] => 2025-01-11 15:39:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:39:04' and `end` < '2025-01-11 15: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-11 15:39:18] Production.INFO: count ==1586 [2025-01-11 15:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:39:04 - End Time 2025-01-11 15:39:04 [2025-01-11 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225233', 'tblTempUsageDetail_20' ) start [2025-01-11 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225233', 'tblTempUsageDetail_20' ) end [2025-01-11 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225233', 'tblTempVendorCDR_20' ) start [2025-01-11 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225233', 'tblTempVendorCDR_20' ) end [2025-01-11 15:39:18] Production.INFO: ProcessCDR(1,14225233,1,1,2) [2025-01-11 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225233', 'tblTempUsageDetail_20' ) start [2025-01-11 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225233', 'tblTempUsageDetail_20' ) end [2025-01-11 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:39:22] Production.INFO: ==27981== Releasing lock... [2025-01-11 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:39:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:40:05 [end_date_ymd] => 2025-01-11 15:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:40:05' and `end` < '2025-01-11 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-11 15:40:19] Production.INFO: count ==1595 [2025-01-11 15:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:40:05 - End Time 2025-01-11 15:40:05 [2025-01-11 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225238', 'tblTempUsageDetail_20' ) start [2025-01-11 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225238', 'tblTempUsageDetail_20' ) end [2025-01-11 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225238', 'tblTempVendorCDR_20' ) start [2025-01-11 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225238', 'tblTempVendorCDR_20' ) end [2025-01-11 15:40:19] Production.INFO: ProcessCDR(1,14225238,1,1,2) [2025-01-11 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225238', 'tblTempUsageDetail_20' ) start [2025-01-11 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225238', 'tblTempUsageDetail_20' ) end [2025-01-11 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:40:24] Production.INFO: ==28111== Releasing lock... [2025-01-11 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:40:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:41:04 [end_date_ymd] => 2025-01-11 15:41:04 [RateCDR] => 1 ) [2025-01-11 15:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:41:04' and `end` < '2025-01-11 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:41:19] Production.INFO: count ==1601 [2025-01-11 15:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:41:04 - End Time 2025-01-11 15:41:04 [2025-01-11 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225244', 'tblTempUsageDetail_20' ) start [2025-01-11 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225244', 'tblTempUsageDetail_20' ) end [2025-01-11 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225244', 'tblTempVendorCDR_20' ) start [2025-01-11 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225244', 'tblTempVendorCDR_20' ) end [2025-01-11 15:41:20] Production.INFO: ProcessCDR(1,14225244,1,1,2) [2025-01-11 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225244', 'tblTempUsageDetail_20' ) start [2025-01-11 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225244', 'tblTempUsageDetail_20' ) end [2025-01-11 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:41:23] Production.INFO: ==28243== Releasing lock... [2025-01-11 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:41:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:42:05 [end_date_ymd] => 2025-01-11 15:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:42:05' and `end` < '2025-01-11 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-11 15:42:19] Production.INFO: count ==1601 [2025-01-11 15:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:42:05 - End Time 2025-01-11 15:42:05 [2025-01-11 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225249', 'tblTempUsageDetail_20' ) start [2025-01-11 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225249', 'tblTempUsageDetail_20' ) end [2025-01-11 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225249', 'tblTempVendorCDR_20' ) start [2025-01-11 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225249', 'tblTempVendorCDR_20' ) end [2025-01-11 15:42:19] Production.INFO: ProcessCDR(1,14225249,1,1,2) [2025-01-11 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225249', 'tblTempUsageDetail_20' ) start [2025-01-11 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225249', 'tblTempUsageDetail_20' ) end [2025-01-11 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:42:23] Production.INFO: ==28375== Releasing lock... [2025-01-11 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:43:04 [end_date_ymd] => 2025-01-11 15:43:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:43:04' and `end` < '2025-01-11 15: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-11 15:43:17] Production.INFO: count ==1604 [2025-01-11 15:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:43:04 - End Time 2025-01-11 15:43:04 [2025-01-11 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225254', 'tblTempUsageDetail_20' ) start [2025-01-11 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225254', 'tblTempUsageDetail_20' ) end [2025-01-11 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225254', 'tblTempVendorCDR_20' ) start [2025-01-11 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225254', 'tblTempVendorCDR_20' ) end [2025-01-11 15:43:18] Production.INFO: ProcessCDR(1,14225254,1,1,2) [2025-01-11 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225254', 'tblTempUsageDetail_20' ) start [2025-01-11 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225254', 'tblTempUsageDetail_20' ) end [2025-01-11 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:43:23] Production.INFO: ==28510== Releasing lock... [2025-01-11 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:44:05 [end_date_ymd] => 2025-01-11 15:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:44:05' and `end` < '2025-01-11 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-11 15:44:19] Production.INFO: count ==1604 [2025-01-11 15:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:44:05 - End Time 2025-01-11 15:44:05 [2025-01-11 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225259', 'tblTempUsageDetail_20' ) start [2025-01-11 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225259', 'tblTempUsageDetail_20' ) end [2025-01-11 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225259', 'tblTempVendorCDR_20' ) start [2025-01-11 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225259', 'tblTempVendorCDR_20' ) end [2025-01-11 15:44:19] Production.INFO: ProcessCDR(1,14225259,1,1,2) [2025-01-11 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225259', 'tblTempUsageDetail_20' ) start [2025-01-11 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225259', 'tblTempUsageDetail_20' ) end [2025-01-11 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:44:24] Production.INFO: ==28644== Releasing lock... [2025-01-11 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:44:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:45:04 [end_date_ymd] => 2025-01-11 15:45:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:45:04' and `end` < '2025-01-11 15: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-11 15:45:18] Production.INFO: count ==1608 [2025-01-11 15:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:45:04 - End Time 2025-01-11 15:45:04 [2025-01-11 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225264', 'tblTempUsageDetail_20' ) start [2025-01-11 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225264', 'tblTempUsageDetail_20' ) end [2025-01-11 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225264', 'tblTempVendorCDR_20' ) start [2025-01-11 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225264', 'tblTempVendorCDR_20' ) end [2025-01-11 15:45:18] Production.INFO: ProcessCDR(1,14225264,1,1,2) [2025-01-11 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225264', 'tblTempUsageDetail_20' ) start [2025-01-11 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225264', 'tblTempUsageDetail_20' ) end [2025-01-11 15:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:45:23] Production.INFO: ==28781== Releasing lock... [2025-01-11 15:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:45:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:46:05 [end_date_ymd] => 2025-01-11 15:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:46:05' and `end` < '2025-01-11 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-11 15:46:18] Production.INFO: count ==1604 [2025-01-11 15:46:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:46:05 - End Time 2025-01-11 15:46:05 [2025-01-11 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225269', 'tblTempUsageDetail_20' ) start [2025-01-11 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225269', 'tblTempUsageDetail_20' ) end [2025-01-11 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225269', 'tblTempVendorCDR_20' ) start [2025-01-11 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225269', 'tblTempVendorCDR_20' ) end [2025-01-11 15:46:18] Production.INFO: ProcessCDR(1,14225269,1,1,2) [2025-01-11 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225269', 'tblTempUsageDetail_20' ) start [2025-01-11 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225269', 'tblTempUsageDetail_20' ) end [2025-01-11 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:46:23] Production.INFO: ==28916== Releasing lock... [2025-01-11 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:46:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:47:04 [end_date_ymd] => 2025-01-11 15:47:04 [RateCDR] => 1 ) [2025-01-11 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:47:04' and `end` < '2025-01-11 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:47:17] Production.INFO: count ==1603 [2025-01-11 15:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:47:04 - End Time 2025-01-11 15:47:04 [2025-01-11 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225274', 'tblTempUsageDetail_20' ) start [2025-01-11 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225274', 'tblTempUsageDetail_20' ) end [2025-01-11 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225274', 'tblTempVendorCDR_20' ) start [2025-01-11 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225274', 'tblTempVendorCDR_20' ) end [2025-01-11 15:47:18] Production.INFO: ProcessCDR(1,14225274,1,1,2) [2025-01-11 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225274', 'tblTempUsageDetail_20' ) start [2025-01-11 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225274', 'tblTempUsageDetail_20' ) end [2025-01-11 15:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:47:21] Production.INFO: ==29052== Releasing lock... [2025-01-11 15:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:47:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:48:05 [end_date_ymd] => 2025-01-11 15:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:48:05' and `end` < '2025-01-11 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-11 15:48:18] Production.INFO: count ==1606 [2025-01-11 15:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:48:05 - End Time 2025-01-11 15:48:05 [2025-01-11 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225279', 'tblTempUsageDetail_20' ) start [2025-01-11 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225279', 'tblTempUsageDetail_20' ) end [2025-01-11 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225279', 'tblTempVendorCDR_20' ) start [2025-01-11 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225279', 'tblTempVendorCDR_20' ) end [2025-01-11 15:48:19] Production.INFO: ProcessCDR(1,14225279,1,1,2) [2025-01-11 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225279', 'tblTempUsageDetail_20' ) start [2025-01-11 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225279', 'tblTempUsageDetail_20' ) end [2025-01-11 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:48:23] Production.INFO: ==29189== Releasing lock... [2025-01-11 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:49:05 [end_date_ymd] => 2025-01-11 15:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:49:05' and `end` < '2025-01-11 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-11 15:49:18] Production.INFO: count ==1613 [2025-01-11 15:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:49:05 - End Time 2025-01-11 15:49:05 [2025-01-11 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225284', 'tblTempUsageDetail_20' ) start [2025-01-11 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225284', 'tblTempUsageDetail_20' ) end [2025-01-11 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225284', 'tblTempVendorCDR_20' ) start [2025-01-11 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225284', 'tblTempVendorCDR_20' ) end [2025-01-11 15:49:18] Production.INFO: ProcessCDR(1,14225284,1,1,2) [2025-01-11 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225284', 'tblTempUsageDetail_20' ) start [2025-01-11 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225284', 'tblTempUsageDetail_20' ) end [2025-01-11 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:49:23] Production.INFO: ==29326== Releasing lock... [2025-01-11 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:50:06 [end_date_ymd] => 2025-01-11 15:50:06 [RateCDR] => 1 ) [2025-01-11 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:50:06' and `end` < '2025-01-11 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:50:19] Production.INFO: count ==1614 [2025-01-11 15:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:50:06 - End Time 2025-01-11 15:50:06 [2025-01-11 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225290', 'tblTempUsageDetail_20' ) start [2025-01-11 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225290', 'tblTempUsageDetail_20' ) end [2025-01-11 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225290', 'tblTempVendorCDR_20' ) start [2025-01-11 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225290', 'tblTempVendorCDR_20' ) end [2025-01-11 15:50:20] Production.INFO: ProcessCDR(1,14225290,1,1,2) [2025-01-11 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225290', 'tblTempUsageDetail_20' ) start [2025-01-11 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225290', 'tblTempUsageDetail_20' ) end [2025-01-11 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:50:23] Production.INFO: ==29466== Releasing lock... [2025-01-11 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:50:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:51:05 [end_date_ymd] => 2025-01-11 15:51:05 [RateCDR] => 1 ) [2025-01-11 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:51:05' and `end` < '2025-01-11 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:51:18] Production.INFO: count ==1636 [2025-01-11 15:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:51:05 - End Time 2025-01-11 15:51:05 [2025-01-11 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225295', 'tblTempUsageDetail_20' ) start [2025-01-11 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225295', 'tblTempUsageDetail_20' ) end [2025-01-11 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225295', 'tblTempVendorCDR_20' ) start [2025-01-11 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225295', 'tblTempVendorCDR_20' ) end [2025-01-11 15:51:19] Production.INFO: ProcessCDR(1,14225295,1,1,2) [2025-01-11 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225295', 'tblTempUsageDetail_20' ) start [2025-01-11 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225295', 'tblTempUsageDetail_20' ) end [2025-01-11 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:51:23] Production.INFO: ==29601== Releasing lock... [2025-01-11 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:51:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:52:04 [end_date_ymd] => 2025-01-11 15:52:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:52:04' and `end` < '2025-01-11 15: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-11 15:52:18] Production.INFO: count ==1636 [2025-01-11 15:52:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:52:04 - End Time 2025-01-11 15:52:04 [2025-01-11 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225300', 'tblTempUsageDetail_20' ) start [2025-01-11 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225300', 'tblTempUsageDetail_20' ) end [2025-01-11 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225300', 'tblTempVendorCDR_20' ) start [2025-01-11 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225300', 'tblTempVendorCDR_20' ) end [2025-01-11 15:52:18] Production.INFO: ProcessCDR(1,14225300,1,1,2) [2025-01-11 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225300', 'tblTempUsageDetail_20' ) start [2025-01-11 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225300', 'tblTempUsageDetail_20' ) end [2025-01-11 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:52:21] Production.INFO: ==29739== Releasing lock... [2025-01-11 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:52:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:53:05 [end_date_ymd] => 2025-01-11 15:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:53:05' and `end` < '2025-01-11 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-11 15:53:19] Production.INFO: count ==1635 [2025-01-11 15:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:53:05 - End Time 2025-01-11 15:53:05 [2025-01-11 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225305', 'tblTempUsageDetail_20' ) start [2025-01-11 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225305', 'tblTempUsageDetail_20' ) end [2025-01-11 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225305', 'tblTempVendorCDR_20' ) start [2025-01-11 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225305', 'tblTempVendorCDR_20' ) end [2025-01-11 15:53:19] Production.INFO: ProcessCDR(1,14225305,1,1,2) [2025-01-11 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225305', 'tblTempUsageDetail_20' ) start [2025-01-11 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225305', 'tblTempUsageDetail_20' ) end [2025-01-11 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:53:24] Production.INFO: ==29832== Releasing lock... [2025-01-11 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:54:05 [end_date_ymd] => 2025-01-11 15:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:54:05' and `end` < '2025-01-11 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-11 15:54:19] Production.INFO: count ==1633 [2025-01-11 15:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:54:05 - End Time 2025-01-11 15:54:05 [2025-01-11 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225310', 'tblTempUsageDetail_20' ) start [2025-01-11 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225310', 'tblTempUsageDetail_20' ) end [2025-01-11 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225310', 'tblTempVendorCDR_20' ) start [2025-01-11 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225310', 'tblTempVendorCDR_20' ) end [2025-01-11 15:54:19] Production.INFO: ProcessCDR(1,14225310,1,1,2) [2025-01-11 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225310', 'tblTempUsageDetail_20' ) start [2025-01-11 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225310', 'tblTempUsageDetail_20' ) end [2025-01-11 15:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:54:22] Production.INFO: ==29923== Releasing lock... [2025-01-11 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:54:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:55:05 [end_date_ymd] => 2025-01-11 15:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:55:05' and `end` < '2025-01-11 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-11 15:55:18] Production.INFO: count ==1630 [2025-01-11 15:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:55:05 - End Time 2025-01-11 15:55:05 [2025-01-11 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225315', 'tblTempUsageDetail_20' ) start [2025-01-11 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225315', 'tblTempUsageDetail_20' ) end [2025-01-11 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225315', 'tblTempVendorCDR_20' ) start [2025-01-11 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225315', 'tblTempVendorCDR_20' ) end [2025-01-11 15:55:19] Production.INFO: ProcessCDR(1,14225315,1,1,2) [2025-01-11 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225315', 'tblTempUsageDetail_20' ) start [2025-01-11 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225315', 'tblTempUsageDetail_20' ) end [2025-01-11 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:55:23] Production.INFO: ==30014== Releasing lock... [2025-01-11 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:55:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:56:06 [end_date_ymd] => 2025-01-11 15:56:06 [RateCDR] => 1 ) [2025-01-11 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:56:06' and `end` < '2025-01-11 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:56:19] Production.INFO: count ==1634 [2025-01-11 15:56:20] Production.ERROR: pbx CDR StartTime 2025-01-11 12:56:06 - End Time 2025-01-11 15:56:06 [2025-01-11 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225320', 'tblTempUsageDetail_20' ) start [2025-01-11 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225320', 'tblTempUsageDetail_20' ) end [2025-01-11 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225320', 'tblTempVendorCDR_20' ) start [2025-01-11 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225320', 'tblTempVendorCDR_20' ) end [2025-01-11 15:56:20] Production.INFO: ProcessCDR(1,14225320,1,1,2) [2025-01-11 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225320', 'tblTempUsageDetail_20' ) start [2025-01-11 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225320', 'tblTempUsageDetail_20' ) end [2025-01-11 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:56:23] Production.INFO: ==30105== Releasing lock... [2025-01-11 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:56:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:57:05 [end_date_ymd] => 2025-01-11 15:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 12:57:05' and `end` < '2025-01-11 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-11 15:57:19] Production.INFO: count ==1634 [2025-01-11 15:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:57:05 - End Time 2025-01-11 15:57:05 [2025-01-11 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225325', 'tblTempUsageDetail_20' ) start [2025-01-11 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225325', 'tblTempUsageDetail_20' ) end [2025-01-11 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225325', 'tblTempVendorCDR_20' ) start [2025-01-11 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225325', 'tblTempVendorCDR_20' ) end [2025-01-11 15:57:19] Production.INFO: ProcessCDR(1,14225325,1,1,2) [2025-01-11 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225325', 'tblTempUsageDetail_20' ) start [2025-01-11 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225325', 'tblTempUsageDetail_20' ) end [2025-01-11 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:57:22] Production.INFO: ==30201== Releasing lock... [2025-01-11 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:57:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:58:05 [end_date_ymd] => 2025-01-11 15:58:05 [RateCDR] => 1 ) [2025-01-11 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 12:58:05' and `end` < '2025-01-11 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 15:58:18] Production.INFO: count ==1633 [2025-01-11 15:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 12:58:05 - End Time 2025-01-11 15:58:05 [2025-01-11 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225327', 'tblTempUsageDetail_20' ) start [2025-01-11 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225327', 'tblTempUsageDetail_20' ) end [2025-01-11 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225327', 'tblTempVendorCDR_20' ) start [2025-01-11 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225327', 'tblTempVendorCDR_20' ) end [2025-01-11 15:58:18] Production.INFO: ProcessCDR(1,14225327,1,1,2) [2025-01-11 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225327', 'tblTempUsageDetail_20' ) start [2025-01-11 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225327', 'tblTempUsageDetail_20' ) end [2025-01-11 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:58:23] Production.INFO: ==30290== Releasing lock... [2025-01-11 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:58:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 12:59:04 [end_date_ymd] => 2025-01-11 15:59:04 [RateCDR] => 1 ) [2025-01-11 15: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-11 12:59:04' and `end` < '2025-01-11 15: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-11 15:59:19] Production.INFO: count ==1633 [2025-01-11 15:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 12:59:04 - End Time 2025-01-11 15:59:04 [2025-01-11 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225335', 'tblTempUsageDetail_20' ) start [2025-01-11 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225335', 'tblTempUsageDetail_20' ) end [2025-01-11 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225335', 'tblTempVendorCDR_20' ) start [2025-01-11 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225335', 'tblTempVendorCDR_20' ) end [2025-01-11 15:59:19] Production.INFO: ProcessCDR(1,14225335,1,1,2) [2025-01-11 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225335', 'tblTempUsageDetail_20' ) start [2025-01-11 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225335', 'tblTempUsageDetail_20' ) end [2025-01-11 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 15:59:22] Production.INFO: ==30383== Releasing lock... [2025-01-11 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 15:59:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:00:06 [end_date_ymd] => 2025-01-11 16:00:06 [RateCDR] => 1 ) [2025-01-11 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:00:06' and `end` < '2025-01-11 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:00:19] Production.INFO: count ==1622 [2025-01-11 16:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:00:06 - End Time 2025-01-11 16:00:06 [2025-01-11 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225341', 'tblTempUsageDetail_20' ) start [2025-01-11 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225341', 'tblTempUsageDetail_20' ) end [2025-01-11 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225341', 'tblTempVendorCDR_20' ) start [2025-01-11 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225341', 'tblTempVendorCDR_20' ) end [2025-01-11 16:00:20] Production.INFO: ProcessCDR(1,14225341,1,1,2) [2025-01-11 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225341', 'tblTempUsageDetail_20' ) start [2025-01-11 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225341', 'tblTempUsageDetail_20' ) end [2025-01-11 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:00:23] Production.INFO: ==30466== Releasing lock... [2025-01-11 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:00:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:01:04 [end_date_ymd] => 2025-01-11 16:01:04 [RateCDR] => 1 ) [2025-01-11 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:01:04' and `end` < '2025-01-11 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:01:19] Production.INFO: count ==1602 [2025-01-11 16:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:01:04 - End Time 2025-01-11 16:01:04 [2025-01-11 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225346', 'tblTempUsageDetail_20' ) start [2025-01-11 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225346', 'tblTempUsageDetail_20' ) end [2025-01-11 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225346', 'tblTempVendorCDR_20' ) start [2025-01-11 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225346', 'tblTempVendorCDR_20' ) end [2025-01-11 16:01:19] Production.INFO: ProcessCDR(1,14225346,1,1,2) [2025-01-11 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225346', 'tblTempUsageDetail_20' ) start [2025-01-11 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225346', 'tblTempUsageDetail_20' ) end [2025-01-11 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:01:23] Production.INFO: ==30567== Releasing lock... [2025-01-11 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:01:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:02:05 [end_date_ymd] => 2025-01-11 16:02:05 [RateCDR] => 1 ) [2025-01-11 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:02:05' and `end` < '2025-01-11 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:02:19] Production.INFO: count ==1599 [2025-01-11 16:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:02:05 - End Time 2025-01-11 16:02:05 [2025-01-11 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225351', 'tblTempUsageDetail_20' ) start [2025-01-11 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225351', 'tblTempUsageDetail_20' ) end [2025-01-11 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225351', 'tblTempVendorCDR_20' ) start [2025-01-11 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225351', 'tblTempVendorCDR_20' ) end [2025-01-11 16:02:19] Production.INFO: ProcessCDR(1,14225351,1,1,2) [2025-01-11 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225351', 'tblTempUsageDetail_20' ) start [2025-01-11 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225351', 'tblTempUsageDetail_20' ) end [2025-01-11 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:02:23] Production.INFO: ==30654== Releasing lock... [2025-01-11 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:02:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:03:04 [end_date_ymd] => 2025-01-11 16:03:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:03:04' and `end` < '2025-01-11 16: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-11 16:03:19] Production.INFO: count ==1597 [2025-01-11 16:03:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:03:04 - End Time 2025-01-11 16:03:04 [2025-01-11 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225356', 'tblTempUsageDetail_20' ) start [2025-01-11 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225356', 'tblTempUsageDetail_20' ) end [2025-01-11 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225356', 'tblTempVendorCDR_20' ) start [2025-01-11 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225356', 'tblTempVendorCDR_20' ) end [2025-01-11 16:03:19] Production.INFO: ProcessCDR(1,14225356,1,1,2) [2025-01-11 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225356', 'tblTempUsageDetail_20' ) start [2025-01-11 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225356', 'tblTempUsageDetail_20' ) end [2025-01-11 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:03:23] Production.INFO: ==30748== Releasing lock... [2025-01-11 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:03:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:04:05 [end_date_ymd] => 2025-01-11 16:04:05 [RateCDR] => 1 ) [2025-01-11 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:04:05' and `end` < '2025-01-11 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:04:18] Production.INFO: count ==1595 [2025-01-11 16:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:04:05 - End Time 2025-01-11 16:04:05 [2025-01-11 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225361', 'tblTempUsageDetail_20' ) start [2025-01-11 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225361', 'tblTempUsageDetail_20' ) end [2025-01-11 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225361', 'tblTempVendorCDR_20' ) start [2025-01-11 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225361', 'tblTempVendorCDR_20' ) end [2025-01-11 16:04:19] Production.INFO: ProcessCDR(1,14225361,1,1,2) [2025-01-11 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225361', 'tblTempUsageDetail_20' ) start [2025-01-11 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225361', 'tblTempUsageDetail_20' ) end [2025-01-11 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:04:22] Production.INFO: ==30850== Releasing lock... [2025-01-11 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:04:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:05:04 [end_date_ymd] => 2025-01-11 16:05:04 [RateCDR] => 1 ) [2025-01-11 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-11 13:05:04' and `end` < '2025-01-11 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-11 16:05:17] Production.INFO: count ==1596 [2025-01-11 16:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:05:04 - End Time 2025-01-11 16:05:04 [2025-01-11 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225366', 'tblTempUsageDetail_20' ) start [2025-01-11 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225366', 'tblTempUsageDetail_20' ) end [2025-01-11 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225366', 'tblTempVendorCDR_20' ) start [2025-01-11 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225366', 'tblTempVendorCDR_20' ) end [2025-01-11 16:05:18] Production.INFO: ProcessCDR(1,14225366,1,1,2) [2025-01-11 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225366', 'tblTempUsageDetail_20' ) start [2025-01-11 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225366', 'tblTempUsageDetail_20' ) end [2025-01-11 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:05:22] Production.INFO: ==30943== Releasing lock... [2025-01-11 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:05:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:06:05 [end_date_ymd] => 2025-01-11 16:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:06:05' and `end` < '2025-01-11 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-11 16:06:19] Production.INFO: count ==1592 [2025-01-11 16:06:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:06:05 - End Time 2025-01-11 16:06:05 [2025-01-11 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225371', 'tblTempUsageDetail_20' ) start [2025-01-11 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225371', 'tblTempUsageDetail_20' ) end [2025-01-11 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225371', 'tblTempVendorCDR_20' ) start [2025-01-11 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225371', 'tblTempVendorCDR_20' ) end [2025-01-11 16:06:20] Production.INFO: ProcessCDR(1,14225371,1,1,2) [2025-01-11 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225371', 'tblTempUsageDetail_20' ) start [2025-01-11 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225371', 'tblTempUsageDetail_20' ) end [2025-01-11 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:06:23] Production.INFO: ==31029== Releasing lock... [2025-01-11 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:06:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:07:05 [end_date_ymd] => 2025-01-11 16:07:05 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:07:05' and `end` < '2025-01-11 16: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-11 16:07:20] Production.INFO: count ==1589 [2025-01-11 16:07:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:07:05 - End Time 2025-01-11 16:07:05 [2025-01-11 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225376', 'tblTempUsageDetail_20' ) start [2025-01-11 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225376', 'tblTempUsageDetail_20' ) end [2025-01-11 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225376', 'tblTempVendorCDR_20' ) start [2025-01-11 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225376', 'tblTempVendorCDR_20' ) end [2025-01-11 16:07:20] Production.INFO: ProcessCDR(1,14225376,1,1,2) [2025-01-11 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225376', 'tblTempUsageDetail_20' ) start [2025-01-11 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225376', 'tblTempUsageDetail_20' ) end [2025-01-11 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:07:23] Production.INFO: ==31113== Releasing lock... [2025-01-11 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:07:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:08:05 [end_date_ymd] => 2025-01-11 16:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:08:05' and `end` < '2025-01-11 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-11 16:08:19] Production.INFO: count ==1592 [2025-01-11 16:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:08:05 - End Time 2025-01-11 16:08:05 [2025-01-11 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225381', 'tblTempUsageDetail_20' ) start [2025-01-11 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225381', 'tblTempUsageDetail_20' ) end [2025-01-11 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225381', 'tblTempVendorCDR_20' ) start [2025-01-11 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225381', 'tblTempVendorCDR_20' ) end [2025-01-11 16:08:20] Production.INFO: ProcessCDR(1,14225381,1,1,2) [2025-01-11 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225381', 'tblTempUsageDetail_20' ) start [2025-01-11 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225381', 'tblTempUsageDetail_20' ) end [2025-01-11 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:08:24] Production.INFO: ==31245== Releasing lock... [2025-01-11 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:08:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:09:05 [end_date_ymd] => 2025-01-11 16:09:05 [RateCDR] => 1 ) [2025-01-11 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:09:05' and `end` < '2025-01-11 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:09:18] Production.INFO: count ==1593 [2025-01-11 16:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:09:05 - End Time 2025-01-11 16:09:05 [2025-01-11 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225386', 'tblTempUsageDetail_20' ) start [2025-01-11 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225386', 'tblTempUsageDetail_20' ) end [2025-01-11 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225386', 'tblTempVendorCDR_20' ) start [2025-01-11 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225386', 'tblTempVendorCDR_20' ) end [2025-01-11 16:09:19] Production.INFO: ProcessCDR(1,14225386,1,1,2) [2025-01-11 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225386', 'tblTempUsageDetail_20' ) start [2025-01-11 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225386', 'tblTempUsageDetail_20' ) end [2025-01-11 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:09:23] Production.INFO: ==31333== Releasing lock... [2025-01-11 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:10:05 [end_date_ymd] => 2025-01-11 16:10:05 [RateCDR] => 1 ) [2025-01-11 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:10:05' and `end` < '2025-01-11 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:10:18] Production.INFO: count ==1593 [2025-01-11 16:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:10:05 - End Time 2025-01-11 16:10:05 [2025-01-11 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225391', 'tblTempUsageDetail_20' ) start [2025-01-11 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225391', 'tblTempUsageDetail_20' ) end [2025-01-11 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225391', 'tblTempVendorCDR_20' ) start [2025-01-11 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225391', 'tblTempVendorCDR_20' ) end [2025-01-11 16:10:18] Production.INFO: ProcessCDR(1,14225391,1,1,2) [2025-01-11 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225391', 'tblTempUsageDetail_20' ) start [2025-01-11 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225391', 'tblTempUsageDetail_20' ) end [2025-01-11 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:10:23] Production.INFO: ==31429== Releasing lock... [2025-01-11 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:10:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:11:05 [end_date_ymd] => 2025-01-11 16:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:11:05' and `end` < '2025-01-11 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-11 16:11:19] Production.INFO: count ==1615 [2025-01-11 16:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:11:05 - End Time 2025-01-11 16:11:05 [2025-01-11 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225397', 'tblTempUsageDetail_20' ) start [2025-01-11 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225397', 'tblTempUsageDetail_20' ) end [2025-01-11 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225397', 'tblTempVendorCDR_20' ) start [2025-01-11 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225397', 'tblTempVendorCDR_20' ) end [2025-01-11 16:11:20] Production.INFO: ProcessCDR(1,14225397,1,1,2) [2025-01-11 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225397', 'tblTempUsageDetail_20' ) start [2025-01-11 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225397', 'tblTempUsageDetail_20' ) end [2025-01-11 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:11:24] Production.INFO: ==31524== Releasing lock... [2025-01-11 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:11:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:12:05 [end_date_ymd] => 2025-01-11 16:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:12:05' and `end` < '2025-01-11 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-11 16:12:19] Production.INFO: count ==1604 [2025-01-11 16:12:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:12:05 - End Time 2025-01-11 16:12:05 [2025-01-11 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225402', 'tblTempUsageDetail_20' ) start [2025-01-11 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225402', 'tblTempUsageDetail_20' ) end [2025-01-11 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225402', 'tblTempVendorCDR_20' ) start [2025-01-11 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225402', 'tblTempVendorCDR_20' ) end [2025-01-11 16:12:20] Production.INFO: ProcessCDR(1,14225402,1,1,2) [2025-01-11 16:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225402', 'tblTempUsageDetail_20' ) start [2025-01-11 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225402', 'tblTempUsageDetail_20' ) end [2025-01-11 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:12:24] Production.INFO: ==31615== Releasing lock... [2025-01-11 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:12:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:13:05 [end_date_ymd] => 2025-01-11 16:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:13:05' and `end` < '2025-01-11 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-11 16:13:18] Production.INFO: count ==1604 [2025-01-11 16:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:13:05 - End Time 2025-01-11 16:13:05 [2025-01-11 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225407', 'tblTempUsageDetail_20' ) start [2025-01-11 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225407', 'tblTempUsageDetail_20' ) end [2025-01-11 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225407', 'tblTempVendorCDR_20' ) start [2025-01-11 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225407', 'tblTempVendorCDR_20' ) end [2025-01-11 16:13:19] Production.INFO: ProcessCDR(1,14225407,1,1,2) [2025-01-11 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225407', 'tblTempUsageDetail_20' ) start [2025-01-11 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225407', 'tblTempUsageDetail_20' ) end [2025-01-11 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:13:23] Production.INFO: ==31721== Releasing lock... [2025-01-11 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:14:04 [end_date_ymd] => 2025-01-11 16:14:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:14:04' and `end` < '2025-01-11 16: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-11 16:14:19] Production.INFO: count ==1595 [2025-01-11 16:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:14:04 - End Time 2025-01-11 16:14:04 [2025-01-11 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225412', 'tblTempUsageDetail_20' ) start [2025-01-11 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225412', 'tblTempUsageDetail_20' ) end [2025-01-11 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225412', 'tblTempVendorCDR_20' ) start [2025-01-11 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225412', 'tblTempVendorCDR_20' ) end [2025-01-11 16:14:19] Production.INFO: ProcessCDR(1,14225412,1,1,2) [2025-01-11 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225412', 'tblTempUsageDetail_20' ) start [2025-01-11 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225412', 'tblTempUsageDetail_20' ) end [2025-01-11 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:14:24] Production.INFO: ==31824== Releasing lock... [2025-01-11 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:14:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:15:05 [end_date_ymd] => 2025-01-11 16:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:15:05' and `end` < '2025-01-11 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-11 16:15:18] Production.INFO: count ==1594 [2025-01-11 16:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:15:05 - End Time 2025-01-11 16:15:05 [2025-01-11 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225417', 'tblTempUsageDetail_20' ) start [2025-01-11 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225417', 'tblTempUsageDetail_20' ) end [2025-01-11 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225417', 'tblTempVendorCDR_20' ) start [2025-01-11 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225417', 'tblTempVendorCDR_20' ) end [2025-01-11 16:15:19] Production.INFO: ProcessCDR(1,14225417,1,1,2) [2025-01-11 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225417', 'tblTempUsageDetail_20' ) start [2025-01-11 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225417', 'tblTempUsageDetail_20' ) end [2025-01-11 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:15:23] Production.INFO: ==31925== Releasing lock... [2025-01-11 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:15:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:16:04 [end_date_ymd] => 2025-01-11 16:16:04 [RateCDR] => 1 ) [2025-01-11 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-11 13:16:04' and `end` < '2025-01-11 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-11 16:16:18] Production.INFO: count ==1593 [2025-01-11 16:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:16:04 - End Time 2025-01-11 16:16:04 [2025-01-11 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225422', 'tblTempUsageDetail_20' ) start [2025-01-11 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225422', 'tblTempUsageDetail_20' ) end [2025-01-11 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225422', 'tblTempVendorCDR_20' ) start [2025-01-11 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225422', 'tblTempVendorCDR_20' ) end [2025-01-11 16:16:18] Production.INFO: ProcessCDR(1,14225422,1,1,2) [2025-01-11 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225422', 'tblTempUsageDetail_20' ) start [2025-01-11 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225422', 'tblTempUsageDetail_20' ) end [2025-01-11 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:16:23] Production.INFO: ==32028== Releasing lock... [2025-01-11 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:16:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:17:05 [end_date_ymd] => 2025-01-11 16:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:17:05' and `end` < '2025-01-11 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-11 16:17:18] Production.INFO: count ==1595 [2025-01-11 16:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:17:05 - End Time 2025-01-11 16:17:05 [2025-01-11 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225427', 'tblTempUsageDetail_20' ) start [2025-01-11 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225427', 'tblTempUsageDetail_20' ) end [2025-01-11 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225427', 'tblTempVendorCDR_20' ) start [2025-01-11 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225427', 'tblTempVendorCDR_20' ) end [2025-01-11 16:17:19] Production.INFO: ProcessCDR(1,14225427,1,1,2) [2025-01-11 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225427', 'tblTempUsageDetail_20' ) start [2025-01-11 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225427', 'tblTempUsageDetail_20' ) end [2025-01-11 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:17:23] Production.INFO: ==32131== Releasing lock... [2025-01-11 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:17:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:18:05 [end_date_ymd] => 2025-01-11 16:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:18:05' and `end` < '2025-01-11 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-11 16:18:18] Production.INFO: count ==1594 [2025-01-11 16:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:18:05 - End Time 2025-01-11 16:18:05 [2025-01-11 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225432', 'tblTempUsageDetail_20' ) start [2025-01-11 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225432', 'tblTempUsageDetail_20' ) end [2025-01-11 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225432', 'tblTempVendorCDR_20' ) start [2025-01-11 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225432', 'tblTempVendorCDR_20' ) end [2025-01-11 16:18:19] Production.INFO: ProcessCDR(1,14225432,1,1,2) [2025-01-11 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225432', 'tblTempUsageDetail_20' ) start [2025-01-11 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225432', 'tblTempUsageDetail_20' ) end [2025-01-11 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:18:23] Production.INFO: ==32245== Releasing lock... [2025-01-11 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:18:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:19:04 [end_date_ymd] => 2025-01-11 16:19:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:19:04' and `end` < '2025-01-11 16: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-11 16:19:18] Production.INFO: count ==1588 [2025-01-11 16:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:19:04 - End Time 2025-01-11 16:19:04 [2025-01-11 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225437', 'tblTempUsageDetail_20' ) start [2025-01-11 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225437', 'tblTempUsageDetail_20' ) end [2025-01-11 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225437', 'tblTempVendorCDR_20' ) start [2025-01-11 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225437', 'tblTempVendorCDR_20' ) end [2025-01-11 16:19:18] Production.INFO: ProcessCDR(1,14225437,1,1,2) [2025-01-11 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225437', 'tblTempUsageDetail_20' ) start [2025-01-11 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225437', 'tblTempUsageDetail_20' ) end [2025-01-11 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:19:23] Production.INFO: ==32354== Releasing lock... [2025-01-11 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:19:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:20:05 [end_date_ymd] => 2025-01-11 16:20:05 [RateCDR] => 1 ) [2025-01-11 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:20:05' and `end` < '2025-01-11 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:20:19] Production.INFO: count ==1589 [2025-01-11 16:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:20:05 - End Time 2025-01-11 16:20:05 [2025-01-11 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225442', 'tblTempUsageDetail_20' ) start [2025-01-11 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225442', 'tblTempUsageDetail_20' ) end [2025-01-11 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225442', 'tblTempVendorCDR_20' ) start [2025-01-11 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225442', 'tblTempVendorCDR_20' ) end [2025-01-11 16:20:19] Production.INFO: ProcessCDR(1,14225442,1,1,2) [2025-01-11 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225442', 'tblTempUsageDetail_20' ) start [2025-01-11 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225442', 'tblTempUsageDetail_20' ) end [2025-01-11 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:20:23] Production.INFO: ==32463== Releasing lock... [2025-01-11 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:20:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:21:04 [end_date_ymd] => 2025-01-11 16:21:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:21:04' and `end` < '2025-01-11 16: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-11 16:21:18] Production.INFO: count ==1570 [2025-01-11 16:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:21:04 - End Time 2025-01-11 16:21:04 [2025-01-11 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225448', 'tblTempUsageDetail_20' ) start [2025-01-11 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225448', 'tblTempUsageDetail_20' ) end [2025-01-11 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225448', 'tblTempVendorCDR_20' ) start [2025-01-11 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225448', 'tblTempVendorCDR_20' ) end [2025-01-11 16:21:18] Production.INFO: ProcessCDR(1,14225448,1,1,2) [2025-01-11 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225448', 'tblTempUsageDetail_20' ) start [2025-01-11 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225448', 'tblTempUsageDetail_20' ) end [2025-01-11 16:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:21:22] Production.INFO: ==32573== Releasing lock... [2025-01-11 16:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:21:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:22:05 [end_date_ymd] => 2025-01-11 16:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:22:05' and `end` < '2025-01-11 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-11 16:22:19] Production.INFO: count ==1564 [2025-01-11 16:22:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:22:05 - End Time 2025-01-11 16:22:05 [2025-01-11 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225453', 'tblTempUsageDetail_20' ) start [2025-01-11 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225453', 'tblTempUsageDetail_20' ) end [2025-01-11 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225453', 'tblTempVendorCDR_20' ) start [2025-01-11 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225453', 'tblTempVendorCDR_20' ) end [2025-01-11 16:22:20] Production.INFO: ProcessCDR(1,14225453,1,1,2) [2025-01-11 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225453', 'tblTempUsageDetail_20' ) start [2025-01-11 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225453', 'tblTempUsageDetail_20' ) end [2025-01-11 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:22:23] Production.INFO: ==32676== Releasing lock... [2025-01-11 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:22:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:23:05 [end_date_ymd] => 2025-01-11 16:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:23:05' and `end` < '2025-01-11 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-11 16:23:18] Production.INFO: count ==1563 [2025-01-11 16:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:23:05 - End Time 2025-01-11 16:23:05 [2025-01-11 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225458', 'tblTempUsageDetail_20' ) start [2025-01-11 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225458', 'tblTempUsageDetail_20' ) end [2025-01-11 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225458', 'tblTempVendorCDR_20' ) start [2025-01-11 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225458', 'tblTempVendorCDR_20' ) end [2025-01-11 16:23:19] Production.INFO: ProcessCDR(1,14225458,1,1,2) [2025-01-11 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225458', 'tblTempUsageDetail_20' ) start [2025-01-11 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225458', 'tblTempUsageDetail_20' ) end [2025-01-11 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:23:22] Production.INFO: ==375== Releasing lock... [2025-01-11 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:23:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:24:04 [end_date_ymd] => 2025-01-11 16:24:04 [RateCDR] => 1 ) [2025-01-11 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-11 13:24:04' and `end` < '2025-01-11 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-11 16:24:18] Production.INFO: count ==1561 [2025-01-11 16:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:24:04 - End Time 2025-01-11 16:24:04 [2025-01-11 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225463', 'tblTempUsageDetail_20' ) start [2025-01-11 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225463', 'tblTempUsageDetail_20' ) end [2025-01-11 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225463', 'tblTempVendorCDR_20' ) start [2025-01-11 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225463', 'tblTempVendorCDR_20' ) end [2025-01-11 16:24:18] Production.INFO: ProcessCDR(1,14225463,1,1,2) [2025-01-11 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225463', 'tblTempUsageDetail_20' ) start [2025-01-11 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225463', 'tblTempUsageDetail_20' ) end [2025-01-11 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:24:22] Production.INFO: ==477== Releasing lock... [2025-01-11 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:24:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:25:05 [end_date_ymd] => 2025-01-11 16:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:25:05' and `end` < '2025-01-11 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-11 16:25:19] Production.INFO: count ==1557 [2025-01-11 16:25:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:25:05 - End Time 2025-01-11 16:25:05 [2025-01-11 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225468', 'tblTempUsageDetail_20' ) start [2025-01-11 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225468', 'tblTempUsageDetail_20' ) end [2025-01-11 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225468', 'tblTempVendorCDR_20' ) start [2025-01-11 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225468', 'tblTempVendorCDR_20' ) end [2025-01-11 16:25:20] Production.INFO: ProcessCDR(1,14225468,1,1,2) [2025-01-11 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225468', 'tblTempUsageDetail_20' ) start [2025-01-11 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225468', 'tblTempUsageDetail_20' ) end [2025-01-11 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:25:24] Production.INFO: ==588== Releasing lock... [2025-01-11 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:25:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:26:04 [end_date_ymd] => 2025-01-11 16:26:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:26:04' and `end` < '2025-01-11 16: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-11 16:26:18] Production.INFO: count ==1556 [2025-01-11 16:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:26:04 - End Time 2025-01-11 16:26:04 [2025-01-11 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225473', 'tblTempUsageDetail_20' ) start [2025-01-11 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225473', 'tblTempUsageDetail_20' ) end [2025-01-11 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225473', 'tblTempVendorCDR_20' ) start [2025-01-11 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225473', 'tblTempVendorCDR_20' ) end [2025-01-11 16:26:19] Production.INFO: ProcessCDR(1,14225473,1,1,2) [2025-01-11 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225473', 'tblTempUsageDetail_20' ) start [2025-01-11 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225473', 'tblTempUsageDetail_20' ) end [2025-01-11 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:26:23] Production.INFO: ==717== Releasing lock... [2025-01-11 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:26:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:27:05 [end_date_ymd] => 2025-01-11 16:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:27:05' and `end` < '2025-01-11 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-11 16:27:19] Production.INFO: count ==1557 [2025-01-11 16:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:27:05 - End Time 2025-01-11 16:27:05 [2025-01-11 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225478', 'tblTempUsageDetail_20' ) start [2025-01-11 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225478', 'tblTempUsageDetail_20' ) end [2025-01-11 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225478', 'tblTempVendorCDR_20' ) start [2025-01-11 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225478', 'tblTempVendorCDR_20' ) end [2025-01-11 16:27:19] Production.INFO: ProcessCDR(1,14225478,1,1,2) [2025-01-11 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225478', 'tblTempUsageDetail_20' ) start [2025-01-11 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225478', 'tblTempUsageDetail_20' ) end [2025-01-11 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:27:24] Production.INFO: ==826== Releasing lock... [2025-01-11 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:27:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:28:05 [end_date_ymd] => 2025-01-11 16:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:28:05' and `end` < '2025-01-11 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-11 16:28:19] Production.INFO: count ==1554 [2025-01-11 16:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:28:05 - End Time 2025-01-11 16:28:05 [2025-01-11 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225483', 'tblTempUsageDetail_20' ) start [2025-01-11 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225483', 'tblTempUsageDetail_20' ) end [2025-01-11 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225483', 'tblTempVendorCDR_20' ) start [2025-01-11 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225483', 'tblTempVendorCDR_20' ) end [2025-01-11 16:28:19] Production.INFO: ProcessCDR(1,14225483,1,1,2) [2025-01-11 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225483', 'tblTempUsageDetail_20' ) start [2025-01-11 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225483', 'tblTempUsageDetail_20' ) end [2025-01-11 16:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:28:24] Production.INFO: ==930== Releasing lock... [2025-01-11 16:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:28:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:29:05 [end_date_ymd] => 2025-01-11 16:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:29:05' and `end` < '2025-01-11 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-11 16:29:18] Production.INFO: count ==1548 [2025-01-11 16:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:29:05 - End Time 2025-01-11 16:29:05 [2025-01-11 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225488', 'tblTempUsageDetail_20' ) start [2025-01-11 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225488', 'tblTempUsageDetail_20' ) end [2025-01-11 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225488', 'tblTempVendorCDR_20' ) start [2025-01-11 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225488', 'tblTempVendorCDR_20' ) end [2025-01-11 16:29:18] Production.INFO: ProcessCDR(1,14225488,1,1,2) [2025-01-11 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225488', 'tblTempUsageDetail_20' ) start [2025-01-11 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225488', 'tblTempUsageDetail_20' ) end [2025-01-11 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:29:23] Production.INFO: ==1033== Releasing lock... [2025-01-11 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:30:05 [end_date_ymd] => 2025-01-11 16:30:05 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:30:05' and `end` < '2025-01-11 16: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-11 16:30:19] Production.INFO: count ==1547 [2025-01-11 16:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:30:05 - End Time 2025-01-11 16:30:05 [2025-01-11 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225493', 'tblTempUsageDetail_20' ) start [2025-01-11 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225493', 'tblTempUsageDetail_20' ) end [2025-01-11 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225493', 'tblTempVendorCDR_20' ) start [2025-01-11 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225493', 'tblTempVendorCDR_20' ) end [2025-01-11 16:30:19] Production.INFO: ProcessCDR(1,14225493,1,1,2) [2025-01-11 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225493', 'tblTempUsageDetail_20' ) start [2025-01-11 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225493', 'tblTempUsageDetail_20' ) end [2025-01-11 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:30:24] Production.INFO: ==1141== Releasing lock... [2025-01-11 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:30:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:31:04 [end_date_ymd] => 2025-01-11 16:31:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:31:04' and `end` < '2025-01-11 16: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-11 16:31:17] Production.INFO: count ==1566 [2025-01-11 16:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:31:04 - End Time 2025-01-11 16:31:04 [2025-01-11 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225499', 'tblTempUsageDetail_20' ) start [2025-01-11 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225499', 'tblTempUsageDetail_20' ) end [2025-01-11 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225499', 'tblTempVendorCDR_20' ) start [2025-01-11 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225499', 'tblTempVendorCDR_20' ) end [2025-01-11 16:31:18] Production.INFO: ProcessCDR(1,14225499,1,1,2) [2025-01-11 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225499', 'tblTempUsageDetail_20' ) start [2025-01-11 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225499', 'tblTempUsageDetail_20' ) end [2025-01-11 16:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:31:21] Production.INFO: ==1261== Releasing lock... [2025-01-11 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:31:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:32:05 [end_date_ymd] => 2025-01-11 16:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:32:05' and `end` < '2025-01-11 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-11 16:32:18] Production.INFO: count ==1566 [2025-01-11 16:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:32:05 - End Time 2025-01-11 16:32:05 [2025-01-11 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225504', 'tblTempUsageDetail_20' ) start [2025-01-11 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225504', 'tblTempUsageDetail_20' ) end [2025-01-11 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225504', 'tblTempVendorCDR_20' ) start [2025-01-11 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225504', 'tblTempVendorCDR_20' ) end [2025-01-11 16:32:19] Production.INFO: ProcessCDR(1,14225504,1,1,2) [2025-01-11 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225504', 'tblTempUsageDetail_20' ) start [2025-01-11 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225504', 'tblTempUsageDetail_20' ) end [2025-01-11 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:32:22] Production.INFO: ==1370== Releasing lock... [2025-01-11 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:32:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:33:04 [end_date_ymd] => 2025-01-11 16:33:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:33:04' and `end` < '2025-01-11 16: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-11 16:33:17] Production.INFO: count ==1566 [2025-01-11 16:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:33:04 - End Time 2025-01-11 16:33:04 [2025-01-11 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225509', 'tblTempUsageDetail_20' ) start [2025-01-11 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225509', 'tblTempUsageDetail_20' ) end [2025-01-11 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225509', 'tblTempVendorCDR_20' ) start [2025-01-11 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225509', 'tblTempVendorCDR_20' ) end [2025-01-11 16:33:18] Production.INFO: ProcessCDR(1,14225509,1,1,2) [2025-01-11 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225509', 'tblTempUsageDetail_20' ) start [2025-01-11 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225509', 'tblTempUsageDetail_20' ) end [2025-01-11 16:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:33:21] Production.INFO: ==1469== Releasing lock... [2025-01-11 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:33:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:34:05 [end_date_ymd] => 2025-01-11 16:34:05 [RateCDR] => 1 ) [2025-01-11 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:34:05' and `end` < '2025-01-11 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:34:18] Production.INFO: count ==1546 [2025-01-11 16:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:34:05 - End Time 2025-01-11 16:34:05 [2025-01-11 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225514', 'tblTempUsageDetail_20' ) start [2025-01-11 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225514', 'tblTempUsageDetail_20' ) end [2025-01-11 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225514', 'tblTempVendorCDR_20' ) start [2025-01-11 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225514', 'tblTempVendorCDR_20' ) end [2025-01-11 16:34:19] Production.INFO: ProcessCDR(1,14225514,1,1,2) [2025-01-11 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225514', 'tblTempUsageDetail_20' ) start [2025-01-11 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225514', 'tblTempUsageDetail_20' ) end [2025-01-11 16:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:34:22] Production.INFO: ==1612== Releasing lock... [2025-01-11 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:34:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:35:05 [end_date_ymd] => 2025-01-11 16:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:35:05' and `end` < '2025-01-11 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-11 16:35:18] Production.INFO: count ==1549 [2025-01-11 16:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:35:05 - End Time 2025-01-11 16:35:05 [2025-01-11 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225519', 'tblTempUsageDetail_20' ) start [2025-01-11 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225519', 'tblTempUsageDetail_20' ) end [2025-01-11 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225519', 'tblTempVendorCDR_20' ) start [2025-01-11 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225519', 'tblTempVendorCDR_20' ) end [2025-01-11 16:35:18] Production.INFO: ProcessCDR(1,14225519,1,1,2) [2025-01-11 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225519', 'tblTempUsageDetail_20' ) start [2025-01-11 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225519', 'tblTempUsageDetail_20' ) end [2025-01-11 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:35:22] Production.INFO: ==1703== Releasing lock... [2025-01-11 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:35:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:36:05 [end_date_ymd] => 2025-01-11 16:36:05 [RateCDR] => 1 ) [2025-01-11 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:36:05' and `end` < '2025-01-11 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:36:18] Production.INFO: count ==1548 [2025-01-11 16:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:36:05 - End Time 2025-01-11 16:36:05 [2025-01-11 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225524', 'tblTempUsageDetail_20' ) start [2025-01-11 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225524', 'tblTempUsageDetail_20' ) end [2025-01-11 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225524', 'tblTempVendorCDR_20' ) start [2025-01-11 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225524', 'tblTempVendorCDR_20' ) end [2025-01-11 16:36:18] Production.INFO: ProcessCDR(1,14225524,1,1,2) [2025-01-11 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225524', 'tblTempUsageDetail_20' ) start [2025-01-11 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225524', 'tblTempUsageDetail_20' ) end [2025-01-11 16:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:36:22] Production.INFO: ==1784== Releasing lock... [2025-01-11 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:37:05 [end_date_ymd] => 2025-01-11 16:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:37:05' and `end` < '2025-01-11 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-11 16:37:18] Production.INFO: count ==1545 [2025-01-11 16:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:37:05 - End Time 2025-01-11 16:37:05 [2025-01-11 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225529', 'tblTempUsageDetail_20' ) start [2025-01-11 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225529', 'tblTempUsageDetail_20' ) end [2025-01-11 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225529', 'tblTempVendorCDR_20' ) start [2025-01-11 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225529', 'tblTempVendorCDR_20' ) end [2025-01-11 16:37:19] Production.INFO: ProcessCDR(1,14225529,1,1,2) [2025-01-11 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225529', 'tblTempUsageDetail_20' ) start [2025-01-11 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225529', 'tblTempUsageDetail_20' ) end [2025-01-11 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:37:22] Production.INFO: ==1877== Releasing lock... [2025-01-11 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:38:05 [end_date_ymd] => 2025-01-11 16:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:38:05' and `end` < '2025-01-11 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-11 16:38:19] Production.INFO: count ==1542 [2025-01-11 16:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:38:05 - End Time 2025-01-11 16:38:05 [2025-01-11 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225534', 'tblTempUsageDetail_20' ) start [2025-01-11 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225534', 'tblTempUsageDetail_20' ) end [2025-01-11 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225534', 'tblTempVendorCDR_20' ) start [2025-01-11 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225534', 'tblTempVendorCDR_20' ) end [2025-01-11 16:38:20] Production.INFO: ProcessCDR(1,14225534,1,1,2) [2025-01-11 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225534', 'tblTempUsageDetail_20' ) start [2025-01-11 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225534', 'tblTempUsageDetail_20' ) end [2025-01-11 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:38:23] Production.INFO: ==1970== Releasing lock... [2025-01-11 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:39:05 [end_date_ymd] => 2025-01-11 16:39:05 [RateCDR] => 1 ) [2025-01-11 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:39:05' and `end` < '2025-01-11 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:39:18] Production.INFO: count ==1542 [2025-01-11 16:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:39:05 - End Time 2025-01-11 16:39:05 [2025-01-11 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225539', 'tblTempUsageDetail_20' ) start [2025-01-11 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225539', 'tblTempUsageDetail_20' ) end [2025-01-11 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225539', 'tblTempVendorCDR_20' ) start [2025-01-11 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225539', 'tblTempVendorCDR_20' ) end [2025-01-11 16:39:19] Production.INFO: ProcessCDR(1,14225539,1,1,2) [2025-01-11 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225539', 'tblTempUsageDetail_20' ) start [2025-01-11 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225539', 'tblTempUsageDetail_20' ) end [2025-01-11 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:39:23] Production.INFO: ==2098== Releasing lock... [2025-01-11 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-11 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:40:06 [end_date_ymd] => 2025-01-11 16:40:06 [RateCDR] => 1 ) [2025-01-11 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:40:06' and `end` < '2025-01-11 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:40:19] Production.INFO: count ==1539 [2025-01-11 16:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:40:06 - End Time 2025-01-11 16:40:06 [2025-01-11 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225544', 'tblTempUsageDetail_20' ) start [2025-01-11 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225544', 'tblTempUsageDetail_20' ) end [2025-01-11 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225544', 'tblTempVendorCDR_20' ) start [2025-01-11 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225544', 'tblTempVendorCDR_20' ) end [2025-01-11 16:40:20] Production.INFO: ProcessCDR(1,14225544,1,1,2) [2025-01-11 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225544', 'tblTempUsageDetail_20' ) start [2025-01-11 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225544', 'tblTempUsageDetail_20' ) end [2025-01-11 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:40:23] Production.INFO: ==2177== Releasing lock... [2025-01-11 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:41:04 [end_date_ymd] => 2025-01-11 16:41:04 [RateCDR] => 1 ) [2025-01-11 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-11 13:41:04' and `end` < '2025-01-11 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-11 16:41:17] Production.INFO: count ==1579 [2025-01-11 16:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:41:04 - End Time 2025-01-11 16:41:04 [2025-01-11 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225550', 'tblTempUsageDetail_20' ) start [2025-01-11 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225550', 'tblTempUsageDetail_20' ) end [2025-01-11 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225550', 'tblTempVendorCDR_20' ) start [2025-01-11 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225550', 'tblTempVendorCDR_20' ) end [2025-01-11 16:41:18] Production.INFO: ProcessCDR(1,14225550,1,1,2) [2025-01-11 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225550', 'tblTempUsageDetail_20' ) start [2025-01-11 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225550', 'tblTempUsageDetail_20' ) end [2025-01-11 16:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:41:21] Production.INFO: ==2260== Releasing lock... [2025-01-11 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:41:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:42:05 [end_date_ymd] => 2025-01-11 16:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:42:05' and `end` < '2025-01-11 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-11 16:42:20] Production.INFO: count ==1577 [2025-01-11 16:42:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:42:05 - End Time 2025-01-11 16:42:05 [2025-01-11 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225555', 'tblTempUsageDetail_20' ) start [2025-01-11 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225555', 'tblTempUsageDetail_20' ) end [2025-01-11 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225555', 'tblTempVendorCDR_20' ) start [2025-01-11 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225555', 'tblTempVendorCDR_20' ) end [2025-01-11 16:42:20] Production.INFO: ProcessCDR(1,14225555,1,1,2) [2025-01-11 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225555', 'tblTempUsageDetail_20' ) start [2025-01-11 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225555', 'tblTempUsageDetail_20' ) end [2025-01-11 16:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:42:24] Production.INFO: ==2335== Releasing lock... [2025-01-11 16:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:42:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:43:05 [end_date_ymd] => 2025-01-11 16:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:43:05' and `end` < '2025-01-11 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-11 16:43:18] Production.INFO: count ==1570 [2025-01-11 16:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:43:05 - End Time 2025-01-11 16:43:05 [2025-01-11 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225560', 'tblTempUsageDetail_20' ) start [2025-01-11 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225560', 'tblTempUsageDetail_20' ) end [2025-01-11 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225560', 'tblTempVendorCDR_20' ) start [2025-01-11 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225560', 'tblTempVendorCDR_20' ) end [2025-01-11 16:43:18] Production.INFO: ProcessCDR(1,14225560,1,1,2) [2025-01-11 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225560', 'tblTempUsageDetail_20' ) start [2025-01-11 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225560', 'tblTempUsageDetail_20' ) end [2025-01-11 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:43:23] Production.INFO: ==2406== Releasing lock... [2025-01-11 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:43:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:44:04 [end_date_ymd] => 2025-01-11 16:44:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:44:04' and `end` < '2025-01-11 16: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-11 16:44:18] Production.INFO: count ==1565 [2025-01-11 16:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:44:04 - End Time 2025-01-11 16:44:04 [2025-01-11 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225565', 'tblTempUsageDetail_20' ) start [2025-01-11 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225565', 'tblTempUsageDetail_20' ) end [2025-01-11 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225565', 'tblTempVendorCDR_20' ) start [2025-01-11 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225565', 'tblTempVendorCDR_20' ) end [2025-01-11 16:44:18] Production.INFO: ProcessCDR(1,14225565,1,1,2) [2025-01-11 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225565', 'tblTempUsageDetail_20' ) start [2025-01-11 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225565', 'tblTempUsageDetail_20' ) end [2025-01-11 16:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:44:21] Production.INFO: ==2479== Releasing lock... [2025-01-11 16:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:44:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:45:04 [end_date_ymd] => 2025-01-11 16:45:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:45:04' and `end` < '2025-01-11 16: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-11 16:45:18] Production.INFO: count ==1563 [2025-01-11 16:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:45:04 - End Time 2025-01-11 16:45:04 [2025-01-11 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225570', 'tblTempUsageDetail_20' ) start [2025-01-11 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225570', 'tblTempUsageDetail_20' ) end [2025-01-11 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225570', 'tblTempVendorCDR_20' ) start [2025-01-11 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225570', 'tblTempVendorCDR_20' ) end [2025-01-11 16:45:18] Production.INFO: ProcessCDR(1,14225570,1,1,2) [2025-01-11 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225570', 'tblTempUsageDetail_20' ) start [2025-01-11 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225570', 'tblTempUsageDetail_20' ) end [2025-01-11 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:45:21] Production.INFO: ==2548== Releasing lock... [2025-01-11 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:45:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:46:05 [end_date_ymd] => 2025-01-11 16:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:46:05' and `end` < '2025-01-11 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-11 16:46:18] Production.INFO: count ==1565 [2025-01-11 16:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:46:05 - End Time 2025-01-11 16:46:05 [2025-01-11 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225575', 'tblTempUsageDetail_20' ) start [2025-01-11 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225575', 'tblTempUsageDetail_20' ) end [2025-01-11 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225575', 'tblTempVendorCDR_20' ) start [2025-01-11 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225575', 'tblTempVendorCDR_20' ) end [2025-01-11 16:46:19] Production.INFO: ProcessCDR(1,14225575,1,1,2) [2025-01-11 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225575', 'tblTempUsageDetail_20' ) start [2025-01-11 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225575', 'tblTempUsageDetail_20' ) end [2025-01-11 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:46:22] Production.INFO: ==2619== Releasing lock... [2025-01-11 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:47:05 [end_date_ymd] => 2025-01-11 16:47:05 [RateCDR] => 1 ) [2025-01-11 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:47:05' and `end` < '2025-01-11 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:47:19] Production.INFO: count ==1561 [2025-01-11 16:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:47:05 - End Time 2025-01-11 16:47:05 [2025-01-11 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225580', 'tblTempUsageDetail_20' ) start [2025-01-11 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225580', 'tblTempUsageDetail_20' ) end [2025-01-11 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225580', 'tblTempVendorCDR_20' ) start [2025-01-11 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225580', 'tblTempVendorCDR_20' ) end [2025-01-11 16:47:19] Production.INFO: ProcessCDR(1,14225580,1,1,2) [2025-01-11 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225580', 'tblTempUsageDetail_20' ) start [2025-01-11 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225580', 'tblTempUsageDetail_20' ) end [2025-01-11 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:47:22] Production.INFO: ==2695== Releasing lock... [2025-01-11 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:47:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:48:05 [end_date_ymd] => 2025-01-11 16:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:48:05' and `end` < '2025-01-11 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-11 16:48:18] Production.INFO: count ==1557 [2025-01-11 16:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:48:05 - End Time 2025-01-11 16:48:05 [2025-01-11 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225585', 'tblTempUsageDetail_20' ) start [2025-01-11 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225585', 'tblTempUsageDetail_20' ) end [2025-01-11 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225585', 'tblTempVendorCDR_20' ) start [2025-01-11 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225585', 'tblTempVendorCDR_20' ) end [2025-01-11 16:48:18] Production.INFO: ProcessCDR(1,14225585,1,1,2) [2025-01-11 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225585', 'tblTempUsageDetail_20' ) start [2025-01-11 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225585', 'tblTempUsageDetail_20' ) end [2025-01-11 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:48:21] Production.INFO: ==2765== Releasing lock... [2025-01-11 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:48:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:49:05 [end_date_ymd] => 2025-01-11 16:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:49:05' and `end` < '2025-01-11 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-11 16:49:21] Production.INFO: count ==1549 [2025-01-11 16:49:21] Production.ERROR: pbx CDR StartTime 2025-01-11 13:49:05 - End Time 2025-01-11 16:49:05 [2025-01-11 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225590', 'tblTempUsageDetail_20' ) start [2025-01-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225590', 'tblTempUsageDetail_20' ) end [2025-01-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225590', 'tblTempVendorCDR_20' ) start [2025-01-11 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225590', 'tblTempVendorCDR_20' ) end [2025-01-11 16:49:21] Production.INFO: ProcessCDR(1,14225590,1,1,2) [2025-01-11 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225590', 'tblTempUsageDetail_20' ) start [2025-01-11 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225590', 'tblTempUsageDetail_20' ) end [2025-01-11 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:49:26] Production.INFO: ==2839== Releasing lock... [2025-01-11 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:49:26] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:50:05 [end_date_ymd] => 2025-01-11 16:50:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:50:05' and `end` < '2025-01-11 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-11 16:50:20] Production.INFO: count ==1564 [2025-01-11 16:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 13:50:05 - End Time 2025-01-11 16:50:05 [2025-01-11 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225595', 'tblTempUsageDetail_20' ) start [2025-01-11 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225595', 'tblTempUsageDetail_20' ) end [2025-01-11 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225595', 'tblTempVendorCDR_20' ) start [2025-01-11 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225595', 'tblTempVendorCDR_20' ) end [2025-01-11 16:50:20] Production.INFO: ProcessCDR(1,14225595,1,1,2) [2025-01-11 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225595', 'tblTempUsageDetail_20' ) start [2025-01-11 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225595', 'tblTempUsageDetail_20' ) end [2025-01-11 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:50:25] Production.INFO: ==2913== Releasing lock... [2025-01-11 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:50:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:51:05 [end_date_ymd] => 2025-01-11 16:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:51:05' and `end` < '2025-01-11 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-11 16:51:18] Production.INFO: count ==1608 [2025-01-11 16:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:51:05 - End Time 2025-01-11 16:51:05 [2025-01-11 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225601', 'tblTempUsageDetail_20' ) start [2025-01-11 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225601', 'tblTempUsageDetail_20' ) end [2025-01-11 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225601', 'tblTempVendorCDR_20' ) start [2025-01-11 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225601', 'tblTempVendorCDR_20' ) end [2025-01-11 16:51:18] Production.INFO: ProcessCDR(1,14225601,1,1,2) [2025-01-11 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225601', 'tblTempUsageDetail_20' ) start [2025-01-11 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225601', 'tblTempUsageDetail_20' ) end [2025-01-11 16:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:51:22] Production.INFO: ==2985== Releasing lock... [2025-01-11 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:51:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:52:05 [end_date_ymd] => 2025-01-11 16:52:05 [RateCDR] => 1 ) [2025-01-11 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:52:05' and `end` < '2025-01-11 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:52:18] Production.INFO: count ==1600 [2025-01-11 16:52:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:52:05 - End Time 2025-01-11 16:52:05 [2025-01-11 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225606', 'tblTempUsageDetail_20' ) start [2025-01-11 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225606', 'tblTempUsageDetail_20' ) end [2025-01-11 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225606', 'tblTempVendorCDR_20' ) start [2025-01-11 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225606', 'tblTempVendorCDR_20' ) end [2025-01-11 16:52:18] Production.INFO: ProcessCDR(1,14225606,1,1,2) [2025-01-11 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225606', 'tblTempUsageDetail_20' ) start [2025-01-11 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225606', 'tblTempUsageDetail_20' ) end [2025-01-11 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:52:22] Production.INFO: ==3066== Releasing lock... [2025-01-11 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:52:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:53:05 [end_date_ymd] => 2025-01-11 16:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:53:05' and `end` < '2025-01-11 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-11 16:53:19] Production.INFO: count ==1603 [2025-01-11 16:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:53:05 - End Time 2025-01-11 16:53:05 [2025-01-11 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225611', 'tblTempUsageDetail_20' ) start [2025-01-11 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225611', 'tblTempUsageDetail_20' ) end [2025-01-11 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225611', 'tblTempVendorCDR_20' ) start [2025-01-11 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225611', 'tblTempVendorCDR_20' ) end [2025-01-11 16:53:19] Production.INFO: ProcessCDR(1,14225611,1,1,2) [2025-01-11 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225611', 'tblTempUsageDetail_20' ) start [2025-01-11 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225611', 'tblTempUsageDetail_20' ) end [2025-01-11 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:53:24] Production.INFO: ==3155== Releasing lock... [2025-01-11 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:54:05 [end_date_ymd] => 2025-01-11 16:54:05 [RateCDR] => 1 ) [2025-01-11 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 13:54:05' and `end` < '2025-01-11 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 16:54:18] Production.INFO: count ==1624 [2025-01-11 16:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:54:05 - End Time 2025-01-11 16:54:05 [2025-01-11 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225616', 'tblTempUsageDetail_20' ) start [2025-01-11 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225616', 'tblTempUsageDetail_20' ) end [2025-01-11 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225616', 'tblTempVendorCDR_20' ) start [2025-01-11 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225616', 'tblTempVendorCDR_20' ) end [2025-01-11 16:54:19] Production.INFO: ProcessCDR(1,14225616,1,1,2) [2025-01-11 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225616', 'tblTempUsageDetail_20' ) start [2025-01-11 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225616', 'tblTempUsageDetail_20' ) end [2025-01-11 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:54:23] Production.INFO: ==3264== Releasing lock... [2025-01-11 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:54:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:55:05 [end_date_ymd] => 2025-01-11 16:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:55:05' and `end` < '2025-01-11 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-11 16:55:22] Production.INFO: count ==1603 [2025-01-11 16:55:22] Production.ERROR: pbx CDR StartTime 2025-01-11 13:55:05 - End Time 2025-01-11 16:55:05 [2025-01-11 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225621', 'tblTempUsageDetail_20' ) start [2025-01-11 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225621', 'tblTempUsageDetail_20' ) end [2025-01-11 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225621', 'tblTempVendorCDR_20' ) start [2025-01-11 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225621', 'tblTempVendorCDR_20' ) end [2025-01-11 16:55:22] Production.INFO: ProcessCDR(1,14225621,1,1,2) [2025-01-11 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225621', 'tblTempUsageDetail_20' ) start [2025-01-11 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225621', 'tblTempUsageDetail_20' ) end [2025-01-11 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:55:25] Production.INFO: ==3336== Releasing lock... [2025-01-11 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:55:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:56:04 [end_date_ymd] => 2025-01-11 16:56:04 [RateCDR] => 1 ) [2025-01-11 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-11 13:56:04' and `end` < '2025-01-11 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-11 16:56:19] Production.INFO: count ==1605 [2025-01-11 16:56:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:56:04 - End Time 2025-01-11 16:56:04 [2025-01-11 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225626', 'tblTempUsageDetail_20' ) start [2025-01-11 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225626', 'tblTempUsageDetail_20' ) end [2025-01-11 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225626', 'tblTempVendorCDR_20' ) start [2025-01-11 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225626', 'tblTempVendorCDR_20' ) end [2025-01-11 16:56:19] Production.INFO: ProcessCDR(1,14225626,1,1,2) [2025-01-11 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225626', 'tblTempUsageDetail_20' ) start [2025-01-11 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225626', 'tblTempUsageDetail_20' ) end [2025-01-11 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:56:24] Production.INFO: ==3409== Releasing lock... [2025-01-11 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:56:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:57:05 [end_date_ymd] => 2025-01-11 16:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:57:05' and `end` < '2025-01-11 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-11 16:57:21] Production.INFO: count ==1600 [2025-01-11 16:57:21] Production.ERROR: pbx CDR StartTime 2025-01-11 13:57:05 - End Time 2025-01-11 16:57:05 [2025-01-11 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225631', 'tblTempUsageDetail_20' ) start [2025-01-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225631', 'tblTempUsageDetail_20' ) end [2025-01-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225631', 'tblTempVendorCDR_20' ) start [2025-01-11 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225631', 'tblTempVendorCDR_20' ) end [2025-01-11 16:57:21] Production.INFO: ProcessCDR(1,14225631,1,1,2) [2025-01-11 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225631', 'tblTempUsageDetail_20' ) start [2025-01-11 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225631', 'tblTempUsageDetail_20' ) end [2025-01-11 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:57:26] Production.INFO: ==3480== Releasing lock... [2025-01-11 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:57:26] Production.INFO: 40 MB #Memory Used# [2025-01-11 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:58:05 [end_date_ymd] => 2025-01-11 16:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 13:58:05' and `end` < '2025-01-11 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-11 16:58:19] Production.INFO: count ==1596 [2025-01-11 16:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 13:58:05 - End Time 2025-01-11 16:58:05 [2025-01-11 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225636', 'tblTempUsageDetail_20' ) start [2025-01-11 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225636', 'tblTempUsageDetail_20' ) end [2025-01-11 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225636', 'tblTempVendorCDR_20' ) start [2025-01-11 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225636', 'tblTempVendorCDR_20' ) end [2025-01-11 16:58:19] Production.INFO: ProcessCDR(1,14225636,1,1,2) [2025-01-11 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225636', 'tblTempUsageDetail_20' ) start [2025-01-11 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225636', 'tblTempUsageDetail_20' ) end [2025-01-11 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:58:24] Production.INFO: ==3550== Releasing lock... [2025-01-11 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:58:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 13:59:04 [end_date_ymd] => 2025-01-11 16:59:04 [RateCDR] => 1 ) [2025-01-11 16: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-11 13:59:04' and `end` < '2025-01-11 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-11 16:59:18] Production.INFO: count ==1593 [2025-01-11 16:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 13:59:04 - End Time 2025-01-11 16:59:04 [2025-01-11 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225641', 'tblTempUsageDetail_20' ) start [2025-01-11 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225641', 'tblTempUsageDetail_20' ) end [2025-01-11 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225641', 'tblTempVendorCDR_20' ) start [2025-01-11 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225641', 'tblTempVendorCDR_20' ) end [2025-01-11 16:59:18] Production.INFO: ProcessCDR(1,14225641,1,1,2) [2025-01-11 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225641', 'tblTempUsageDetail_20' ) start [2025-01-11 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225641', 'tblTempUsageDetail_20' ) end [2025-01-11 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 16:59:23] Production.INFO: ==3620== Releasing lock... [2025-01-11 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 16:59:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:00:06 [end_date_ymd] => 2025-01-11 17:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 14:00:06' and `end` < '2025-01-11 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-11 17:00:19] Production.INFO: count ==1591 [2025-01-11 17:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:00:06 - End Time 2025-01-11 17:00:06 [2025-01-11 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225646', 'tblTempUsageDetail_20' ) start [2025-01-11 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225646', 'tblTempUsageDetail_20' ) end [2025-01-11 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225646', 'tblTempVendorCDR_20' ) start [2025-01-11 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225646', 'tblTempVendorCDR_20' ) end [2025-01-11 17:00:20] Production.INFO: ProcessCDR(1,14225646,1,1,2) [2025-01-11 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225646', 'tblTempUsageDetail_20' ) start [2025-01-11 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225646', 'tblTempUsageDetail_20' ) end [2025-01-11 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:00:24] Production.INFO: ==3694== Releasing lock... [2025-01-11 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:00:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:01:04 [end_date_ymd] => 2025-01-11 17:01:04 [RateCDR] => 1 ) [2025-01-11 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:01:04' and `end` < '2025-01-11 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-11 17:01:20] Production.INFO: count ==1606 [2025-01-11 17:01:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:01:04 - End Time 2025-01-11 17:01:04 [2025-01-11 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225652', 'tblTempUsageDetail_20' ) start [2025-01-11 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225652', 'tblTempUsageDetail_20' ) end [2025-01-11 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225652', 'tblTempVendorCDR_20' ) start [2025-01-11 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225652', 'tblTempVendorCDR_20' ) end [2025-01-11 17:01:21] Production.INFO: ProcessCDR(1,14225652,1,1,2) [2025-01-11 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225652', 'tblTempUsageDetail_20' ) start [2025-01-11 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225652', 'tblTempUsageDetail_20' ) end [2025-01-11 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:01:24] Production.INFO: ==3780== Releasing lock... [2025-01-11 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:01:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:02:05 [end_date_ymd] => 2025-01-11 17:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:02:05' and `end` < '2025-01-11 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-11 17:02:19] Production.INFO: count ==1604 [2025-01-11 17:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:02:05 - End Time 2025-01-11 17:02:05 [2025-01-11 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225657', 'tblTempUsageDetail_20' ) start [2025-01-11 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225657', 'tblTempUsageDetail_20' ) end [2025-01-11 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225657', 'tblTempVendorCDR_20' ) start [2025-01-11 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225657', 'tblTempVendorCDR_20' ) end [2025-01-11 17:02:19] Production.INFO: ProcessCDR(1,14225657,1,1,2) [2025-01-11 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225657', 'tblTempUsageDetail_20' ) start [2025-01-11 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225657', 'tblTempUsageDetail_20' ) end [2025-01-11 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:02:22] Production.INFO: ==3852== Releasing lock... [2025-01-11 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:02:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:03:04 [end_date_ymd] => 2025-01-11 17:03:04 [RateCDR] => 1 ) [2025-01-11 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-11 14:03:04' and `end` < '2025-01-11 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-11 17:03:21] Production.INFO: count ==1611 [2025-01-11 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:03:04 - End Time 2025-01-11 17:03:04 [2025-01-11 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225662', 'tblTempUsageDetail_20' ) start [2025-01-11 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225662', 'tblTempUsageDetail_20' ) end [2025-01-11 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225662', 'tblTempVendorCDR_20' ) start [2025-01-11 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225662', 'tblTempVendorCDR_20' ) end [2025-01-11 17:03:21] Production.INFO: ProcessCDR(1,14225662,1,1,2) [2025-01-11 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225662', 'tblTempUsageDetail_20' ) start [2025-01-11 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225662', 'tblTempUsageDetail_20' ) end [2025-01-11 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:03:25] Production.INFO: ==3921== Releasing lock... [2025-01-11 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:03:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:04:05 [end_date_ymd] => 2025-01-11 17:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:04:05' and `end` < '2025-01-11 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-11 17:04:18] Production.INFO: count ==1607 [2025-01-11 17:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:04:05 - End Time 2025-01-11 17:04:05 [2025-01-11 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225667', 'tblTempUsageDetail_20' ) start [2025-01-11 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225667', 'tblTempUsageDetail_20' ) end [2025-01-11 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225667', 'tblTempVendorCDR_20' ) start [2025-01-11 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225667', 'tblTempVendorCDR_20' ) end [2025-01-11 17:04:19] Production.INFO: ProcessCDR(1,14225667,1,1,2) [2025-01-11 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225667', 'tblTempUsageDetail_20' ) start [2025-01-11 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225667', 'tblTempUsageDetail_20' ) end [2025-01-11 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:04:22] Production.INFO: ==3992== Releasing lock... [2025-01-11 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:04:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:05:05 [end_date_ymd] => 2025-01-11 17:05:05 [RateCDR] => 1 ) [2025-01-11 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:05:05' and `end` < '2025-01-11 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:05:18] Production.INFO: count ==1629 [2025-01-11 17:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:05:05 - End Time 2025-01-11 17:05:05 [2025-01-11 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225672', 'tblTempUsageDetail_20' ) start [2025-01-11 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225672', 'tblTempUsageDetail_20' ) end [2025-01-11 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225672', 'tblTempVendorCDR_20' ) start [2025-01-11 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225672', 'tblTempVendorCDR_20' ) end [2025-01-11 17:05:19] Production.INFO: ProcessCDR(1,14225672,1,1,2) [2025-01-11 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225672', 'tblTempUsageDetail_20' ) start [2025-01-11 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225672', 'tblTempUsageDetail_20' ) end [2025-01-11 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:05:23] Production.INFO: ==4064== Releasing lock... [2025-01-11 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:05:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:06:05 [end_date_ymd] => 2025-01-11 17:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:06:05' and `end` < '2025-01-11 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-11 17:06:21] Production.INFO: count ==1628 [2025-01-11 17:06:22] Production.ERROR: pbx CDR StartTime 2025-01-11 14:06:05 - End Time 2025-01-11 17:06:05 [2025-01-11 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225677', 'tblTempUsageDetail_20' ) start [2025-01-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225677', 'tblTempUsageDetail_20' ) end [2025-01-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225677', 'tblTempVendorCDR_20' ) start [2025-01-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225677', 'tblTempVendorCDR_20' ) end [2025-01-11 17:06:22] Production.INFO: ProcessCDR(1,14225677,1,1,2) [2025-01-11 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225677', 'tblTempUsageDetail_20' ) start [2025-01-11 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225677', 'tblTempUsageDetail_20' ) end [2025-01-11 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:06:27] Production.INFO: ==4139== Releasing lock... [2025-01-11 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:06:27] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:07:05 [end_date_ymd] => 2025-01-11 17:07:05 [RateCDR] => 1 ) [2025-01-11 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:07:05' and `end` < '2025-01-11 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:07:18] Production.INFO: count ==1629 [2025-01-11 17:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:07:05 - End Time 2025-01-11 17:07:05 [2025-01-11 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225682', 'tblTempUsageDetail_20' ) start [2025-01-11 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225682', 'tblTempUsageDetail_20' ) end [2025-01-11 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225682', 'tblTempVendorCDR_20' ) start [2025-01-11 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225682', 'tblTempVendorCDR_20' ) end [2025-01-11 17:07:19] Production.INFO: ProcessCDR(1,14225682,1,1,2) [2025-01-11 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225682', 'tblTempUsageDetail_20' ) start [2025-01-11 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225682', 'tblTempUsageDetail_20' ) end [2025-01-11 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:07:24] Production.INFO: ==4214== Releasing lock... [2025-01-11 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:07:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:08:05 [end_date_ymd] => 2025-01-11 17:08:05 [RateCDR] => 1 ) [2025-01-11 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:08:05' and `end` < '2025-01-11 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:08:18] Production.INFO: count ==1632 [2025-01-11 17:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:08:05 - End Time 2025-01-11 17:08:05 [2025-01-11 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225687', 'tblTempUsageDetail_20' ) start [2025-01-11 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225687', 'tblTempUsageDetail_20' ) end [2025-01-11 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225687', 'tblTempVendorCDR_20' ) start [2025-01-11 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225687', 'tblTempVendorCDR_20' ) end [2025-01-11 17:08:18] Production.INFO: ProcessCDR(1,14225687,1,1,2) [2025-01-11 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225687', 'tblTempUsageDetail_20' ) start [2025-01-11 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225687', 'tblTempUsageDetail_20' ) end [2025-01-11 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:08:23] Production.INFO: ==4286== Releasing lock... [2025-01-11 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:08:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:09:05 [end_date_ymd] => 2025-01-11 17:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:09:05' and `end` < '2025-01-11 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-11 17:09:19] Production.INFO: count ==1636 [2025-01-11 17:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:09:05 - End Time 2025-01-11 17:09:05 [2025-01-11 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225692', 'tblTempUsageDetail_20' ) start [2025-01-11 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225692', 'tblTempUsageDetail_20' ) end [2025-01-11 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225692', 'tblTempVendorCDR_20' ) start [2025-01-11 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225692', 'tblTempVendorCDR_20' ) end [2025-01-11 17:09:19] Production.INFO: ProcessCDR(1,14225692,1,1,2) [2025-01-11 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225692', 'tblTempUsageDetail_20' ) start [2025-01-11 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225692', 'tblTempUsageDetail_20' ) end [2025-01-11 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:09:24] Production.INFO: ==4356== Releasing lock... [2025-01-11 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:09:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:10:05 [end_date_ymd] => 2025-01-11 17:10:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:10:05' and `end` < '2025-01-11 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-11 17:10:18] Production.INFO: count ==1635 [2025-01-11 17:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:10:05 - End Time 2025-01-11 17:10:05 [2025-01-11 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225698', 'tblTempUsageDetail_20' ) start [2025-01-11 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225698', 'tblTempUsageDetail_20' ) end [2025-01-11 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225698', 'tblTempVendorCDR_20' ) start [2025-01-11 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225698', 'tblTempVendorCDR_20' ) end [2025-01-11 17:10:19] Production.INFO: ProcessCDR(1,14225698,1,1,2) [2025-01-11 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225698', 'tblTempUsageDetail_20' ) start [2025-01-11 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225698', 'tblTempUsageDetail_20' ) end [2025-01-11 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:10:23] Production.INFO: ==4467== Releasing lock... [2025-01-11 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:11:05 [end_date_ymd] => 2025-01-11 17:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:11:05' and `end` < '2025-01-11 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-11 17:11:21] Production.INFO: count ==1645 [2025-01-11 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:11:05 - End Time 2025-01-11 17:11:05 [2025-01-11 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225703', 'tblTempUsageDetail_20' ) start [2025-01-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225703', 'tblTempUsageDetail_20' ) end [2025-01-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225703', 'tblTempVendorCDR_20' ) start [2025-01-11 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225703', 'tblTempVendorCDR_20' ) end [2025-01-11 17:11:21] Production.INFO: ProcessCDR(1,14225703,1,1,2) [2025-01-11 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225703', 'tblTempUsageDetail_20' ) start [2025-01-11 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225703', 'tblTempUsageDetail_20' ) end [2025-01-11 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:11:26] Production.INFO: ==4540== Releasing lock... [2025-01-11 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:11:26] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:12:05 [end_date_ymd] => 2025-01-11 17:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:12:05' and `end` < '2025-01-11 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-11 17:12:22] Production.INFO: count ==1645 [2025-01-11 17:12:22] Production.ERROR: pbx CDR StartTime 2025-01-11 14:12:05 - End Time 2025-01-11 17:12:05 [2025-01-11 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225708', 'tblTempUsageDetail_20' ) start [2025-01-11 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225708', 'tblTempUsageDetail_20' ) end [2025-01-11 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225708', 'tblTempVendorCDR_20' ) start [2025-01-11 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225708', 'tblTempVendorCDR_20' ) end [2025-01-11 17:12:22] Production.INFO: ProcessCDR(1,14225708,1,1,2) [2025-01-11 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225708', 'tblTempUsageDetail_20' ) start [2025-01-11 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225708', 'tblTempUsageDetail_20' ) end [2025-01-11 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:12:27] Production.INFO: ==4617== Releasing lock... [2025-01-11 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:12:27] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:13:05 [end_date_ymd] => 2025-01-11 17:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:13:05' and `end` < '2025-01-11 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-11 17:13:18] Production.INFO: count ==1647 [2025-01-11 17:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:13:05 - End Time 2025-01-11 17:13:05 [2025-01-11 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225713', 'tblTempUsageDetail_20' ) start [2025-01-11 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225713', 'tblTempUsageDetail_20' ) end [2025-01-11 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225713', 'tblTempVendorCDR_20' ) start [2025-01-11 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225713', 'tblTempVendorCDR_20' ) end [2025-01-11 17:13:19] Production.INFO: ProcessCDR(1,14225713,1,1,2) [2025-01-11 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225713', 'tblTempUsageDetail_20' ) start [2025-01-11 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225713', 'tblTempUsageDetail_20' ) end [2025-01-11 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:13:23] Production.INFO: ==4692== Releasing lock... [2025-01-11 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:14:04 [end_date_ymd] => 2025-01-11 17:14:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:14:04' and `end` < '2025-01-11 17: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-11 17:14:18] Production.INFO: count ==1647 [2025-01-11 17:14:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:14:04 - End Time 2025-01-11 17:14:04 [2025-01-11 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225718', 'tblTempUsageDetail_20' ) start [2025-01-11 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225718', 'tblTempUsageDetail_20' ) end [2025-01-11 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225718', 'tblTempVendorCDR_20' ) start [2025-01-11 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225718', 'tblTempVendorCDR_20' ) end [2025-01-11 17:14:18] Production.INFO: ProcessCDR(1,14225718,1,1,2) [2025-01-11 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225718', 'tblTempUsageDetail_20' ) start [2025-01-11 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225718', 'tblTempUsageDetail_20' ) end [2025-01-11 17:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:14:23] Production.INFO: ==4765== Releasing lock... [2025-01-11 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:14:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:15:04 [end_date_ymd] => 2025-01-11 17:15:04 [RateCDR] => 1 ) [2025-01-11 17:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:15:04' and `end` < '2025-01-11 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:15:18] Production.INFO: count ==1607 [2025-01-11 17:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:15:04 - End Time 2025-01-11 17:15:04 [2025-01-11 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225723', 'tblTempUsageDetail_20' ) start [2025-01-11 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225723', 'tblTempUsageDetail_20' ) end [2025-01-11 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225723', 'tblTempVendorCDR_20' ) start [2025-01-11 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225723', 'tblTempVendorCDR_20' ) end [2025-01-11 17:15:18] Production.INFO: ProcessCDR(1,14225723,1,1,2) [2025-01-11 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225723', 'tblTempUsageDetail_20' ) start [2025-01-11 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225723', 'tblTempUsageDetail_20' ) end [2025-01-11 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:15:23] Production.INFO: ==4836== Releasing lock... [2025-01-11 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:15:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:16:05 [end_date_ymd] => 2025-01-11 17:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:16:05' and `end` < '2025-01-11 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-11 17:16:19] Production.INFO: count ==1595 [2025-01-11 17:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:16:05 - End Time 2025-01-11 17:16:05 [2025-01-11 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225728', 'tblTempUsageDetail_20' ) start [2025-01-11 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225728', 'tblTempUsageDetail_20' ) end [2025-01-11 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225728', 'tblTempVendorCDR_20' ) start [2025-01-11 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225728', 'tblTempVendorCDR_20' ) end [2025-01-11 17:16:19] Production.INFO: ProcessCDR(1,14225728,1,1,2) [2025-01-11 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225728', 'tblTempUsageDetail_20' ) start [2025-01-11 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225728', 'tblTempUsageDetail_20' ) end [2025-01-11 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:16:24] Production.INFO: ==4909== Releasing lock... [2025-01-11 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:16:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:17:04 [end_date_ymd] => 2025-01-11 17:17:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:17:04' and `end` < '2025-01-11 17: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-11 17:17:18] Production.INFO: count ==1588 [2025-01-11 17:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:17:04 - End Time 2025-01-11 17:17:04 [2025-01-11 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225733', 'tblTempUsageDetail_20' ) start [2025-01-11 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225733', 'tblTempUsageDetail_20' ) end [2025-01-11 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225733', 'tblTempVendorCDR_20' ) start [2025-01-11 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225733', 'tblTempVendorCDR_20' ) end [2025-01-11 17:17:18] Production.INFO: ProcessCDR(1,14225733,1,1,2) [2025-01-11 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225733', 'tblTempUsageDetail_20' ) start [2025-01-11 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225733', 'tblTempUsageDetail_20' ) end [2025-01-11 17:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:17:21] Production.INFO: ==4980== Releasing lock... [2025-01-11 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:17:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:18:05 [end_date_ymd] => 2025-01-11 17:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:18:05' and `end` < '2025-01-11 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-11 17:18:19] Production.INFO: count ==1587 [2025-01-11 17:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:18:05 - End Time 2025-01-11 17:18:05 [2025-01-11 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225738', 'tblTempUsageDetail_20' ) start [2025-01-11 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225738', 'tblTempUsageDetail_20' ) end [2025-01-11 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225738', 'tblTempVendorCDR_20' ) start [2025-01-11 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225738', 'tblTempVendorCDR_20' ) end [2025-01-11 17:18:19] Production.INFO: ProcessCDR(1,14225738,1,1,2) [2025-01-11 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225738', 'tblTempUsageDetail_20' ) start [2025-01-11 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225738', 'tblTempUsageDetail_20' ) end [2025-01-11 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:18:23] Production.INFO: ==5050== Releasing lock... [2025-01-11 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:18:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:19:05 [end_date_ymd] => 2025-01-11 17:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:19:05' and `end` < '2025-01-11 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-11 17:19:21] Production.INFO: count ==1592 [2025-01-11 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:19:05 - End Time 2025-01-11 17:19:05 [2025-01-11 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225743', 'tblTempUsageDetail_20' ) start [2025-01-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225743', 'tblTempUsageDetail_20' ) end [2025-01-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225743', 'tblTempVendorCDR_20' ) start [2025-01-11 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225743', 'tblTempVendorCDR_20' ) end [2025-01-11 17:19:21] Production.INFO: ProcessCDR(1,14225743,1,1,2) [2025-01-11 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225743', 'tblTempUsageDetail_20' ) start [2025-01-11 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225743', 'tblTempUsageDetail_20' ) end [2025-01-11 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:19:25] Production.INFO: ==5122== Releasing lock... [2025-01-11 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:19:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:20:05 [end_date_ymd] => 2025-01-11 17:20:05 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:20:05' and `end` < '2025-01-11 17: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-11 17:20:19] Production.INFO: count ==1593 [2025-01-11 17:20:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:20:05 - End Time 2025-01-11 17:20:05 [2025-01-11 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225749', 'tblTempUsageDetail_20' ) start [2025-01-11 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225749', 'tblTempUsageDetail_20' ) end [2025-01-11 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225749', 'tblTempVendorCDR_20' ) start [2025-01-11 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225749', 'tblTempVendorCDR_20' ) end [2025-01-11 17:20:20] Production.INFO: ProcessCDR(1,14225749,1,1,2) [2025-01-11 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225749', 'tblTempUsageDetail_20' ) start [2025-01-11 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225749', 'tblTempUsageDetail_20' ) end [2025-01-11 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:20:24] Production.INFO: ==5199== Releasing lock... [2025-01-11 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:20:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:21:05 [end_date_ymd] => 2025-01-11 17:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:21:05' and `end` < '2025-01-11 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-11 17:21:21] Production.INFO: count ==1639 [2025-01-11 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:21:05 - End Time 2025-01-11 17:21:05 [2025-01-11 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225754', 'tblTempUsageDetail_20' ) start [2025-01-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225754', 'tblTempUsageDetail_20' ) end [2025-01-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225754', 'tblTempVendorCDR_20' ) start [2025-01-11 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225754', 'tblTempVendorCDR_20' ) end [2025-01-11 17:21:21] Production.INFO: ProcessCDR(1,14225754,1,1,2) [2025-01-11 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225754', 'tblTempUsageDetail_20' ) start [2025-01-11 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225754', 'tblTempUsageDetail_20' ) end [2025-01-11 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:21:26] Production.INFO: ==5273== Releasing lock... [2025-01-11 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:21:26] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:22:05 [end_date_ymd] => 2025-01-11 17:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:22:05' and `end` < '2025-01-11 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-11 17:22:19] Production.INFO: count ==1639 [2025-01-11 17:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:22:05 - End Time 2025-01-11 17:22:05 [2025-01-11 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225759', 'tblTempUsageDetail_20' ) start [2025-01-11 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225759', 'tblTempUsageDetail_20' ) end [2025-01-11 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225759', 'tblTempVendorCDR_20' ) start [2025-01-11 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225759', 'tblTempVendorCDR_20' ) end [2025-01-11 17:22:19] Production.INFO: ProcessCDR(1,14225759,1,1,2) [2025-01-11 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225759', 'tblTempUsageDetail_20' ) start [2025-01-11 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225759', 'tblTempUsageDetail_20' ) end [2025-01-11 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:22:24] Production.INFO: ==5346== Releasing lock... [2025-01-11 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:22:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:23:04 [end_date_ymd] => 2025-01-11 17:23:04 [RateCDR] => 1 ) [2025-01-11 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-11 14:23:04' and `end` < '2025-01-11 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-11 17:23:18] Production.INFO: count ==1643 [2025-01-11 17:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:23:04 - End Time 2025-01-11 17:23:04 [2025-01-11 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225764', 'tblTempUsageDetail_20' ) start [2025-01-11 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225764', 'tblTempUsageDetail_20' ) end [2025-01-11 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225764', 'tblTempVendorCDR_20' ) start [2025-01-11 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225764', 'tblTempVendorCDR_20' ) end [2025-01-11 17:23:18] Production.INFO: ProcessCDR(1,14225764,1,1,2) [2025-01-11 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225764', 'tblTempUsageDetail_20' ) start [2025-01-11 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225764', 'tblTempUsageDetail_20' ) end [2025-01-11 17:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:23:22] Production.INFO: ==5416== Releasing lock... [2025-01-11 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:23:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:24:05 [end_date_ymd] => 2025-01-11 17:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:24:05' and `end` < '2025-01-11 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-11 17:24:19] Production.INFO: count ==1641 [2025-01-11 17:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:24:05 - End Time 2025-01-11 17:24:05 [2025-01-11 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225769', 'tblTempUsageDetail_20' ) start [2025-01-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225769', 'tblTempUsageDetail_20' ) end [2025-01-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225769', 'tblTempVendorCDR_20' ) start [2025-01-11 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225769', 'tblTempVendorCDR_20' ) end [2025-01-11 17:24:20] Production.INFO: ProcessCDR(1,14225769,1,1,2) [2025-01-11 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225769', 'tblTempUsageDetail_20' ) start [2025-01-11 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225769', 'tblTempUsageDetail_20' ) end [2025-01-11 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:24:23] Production.INFO: ==5489== Releasing lock... [2025-01-11 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:24:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:25:05 [end_date_ymd] => 2025-01-11 17:25:05 [RateCDR] => 1 ) [2025-01-11 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:25:05' and `end` < '2025-01-11 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:25:19] Production.INFO: count ==1624 [2025-01-11 17:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:25:05 - End Time 2025-01-11 17:25:05 [2025-01-11 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225774', 'tblTempUsageDetail_20' ) start [2025-01-11 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225774', 'tblTempUsageDetail_20' ) end [2025-01-11 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225774', 'tblTempVendorCDR_20' ) start [2025-01-11 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225774', 'tblTempVendorCDR_20' ) end [2025-01-11 17:25:19] Production.INFO: ProcessCDR(1,14225774,1,1,2) [2025-01-11 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225774', 'tblTempUsageDetail_20' ) start [2025-01-11 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225774', 'tblTempUsageDetail_20' ) end [2025-01-11 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:25:24] Production.INFO: ==5558== Releasing lock... [2025-01-11 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:25:24] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:26:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:26:18 [end_date_ymd] => 2025-01-11 17:26:18 [RateCDR] => 1 ) [2025-01-11 17:26: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-11 14:26:18' and `end` < '2025-01-11 17:26: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-11 17:26:33] Production.INFO: count ==1614 [2025-01-11 17:26:44] Production.ERROR: pbx CDR StartTime 2025-01-11 14:26:18 - End Time 2025-01-11 17:26:18 [2025-01-11 17:26:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225779', 'tblTempUsageDetail_20' ) start [2025-01-11 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225779', 'tblTempUsageDetail_20' ) end [2025-01-11 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225779', 'tblTempVendorCDR_20' ) start [2025-01-11 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225779', 'tblTempVendorCDR_20' ) end [2025-01-11 17:26:44] Production.INFO: ProcessCDR(1,14225779,1,1,2) [2025-01-11 17:26:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:26:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:26:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225779', 'tblTempUsageDetail_20' ) start [2025-01-11 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225779', 'tblTempUsageDetail_20' ) end [2025-01-11 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:27:28] Production.INFO: ==5672== Releasing lock... [2025-01-11 17:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:27:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:28:14] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:28:14 [end_date_ymd] => 2025-01-11 17:28:14 [RateCDR] => 1 ) [2025-01-11 17:28: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-11 14:28:14' and `end` < '2025-01-11 17:28: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-11 17:28:28] Production.INFO: count ==1615 [2025-01-11 17:28:34] Production.ERROR: pbx CDR StartTime 2025-01-11 14:28:14 - End Time 2025-01-11 17:28:14 [2025-01-11 17:28:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225787', 'tblTempUsageDetail_20' ) start [2025-01-11 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225787', 'tblTempUsageDetail_20' ) end [2025-01-11 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225787', 'tblTempVendorCDR_20' ) start [2025-01-11 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225787', 'tblTempVendorCDR_20' ) end [2025-01-11 17:28:36] Production.INFO: ProcessCDR(1,14225787,1,1,2) [2025-01-11 17:28:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:28:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:28:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:29:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:29:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225787', 'tblTempUsageDetail_20' ) start [2025-01-11 17:29:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225787', 'tblTempUsageDetail_20' ) end [2025-01-11 17:29:01] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:29:01] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:29:05] Production.INFO: ==5804== Releasing lock... [2025-01-11 17:29:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:29:05] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:30:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:30:16 [end_date_ymd] => 2025-01-11 17:30:16 [RateCDR] => 1 ) [2025-01-11 17:30:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:30:16' and `end` < '2025-01-11 17:30:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:30:32] Production.INFO: count ==1630 [2025-01-11 17:30:37] Production.ERROR: pbx CDR StartTime 2025-01-11 14:30:16 - End Time 2025-01-11 17:30:16 [2025-01-11 17:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225796', 'tblTempUsageDetail_20' ) start [2025-01-11 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225796', 'tblTempUsageDetail_20' ) end [2025-01-11 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225796', 'tblTempVendorCDR_20' ) start [2025-01-11 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225796', 'tblTempVendorCDR_20' ) end [2025-01-11 17:30:37] Production.INFO: ProcessCDR(1,14225796,1,1,2) [2025-01-11 17:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:31:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225796', 'tblTempUsageDetail_20' ) start [2025-01-11 17:31:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225796', 'tblTempUsageDetail_20' ) end [2025-01-11 17:31:08] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:31:08] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:31:09] Production.INFO: ==5944== Releasing lock... [2025-01-11 17:31:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:31:09] Production.INFO: 40 MB #Memory Used# [2025-01-11 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:32:05 [end_date_ymd] => 2025-01-11 17:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:32:05' and `end` < '2025-01-11 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-11 17:32:20] Production.INFO: count ==1671 [2025-01-11 17:32:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:32:05 - End Time 2025-01-11 17:32:05 [2025-01-11 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225804', 'tblTempUsageDetail_20' ) start [2025-01-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225804', 'tblTempUsageDetail_20' ) end [2025-01-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225804', 'tblTempVendorCDR_20' ) start [2025-01-11 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225804', 'tblTempVendorCDR_20' ) end [2025-01-11 17:32:20] Production.INFO: ProcessCDR(1,14225804,1,1,2) [2025-01-11 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225804', 'tblTempUsageDetail_20' ) start [2025-01-11 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225804', 'tblTempUsageDetail_20' ) end [2025-01-11 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:32:25] Production.INFO: ==6091== Releasing lock... [2025-01-11 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:32:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:33:04 [end_date_ymd] => 2025-01-11 17:33:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:33:04' and `end` < '2025-01-11 17: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-11 17:33:18] Production.INFO: count ==1668 [2025-01-11 17:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:33:04 - End Time 2025-01-11 17:33:04 [2025-01-11 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225809', 'tblTempUsageDetail_20' ) start [2025-01-11 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225809', 'tblTempUsageDetail_20' ) end [2025-01-11 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225809', 'tblTempVendorCDR_20' ) start [2025-01-11 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225809', 'tblTempVendorCDR_20' ) end [2025-01-11 17:33:18] Production.INFO: ProcessCDR(1,14225809,1,1,2) [2025-01-11 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225809', 'tblTempUsageDetail_20' ) start [2025-01-11 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225809', 'tblTempUsageDetail_20' ) end [2025-01-11 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:33:23] Production.INFO: ==6173== Releasing lock... [2025-01-11 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:33:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:34:05 [end_date_ymd] => 2025-01-11 17:34:05 [RateCDR] => 1 ) [2025-01-11 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:34:05' and `end` < '2025-01-11 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:34:18] Production.INFO: count ==1668 [2025-01-11 17:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:34:05 - End Time 2025-01-11 17:34:05 [2025-01-11 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225814', 'tblTempUsageDetail_20' ) start [2025-01-11 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225814', 'tblTempUsageDetail_20' ) end [2025-01-11 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225814', 'tblTempVendorCDR_20' ) start [2025-01-11 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225814', 'tblTempVendorCDR_20' ) end [2025-01-11 17:34:18] Production.INFO: ProcessCDR(1,14225814,1,1,2) [2025-01-11 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225814', 'tblTempUsageDetail_20' ) start [2025-01-11 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225814', 'tblTempUsageDetail_20' ) end [2025-01-11 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:34:23] Production.INFO: ==6262== Releasing lock... [2025-01-11 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:34:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:35:05 [end_date_ymd] => 2025-01-11 17:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:35:05' and `end` < '2025-01-11 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-11 17:35:22] Production.INFO: count ==1686 [2025-01-11 17:35:22] Production.ERROR: pbx CDR StartTime 2025-01-11 14:35:05 - End Time 2025-01-11 17:35:05 [2025-01-11 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225819', 'tblTempUsageDetail_20' ) start [2025-01-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225819', 'tblTempUsageDetail_20' ) end [2025-01-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225819', 'tblTempVendorCDR_20' ) start [2025-01-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225819', 'tblTempVendorCDR_20' ) end [2025-01-11 17:35:22] Production.INFO: ProcessCDR(1,14225819,1,1,2) [2025-01-11 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225819', 'tblTempUsageDetail_20' ) start [2025-01-11 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225819', 'tblTempUsageDetail_20' ) end [2025-01-11 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:35:26] Production.INFO: ==6344== Releasing lock... [2025-01-11 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:35:26] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:36:04 [end_date_ymd] => 2025-01-11 17:36:04 [RateCDR] => 1 ) [2025-01-11 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-11 14:36:04' and `end` < '2025-01-11 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-11 17:36:19] Production.INFO: count ==1685 [2025-01-11 17:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:36:04 - End Time 2025-01-11 17:36:04 [2025-01-11 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225824', 'tblTempUsageDetail_20' ) start [2025-01-11 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225824', 'tblTempUsageDetail_20' ) end [2025-01-11 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225824', 'tblTempVendorCDR_20' ) start [2025-01-11 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225824', 'tblTempVendorCDR_20' ) end [2025-01-11 17:36:19] Production.INFO: ProcessCDR(1,14225824,1,1,2) [2025-01-11 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225824', 'tblTempUsageDetail_20' ) start [2025-01-11 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225824', 'tblTempUsageDetail_20' ) end [2025-01-11 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:36:24] Production.INFO: ==6427== Releasing lock... [2025-01-11 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:36:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:37:06 [end_date_ymd] => 2025-01-11 17:37:06 [RateCDR] => 1 ) [2025-01-11 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:37:06' and `end` < '2025-01-11 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:37:19] Production.INFO: count ==1684 [2025-01-11 17:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:37:06 - End Time 2025-01-11 17:37:06 [2025-01-11 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225829', 'tblTempUsageDetail_20' ) start [2025-01-11 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225829', 'tblTempUsageDetail_20' ) end [2025-01-11 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225829', 'tblTempVendorCDR_20' ) start [2025-01-11 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225829', 'tblTempVendorCDR_20' ) end [2025-01-11 17:37:19] Production.INFO: ProcessCDR(1,14225829,1,1,2) [2025-01-11 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225829', 'tblTempUsageDetail_20' ) start [2025-01-11 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225829', 'tblTempUsageDetail_20' ) end [2025-01-11 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:37:24] Production.INFO: ==6510== Releasing lock... [2025-01-11 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:37:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:38:05 [end_date_ymd] => 2025-01-11 17:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:38:05' and `end` < '2025-01-11 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-11 17:38:19] Production.INFO: count ==1680 [2025-01-11 17:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:38:05 - End Time 2025-01-11 17:38:05 [2025-01-11 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225834', 'tblTempUsageDetail_20' ) start [2025-01-11 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225834', 'tblTempUsageDetail_20' ) end [2025-01-11 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225834', 'tblTempVendorCDR_20' ) start [2025-01-11 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225834', 'tblTempVendorCDR_20' ) end [2025-01-11 17:38:19] Production.INFO: ProcessCDR(1,14225834,1,1,2) [2025-01-11 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225834', 'tblTempUsageDetail_20' ) start [2025-01-11 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225834', 'tblTempUsageDetail_20' ) end [2025-01-11 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:38:22] Production.INFO: ==6592== Releasing lock... [2025-01-11 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:39:05 [end_date_ymd] => 2025-01-11 17:39:05 [RateCDR] => 1 ) [2025-01-11 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:39:05' and `end` < '2025-01-11 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:39:20] Production.INFO: count ==1676 [2025-01-11 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:39:05 - End Time 2025-01-11 17:39:05 [2025-01-11 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225839', 'tblTempUsageDetail_20' ) start [2025-01-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225839', 'tblTempUsageDetail_20' ) end [2025-01-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225839', 'tblTempVendorCDR_20' ) start [2025-01-11 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225839', 'tblTempVendorCDR_20' ) end [2025-01-11 17:39:20] Production.INFO: ProcessCDR(1,14225839,1,1,2) [2025-01-11 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225839', 'tblTempUsageDetail_20' ) start [2025-01-11 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225839', 'tblTempUsageDetail_20' ) end [2025-01-11 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:39:23] Production.INFO: ==6679== Releasing lock... [2025-01-11 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:40:05 [end_date_ymd] => 2025-01-11 17:40:05 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:40:05' and `end` < '2025-01-11 17: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-11 17:40:20] Production.INFO: count ==1678 [2025-01-11 17:40:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:40:05 - End Time 2025-01-11 17:40:05 [2025-01-11 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225845', 'tblTempUsageDetail_20' ) start [2025-01-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225845', 'tblTempUsageDetail_20' ) end [2025-01-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225845', 'tblTempVendorCDR_20' ) start [2025-01-11 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225845', 'tblTempVendorCDR_20' ) end [2025-01-11 17:40:21] Production.INFO: ProcessCDR(1,14225845,1,1,2) [2025-01-11 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225845', 'tblTempUsageDetail_20' ) start [2025-01-11 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225845', 'tblTempUsageDetail_20' ) end [2025-01-11 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:40:24] Production.INFO: ==6763== Releasing lock... [2025-01-11 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:40:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:41:05 [end_date_ymd] => 2025-01-11 17:41:05 [RateCDR] => 1 ) [2025-01-11 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:41:05' and `end` < '2025-01-11 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:41:20] Production.INFO: count ==1700 [2025-01-11 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:41:05 - End Time 2025-01-11 17:41:05 [2025-01-11 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225850', 'tblTempUsageDetail_20' ) start [2025-01-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225850', 'tblTempUsageDetail_20' ) end [2025-01-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225850', 'tblTempVendorCDR_20' ) start [2025-01-11 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225850', 'tblTempVendorCDR_20' ) end [2025-01-11 17:41:20] Production.INFO: ProcessCDR(1,14225850,1,1,2) [2025-01-11 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225850', 'tblTempUsageDetail_20' ) start [2025-01-11 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225850', 'tblTempUsageDetail_20' ) end [2025-01-11 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:41:25] Production.INFO: ==6885== Releasing lock... [2025-01-11 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:41:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:42:04 [end_date_ymd] => 2025-01-11 17:42:04 [RateCDR] => 1 ) [2025-01-11 17:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:42:04' and `end` < '2025-01-11 17:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:42:17] Production.INFO: count ==1694 [2025-01-11 17:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:42:04 - End Time 2025-01-11 17:42:04 [2025-01-11 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225855', 'tblTempUsageDetail_20' ) start [2025-01-11 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225855', 'tblTempUsageDetail_20' ) end [2025-01-11 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225855', 'tblTempVendorCDR_20' ) start [2025-01-11 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225855', 'tblTempVendorCDR_20' ) end [2025-01-11 17:42:18] Production.INFO: ProcessCDR(1,14225855,1,1,2) [2025-01-11 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225855', 'tblTempUsageDetail_20' ) start [2025-01-11 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225855', 'tblTempUsageDetail_20' ) end [2025-01-11 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:42:22] Production.INFO: ==6966== Releasing lock... [2025-01-11 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:42:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:43:04 [end_date_ymd] => 2025-01-11 17:43:04 [RateCDR] => 1 ) [2025-01-11 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-11 14:43:04' and `end` < '2025-01-11 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-11 17:43:18] Production.INFO: count ==1695 [2025-01-11 17:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:43:04 - End Time 2025-01-11 17:43:04 [2025-01-11 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225860', 'tblTempUsageDetail_20' ) start [2025-01-11 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225860', 'tblTempUsageDetail_20' ) end [2025-01-11 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225860', 'tblTempVendorCDR_20' ) start [2025-01-11 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225860', 'tblTempVendorCDR_20' ) end [2025-01-11 17:43:19] Production.INFO: ProcessCDR(1,14225860,1,1,2) [2025-01-11 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225860', 'tblTempUsageDetail_20' ) start [2025-01-11 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225860', 'tblTempUsageDetail_20' ) end [2025-01-11 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:43:23] Production.INFO: ==7046== Releasing lock... [2025-01-11 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:43:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:44:05 [end_date_ymd] => 2025-01-11 17:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:44:05' and `end` < '2025-01-11 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-11 17:44:19] Production.INFO: count ==1695 [2025-01-11 17:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:44:05 - End Time 2025-01-11 17:44:05 [2025-01-11 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225865', 'tblTempUsageDetail_20' ) start [2025-01-11 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225865', 'tblTempUsageDetail_20' ) end [2025-01-11 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225865', 'tblTempVendorCDR_20' ) start [2025-01-11 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225865', 'tblTempVendorCDR_20' ) end [2025-01-11 17:44:19] Production.INFO: ProcessCDR(1,14225865,1,1,2) [2025-01-11 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225865', 'tblTempUsageDetail_20' ) start [2025-01-11 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225865', 'tblTempUsageDetail_20' ) end [2025-01-11 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:44:23] Production.INFO: ==7130== Releasing lock... [2025-01-11 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:44:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:45:05 [end_date_ymd] => 2025-01-11 17:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:45:05' and `end` < '2025-01-11 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-11 17:45:27] Production.INFO: count ==1700 [2025-01-11 17:45:27] Production.ERROR: pbx CDR StartTime 2025-01-11 14:45:05 - End Time 2025-01-11 17:45:05 [2025-01-11 17:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225870', 'tblTempUsageDetail_20' ) start [2025-01-11 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225870', 'tblTempUsageDetail_20' ) end [2025-01-11 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225870', 'tblTempVendorCDR_20' ) start [2025-01-11 17:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225870', 'tblTempVendorCDR_20' ) end [2025-01-11 17:45:27] Production.INFO: ProcessCDR(1,14225870,1,1,2) [2025-01-11 17:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225870', 'tblTempUsageDetail_20' ) start [2025-01-11 17:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225870', 'tblTempUsageDetail_20' ) end [2025-01-11 17:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:45:30] Production.INFO: ==7213== Releasing lock... [2025-01-11 17:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:45:30] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:46:06 [end_date_ymd] => 2025-01-11 17:46:06 [RateCDR] => 1 ) [2025-01-11 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:46:06' and `end` < '2025-01-11 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:46:22] Production.INFO: count ==1702 [2025-01-11 17:46:23] Production.ERROR: pbx CDR StartTime 2025-01-11 14:46:06 - End Time 2025-01-11 17:46:06 [2025-01-11 17:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225875', 'tblTempUsageDetail_20' ) start [2025-01-11 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225875', 'tblTempUsageDetail_20' ) end [2025-01-11 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225875', 'tblTempVendorCDR_20' ) start [2025-01-11 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225875', 'tblTempVendorCDR_20' ) end [2025-01-11 17:46:23] Production.INFO: ProcessCDR(1,14225875,1,1,2) [2025-01-11 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225875', 'tblTempUsageDetail_20' ) start [2025-01-11 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225875', 'tblTempUsageDetail_20' ) end [2025-01-11 17:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:46:28] Production.INFO: ==7295== Releasing lock... [2025-01-11 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:46:28] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:47:04 [end_date_ymd] => 2025-01-11 17:47:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:47:04' and `end` < '2025-01-11 17: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-11 17:47:18] Production.INFO: count ==1702 [2025-01-11 17:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:47:04 - End Time 2025-01-11 17:47:04 [2025-01-11 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225880', 'tblTempUsageDetail_20' ) start [2025-01-11 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225880', 'tblTempUsageDetail_20' ) end [2025-01-11 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225880', 'tblTempVendorCDR_20' ) start [2025-01-11 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225880', 'tblTempVendorCDR_20' ) end [2025-01-11 17:47:18] Production.INFO: ProcessCDR(1,14225880,1,1,2) [2025-01-11 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225880', 'tblTempUsageDetail_20' ) start [2025-01-11 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225880', 'tblTempUsageDetail_20' ) end [2025-01-11 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:47:22] Production.INFO: ==7375== Releasing lock... [2025-01-11 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:48:05 [end_date_ymd] => 2025-01-11 17:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:48:05' and `end` < '2025-01-11 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-11 17:48:22] Production.INFO: count ==1707 [2025-01-11 17:48:22] Production.ERROR: pbx CDR StartTime 2025-01-11 14:48:05 - End Time 2025-01-11 17:48:05 [2025-01-11 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225885', 'tblTempUsageDetail_20' ) start [2025-01-11 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225885', 'tblTempUsageDetail_20' ) end [2025-01-11 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225885', 'tblTempVendorCDR_20' ) start [2025-01-11 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225885', 'tblTempVendorCDR_20' ) end [2025-01-11 17:48:22] Production.INFO: ProcessCDR(1,14225885,1,1,2) [2025-01-11 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225885', 'tblTempUsageDetail_20' ) start [2025-01-11 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225885', 'tblTempUsageDetail_20' ) end [2025-01-11 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:48:25] Production.INFO: ==7465== Releasing lock... [2025-01-11 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:48:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:49:05 [end_date_ymd] => 2025-01-11 17:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:49:05' and `end` < '2025-01-11 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-11 17:49:18] Production.INFO: count ==1703 [2025-01-11 17:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:49:05 - End Time 2025-01-11 17:49:05 [2025-01-11 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225890', 'tblTempUsageDetail_20' ) start [2025-01-11 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225890', 'tblTempUsageDetail_20' ) end [2025-01-11 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225890', 'tblTempVendorCDR_20' ) start [2025-01-11 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225890', 'tblTempVendorCDR_20' ) end [2025-01-11 17:49:18] Production.INFO: ProcessCDR(1,14225890,1,1,2) [2025-01-11 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225890', 'tblTempUsageDetail_20' ) start [2025-01-11 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225890', 'tblTempUsageDetail_20' ) end [2025-01-11 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:49:23] Production.INFO: ==7549== Releasing lock... [2025-01-11 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:50:06 [end_date_ymd] => 2025-01-11 17:50:06 [RateCDR] => 1 ) [2025-01-11 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:50:06' and `end` < '2025-01-11 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:50:20] Production.INFO: count ==1690 [2025-01-11 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-11 14:50:06 - End Time 2025-01-11 17:50:06 [2025-01-11 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225896', 'tblTempUsageDetail_20' ) start [2025-01-11 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225896', 'tblTempUsageDetail_20' ) end [2025-01-11 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225896', 'tblTempVendorCDR_20' ) start [2025-01-11 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225896', 'tblTempVendorCDR_20' ) end [2025-01-11 17:50:21] Production.INFO: ProcessCDR(1,14225896,1,1,2) [2025-01-11 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225896', 'tblTempUsageDetail_20' ) start [2025-01-11 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225896', 'tblTempUsageDetail_20' ) end [2025-01-11 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:50:25] Production.INFO: ==7632== Releasing lock... [2025-01-11 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:50:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:51:05 [end_date_ymd] => 2025-01-11 17:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:51:05' and `end` < '2025-01-11 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-11 17:51:18] Production.INFO: count ==1727 [2025-01-11 17:51:19] Production.ERROR: pbx CDR StartTime 2025-01-11 14:51:05 - End Time 2025-01-11 17:51:05 [2025-01-11 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225901', 'tblTempUsageDetail_20' ) start [2025-01-11 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225901', 'tblTempUsageDetail_20' ) end [2025-01-11 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225901', 'tblTempVendorCDR_20' ) start [2025-01-11 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225901', 'tblTempVendorCDR_20' ) end [2025-01-11 17:51:19] Production.INFO: ProcessCDR(1,14225901,1,1,2) [2025-01-11 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225901', 'tblTempUsageDetail_20' ) start [2025-01-11 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225901', 'tblTempUsageDetail_20' ) end [2025-01-11 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:51:23] Production.INFO: ==7718== Releasing lock... [2025-01-11 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:52:05 [end_date_ymd] => 2025-01-11 17:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:52:05' and `end` < '2025-01-11 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-11 17:52:20] Production.INFO: count ==1728 [2025-01-11 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:52:05 - End Time 2025-01-11 17:52:05 [2025-01-11 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225906', 'tblTempUsageDetail_20' ) start [2025-01-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225906', 'tblTempUsageDetail_20' ) end [2025-01-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225906', 'tblTempVendorCDR_20' ) start [2025-01-11 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225906', 'tblTempVendorCDR_20' ) end [2025-01-11 17:52:20] Production.INFO: ProcessCDR(1,14225906,1,1,2) [2025-01-11 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225906', 'tblTempUsageDetail_20' ) start [2025-01-11 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225906', 'tblTempUsageDetail_20' ) end [2025-01-11 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:52:23] Production.INFO: ==7802== Releasing lock... [2025-01-11 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:52:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:53:05 [end_date_ymd] => 2025-01-11 17:53:05 [RateCDR] => 1 ) [2025-01-11 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:53:05' and `end` < '2025-01-11 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:53:25] Production.INFO: count ==1735 [2025-01-11 17:53:25] Production.ERROR: pbx CDR StartTime 2025-01-11 14:53:05 - End Time 2025-01-11 17:53:05 [2025-01-11 17:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225911', 'tblTempUsageDetail_20' ) start [2025-01-11 17:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225911', 'tblTempUsageDetail_20' ) end [2025-01-11 17:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225911', 'tblTempVendorCDR_20' ) start [2025-01-11 17:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225911', 'tblTempVendorCDR_20' ) end [2025-01-11 17:53:25] Production.INFO: ProcessCDR(1,14225911,1,1,2) [2025-01-11 17:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225911', 'tblTempUsageDetail_20' ) start [2025-01-11 17:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225911', 'tblTempUsageDetail_20' ) end [2025-01-11 17:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:53:30] Production.INFO: ==7884== Releasing lock... [2025-01-11 17:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:53:30] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:54:05 [end_date_ymd] => 2025-01-11 17:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:54:05' and `end` < '2025-01-11 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-11 17:54:23] Production.INFO: count ==1740 [2025-01-11 17:54:24] Production.ERROR: pbx CDR StartTime 2025-01-11 14:54:05 - End Time 2025-01-11 17:54:05 [2025-01-11 17:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225916', 'tblTempUsageDetail_20' ) start [2025-01-11 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225916', 'tblTempUsageDetail_20' ) end [2025-01-11 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225916', 'tblTempVendorCDR_20' ) start [2025-01-11 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225916', 'tblTempVendorCDR_20' ) end [2025-01-11 17:54:24] Production.INFO: ProcessCDR(1,14225916,1,1,2) [2025-01-11 17:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225916', 'tblTempUsageDetail_20' ) start [2025-01-11 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225916', 'tblTempUsageDetail_20' ) end [2025-01-11 17:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:54:28] Production.INFO: ==7968== Releasing lock... [2025-01-11 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:54:28] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:55:05 [end_date_ymd] => 2025-01-11 17:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 14:55:05' and `end` < '2025-01-11 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-11 17:55:18] Production.INFO: count ==1745 [2025-01-11 17:55:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:55:05 - End Time 2025-01-11 17:55:05 [2025-01-11 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225918', 'tblTempUsageDetail_20' ) start [2025-01-11 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225918', 'tblTempUsageDetail_20' ) end [2025-01-11 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225918', 'tblTempVendorCDR_20' ) start [2025-01-11 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225918', 'tblTempVendorCDR_20' ) end [2025-01-11 17:55:18] Production.INFO: ProcessCDR(1,14225918,1,1,2) [2025-01-11 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225918', 'tblTempUsageDetail_20' ) start [2025-01-11 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225918', 'tblTempUsageDetail_20' ) end [2025-01-11 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:55:23] Production.INFO: ==8051== Releasing lock... [2025-01-11 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:55:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:56:04 [end_date_ymd] => 2025-01-11 17:56:04 [RateCDR] => 1 ) [2025-01-11 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:56:04' and `end` < '2025-01-11 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-11 17:56:18] Production.INFO: count ==1743 [2025-01-11 17:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:56:04 - End Time 2025-01-11 17:56:04 [2025-01-11 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225926', 'tblTempUsageDetail_20' ) start [2025-01-11 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225926', 'tblTempUsageDetail_20' ) end [2025-01-11 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225926', 'tblTempVendorCDR_20' ) start [2025-01-11 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225926', 'tblTempVendorCDR_20' ) end [2025-01-11 17:56:18] Production.INFO: ProcessCDR(1,14225926,1,1,2) [2025-01-11 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225926', 'tblTempUsageDetail_20' ) start [2025-01-11 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225926', 'tblTempUsageDetail_20' ) end [2025-01-11 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:56:23] Production.INFO: ==8134== Releasing lock... [2025-01-11 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:57:05 [end_date_ymd] => 2025-01-11 17:57:05 [RateCDR] => 1 ) [2025-01-11 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 14:57:05' and `end` < '2025-01-11 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 17:57:20] Production.INFO: count ==1742 [2025-01-11 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-11 14:57:05 - End Time 2025-01-11 17:57:05 [2025-01-11 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225931', 'tblTempUsageDetail_20' ) start [2025-01-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225931', 'tblTempUsageDetail_20' ) end [2025-01-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225931', 'tblTempVendorCDR_20' ) start [2025-01-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225931', 'tblTempVendorCDR_20' ) end [2025-01-11 17:57:20] Production.INFO: ProcessCDR(1,14225931,1,1,2) [2025-01-11 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225931', 'tblTempUsageDetail_20' ) start [2025-01-11 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225931', 'tblTempUsageDetail_20' ) end [2025-01-11 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:57:24] Production.INFO: ==8255== Releasing lock... [2025-01-11 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:57:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:58:04 [end_date_ymd] => 2025-01-11 17:58:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:58:04' and `end` < '2025-01-11 17: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-11 17:58:18] Production.INFO: count ==1744 [2025-01-11 17:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:58:04 - End Time 2025-01-11 17:58:04 [2025-01-11 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225936', 'tblTempUsageDetail_20' ) start [2025-01-11 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225936', 'tblTempUsageDetail_20' ) end [2025-01-11 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225936', 'tblTempVendorCDR_20' ) start [2025-01-11 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225936', 'tblTempVendorCDR_20' ) end [2025-01-11 17:58:18] Production.INFO: ProcessCDR(1,14225936,1,1,2) [2025-01-11 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225936', 'tblTempUsageDetail_20' ) start [2025-01-11 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225936', 'tblTempUsageDetail_20' ) end [2025-01-11 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:58:22] Production.INFO: ==8337== Releasing lock... [2025-01-11 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 14:59:04 [end_date_ymd] => 2025-01-11 17:59:04 [RateCDR] => 1 ) [2025-01-11 17: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-11 14:59:04' and `end` < '2025-01-11 17: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-11 17:59:18] Production.INFO: count ==1741 [2025-01-11 17:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 14:59:04 - End Time 2025-01-11 17:59:04 [2025-01-11 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225941', 'tblTempUsageDetail_20' ) start [2025-01-11 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225941', 'tblTempUsageDetail_20' ) end [2025-01-11 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225941', 'tblTempVendorCDR_20' ) start [2025-01-11 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225941', 'tblTempVendorCDR_20' ) end [2025-01-11 17:59:18] Production.INFO: ProcessCDR(1,14225941,1,1,2) [2025-01-11 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225941', 'tblTempUsageDetail_20' ) start [2025-01-11 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225941', 'tblTempUsageDetail_20' ) end [2025-01-11 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 17:59:22] Production.INFO: ==8420== Releasing lock... [2025-01-11 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 17:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:00:06 [end_date_ymd] => 2025-01-11 18:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 15:00:06' and `end` < '2025-01-11 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-11 18:00:22] Production.INFO: count ==1746 [2025-01-11 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-11 15:00:06 - End Time 2025-01-11 18:00:06 [2025-01-11 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225947', 'tblTempUsageDetail_20' ) start [2025-01-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225947', 'tblTempUsageDetail_20' ) end [2025-01-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225947', 'tblTempVendorCDR_20' ) start [2025-01-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225947', 'tblTempVendorCDR_20' ) end [2025-01-11 18:00:22] Production.INFO: ProcessCDR(1,14225947,1,1,2) [2025-01-11 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225947', 'tblTempUsageDetail_20' ) start [2025-01-11 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225947', 'tblTempUsageDetail_20' ) end [2025-01-11 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:00:26] Production.INFO: ==8515== Releasing lock... [2025-01-11 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:00:26] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:01:04 [end_date_ymd] => 2025-01-11 18:01:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:01:04' and `end` < '2025-01-11 18: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-11 18:01:18] Production.INFO: count ==1768 [2025-01-11 18:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:01:04 - End Time 2025-01-11 18:01:04 [2025-01-11 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225952', 'tblTempUsageDetail_20' ) start [2025-01-11 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225952', 'tblTempUsageDetail_20' ) end [2025-01-11 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225952', 'tblTempVendorCDR_20' ) start [2025-01-11 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225952', 'tblTempVendorCDR_20' ) end [2025-01-11 18:01:18] Production.INFO: ProcessCDR(1,14225952,1,1,2) [2025-01-11 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225952', 'tblTempUsageDetail_20' ) start [2025-01-11 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225952', 'tblTempUsageDetail_20' ) end [2025-01-11 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:01:23] Production.INFO: ==8618== Releasing lock... [2025-01-11 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:01:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:02:05 [end_date_ymd] => 2025-01-11 18:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:02:05' and `end` < '2025-01-11 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-11 18:02:20] Production.INFO: count ==1765 [2025-01-11 18:02:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:02:05 - End Time 2025-01-11 18:02:05 [2025-01-11 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225957', 'tblTempUsageDetail_20' ) start [2025-01-11 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225957', 'tblTempUsageDetail_20' ) end [2025-01-11 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225957', 'tblTempVendorCDR_20' ) start [2025-01-11 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225957', 'tblTempVendorCDR_20' ) end [2025-01-11 18:02:20] Production.INFO: ProcessCDR(1,14225957,1,1,2) [2025-01-11 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225957', 'tblTempUsageDetail_20' ) start [2025-01-11 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225957', 'tblTempUsageDetail_20' ) end [2025-01-11 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:02:25] Production.INFO: ==8706== Releasing lock... [2025-01-11 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:02:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:03:04 [end_date_ymd] => 2025-01-11 18:03:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:03:04' and `end` < '2025-01-11 18: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-11 18:03:18] Production.INFO: count ==1751 [2025-01-11 18:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:03:04 - End Time 2025-01-11 18:03:04 [2025-01-11 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225962', 'tblTempUsageDetail_20' ) start [2025-01-11 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225962', 'tblTempUsageDetail_20' ) end [2025-01-11 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225962', 'tblTempVendorCDR_20' ) start [2025-01-11 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225962', 'tblTempVendorCDR_20' ) end [2025-01-11 18:03:18] Production.INFO: ProcessCDR(1,14225962,1,1,2) [2025-01-11 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225962', 'tblTempUsageDetail_20' ) start [2025-01-11 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225962', 'tblTempUsageDetail_20' ) end [2025-01-11 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:03:21] Production.INFO: ==8788== Releasing lock... [2025-01-11 18:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:03:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:04:05 [end_date_ymd] => 2025-01-11 18:04:05 [RateCDR] => 1 ) [2025-01-11 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:04:05' and `end` < '2025-01-11 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:04:19] Production.INFO: count ==1765 [2025-01-11 18:04:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:04:05 - End Time 2025-01-11 18:04:05 [2025-01-11 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225967', 'tblTempUsageDetail_20' ) start [2025-01-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225967', 'tblTempUsageDetail_20' ) end [2025-01-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225967', 'tblTempVendorCDR_20' ) start [2025-01-11 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225967', 'tblTempVendorCDR_20' ) end [2025-01-11 18:04:20] Production.INFO: ProcessCDR(1,14225967,1,1,2) [2025-01-11 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225967', 'tblTempUsageDetail_20' ) start [2025-01-11 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225967', 'tblTempUsageDetail_20' ) end [2025-01-11 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:04:24] Production.INFO: ==8870== Releasing lock... [2025-01-11 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:04:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:05:06 [end_date_ymd] => 2025-01-11 18:05:06 [RateCDR] => 1 ) [2025-01-11 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-11 15:05:06' and `end` < '2025-01-11 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-11 18:05:21] Production.INFO: count ==1766 [2025-01-11 18:05:21] Production.ERROR: pbx CDR StartTime 2025-01-11 15:05:06 - End Time 2025-01-11 18:05:06 [2025-01-11 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225972', 'tblTempUsageDetail_20' ) start [2025-01-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225972', 'tblTempUsageDetail_20' ) end [2025-01-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225972', 'tblTempVendorCDR_20' ) start [2025-01-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225972', 'tblTempVendorCDR_20' ) end [2025-01-11 18:05:21] Production.INFO: ProcessCDR(1,14225972,1,1,2) [2025-01-11 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225972', 'tblTempUsageDetail_20' ) start [2025-01-11 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225972', 'tblTempUsageDetail_20' ) end [2025-01-11 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:05:24] Production.INFO: ==8956== Releasing lock... [2025-01-11 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:05:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:06:05 [end_date_ymd] => 2025-01-11 18:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:06:05' and `end` < '2025-01-11 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-11 18:06:19] Production.INFO: count ==1765 [2025-01-11 18:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:06:05 - End Time 2025-01-11 18:06:05 [2025-01-11 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225977', 'tblTempUsageDetail_20' ) start [2025-01-11 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225977', 'tblTempUsageDetail_20' ) end [2025-01-11 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225977', 'tblTempVendorCDR_20' ) start [2025-01-11 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225977', 'tblTempVendorCDR_20' ) end [2025-01-11 18:06:19] Production.INFO: ProcessCDR(1,14225977,1,1,2) [2025-01-11 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225977', 'tblTempUsageDetail_20' ) start [2025-01-11 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225977', 'tblTempUsageDetail_20' ) end [2025-01-11 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:06:24] Production.INFO: ==9038== Releasing lock... [2025-01-11 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:06:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-11 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:07:04 [end_date_ymd] => 2025-01-11 18:07:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:07:04' and `end` < '2025-01-11 18: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-11 18:07:25] Production.INFO: count ==1774 [2025-01-11 18:07:25] Production.ERROR: pbx CDR StartTime 2025-01-11 15:07:04 - End Time 2025-01-11 18:07:04 [2025-01-11 18:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225982', 'tblTempUsageDetail_20' ) start [2025-01-11 18:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225982', 'tblTempUsageDetail_20' ) end [2025-01-11 18:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225982', 'tblTempVendorCDR_20' ) start [2025-01-11 18:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225982', 'tblTempVendorCDR_20' ) end [2025-01-11 18:07:25] Production.INFO: ProcessCDR(1,14225982,1,1,2) [2025-01-11 18:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225982', 'tblTempUsageDetail_20' ) start [2025-01-11 18:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225982', 'tblTempUsageDetail_20' ) end [2025-01-11 18:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:07:30] Production.INFO: ==9122== Releasing lock... [2025-01-11 18:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:07:30] Production.INFO: 41 MB #Memory Used# [2025-01-11 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:08:05 [end_date_ymd] => 2025-01-11 18:08:05 [RateCDR] => 1 ) [2025-01-11 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:08:05' and `end` < '2025-01-11 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:08:23] Production.INFO: count ==1782 [2025-01-11 18:08:23] Production.ERROR: pbx CDR StartTime 2025-01-11 15:08:05 - End Time 2025-01-11 18:08:05 [2025-01-11 18:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225987', 'tblTempUsageDetail_20' ) start [2025-01-11 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225987', 'tblTempUsageDetail_20' ) end [2025-01-11 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225987', 'tblTempVendorCDR_20' ) start [2025-01-11 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225987', 'tblTempVendorCDR_20' ) end [2025-01-11 18:08:23] Production.INFO: ProcessCDR(1,14225987,1,1,2) [2025-01-11 18:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225987', 'tblTempUsageDetail_20' ) start [2025-01-11 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225987', 'tblTempUsageDetail_20' ) end [2025-01-11 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:08:26] Production.INFO: ==9204== Releasing lock... [2025-01-11 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:08:26] Production.INFO: 41 MB #Memory Used# [2025-01-11 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:09:04 [end_date_ymd] => 2025-01-11 18:09:04 [RateCDR] => 1 ) [2025-01-11 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-11 15:09:04' and `end` < '2025-01-11 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-11 18:09:18] Production.INFO: count ==1782 [2025-01-11 18:09:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:09:04 - End Time 2025-01-11 18:09:04 [2025-01-11 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225992', 'tblTempUsageDetail_20' ) start [2025-01-11 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225992', 'tblTempUsageDetail_20' ) end [2025-01-11 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225992', 'tblTempVendorCDR_20' ) start [2025-01-11 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225992', 'tblTempVendorCDR_20' ) end [2025-01-11 18:09:18] Production.INFO: ProcessCDR(1,14225992,1,1,2) [2025-01-11 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225992', 'tblTempUsageDetail_20' ) start [2025-01-11 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225992', 'tblTempUsageDetail_20' ) end [2025-01-11 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:09:21] Production.INFO: ==9285== Releasing lock... [2025-01-11 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:09:21] Production.INFO: 41 MB #Memory Used# [2025-01-11 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:10:06 [end_date_ymd] => 2025-01-11 18:10:06 [RateCDR] => 1 ) [2025-01-11 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:10:06' and `end` < '2025-01-11 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:10:19] Production.INFO: count ==1789 [2025-01-11 18:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:10:06 - End Time 2025-01-11 18:10:06 [2025-01-11 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225998', 'tblTempUsageDetail_20' ) start [2025-01-11 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14225998', 'tblTempUsageDetail_20' ) end [2025-01-11 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225998', 'tblTempVendorCDR_20' ) start [2025-01-11 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14225998', 'tblTempVendorCDR_20' ) end [2025-01-11 18:10:19] Production.INFO: ProcessCDR(1,14225998,1,1,2) [2025-01-11 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14225998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14225998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14225998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14225998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225998', 'tblTempUsageDetail_20' ) start [2025-01-11 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14225998', 'tblTempUsageDetail_20' ) end [2025-01-11 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:10:23] Production.INFO: ==9370== Releasing lock... [2025-01-11 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:11:04 [end_date_ymd] => 2025-01-11 18:11:04 [RateCDR] => 1 ) [2025-01-11 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-11 15:11:04' and `end` < '2025-01-11 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-11 18:11:19] Production.INFO: count ==1844 [2025-01-11 18:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:11:04 - End Time 2025-01-11 18:11:04 [2025-01-11 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226003', 'tblTempUsageDetail_20' ) start [2025-01-11 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226003', 'tblTempUsageDetail_20' ) end [2025-01-11 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226003', 'tblTempVendorCDR_20' ) start [2025-01-11 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226003', 'tblTempVendorCDR_20' ) end [2025-01-11 18:11:19] Production.INFO: ProcessCDR(1,14226003,1,1,2) [2025-01-11 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226003', 'tblTempUsageDetail_20' ) start [2025-01-11 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226003', 'tblTempUsageDetail_20' ) end [2025-01-11 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:11:24] Production.INFO: ==9453== Releasing lock... [2025-01-11 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:11:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:12:05 [end_date_ymd] => 2025-01-11 18:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:12:05' and `end` < '2025-01-11 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-11 18:12:18] Production.INFO: count ==1844 [2025-01-11 18:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:12:05 - End Time 2025-01-11 18:12:05 [2025-01-11 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226008', 'tblTempUsageDetail_20' ) start [2025-01-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226008', 'tblTempUsageDetail_20' ) end [2025-01-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226008', 'tblTempVendorCDR_20' ) start [2025-01-11 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226008', 'tblTempVendorCDR_20' ) end [2025-01-11 18:12:19] Production.INFO: ProcessCDR(1,14226008,1,1,2) [2025-01-11 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226008', 'tblTempUsageDetail_20' ) start [2025-01-11 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226008', 'tblTempUsageDetail_20' ) end [2025-01-11 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:12:23] Production.INFO: ==9538== Releasing lock... [2025-01-11 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:12:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:13:05 [end_date_ymd] => 2025-01-11 18:13:05 [RateCDR] => 1 ) [2025-01-11 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:13:05' and `end` < '2025-01-11 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:13:20] Production.INFO: count ==1848 [2025-01-11 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:13:05 - End Time 2025-01-11 18:13:05 [2025-01-11 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226013', 'tblTempUsageDetail_20' ) start [2025-01-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226013', 'tblTempUsageDetail_20' ) end [2025-01-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226013', 'tblTempVendorCDR_20' ) start [2025-01-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226013', 'tblTempVendorCDR_20' ) end [2025-01-11 18:13:20] Production.INFO: ProcessCDR(1,14226013,1,1,2) [2025-01-11 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226013', 'tblTempUsageDetail_20' ) start [2025-01-11 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226013', 'tblTempUsageDetail_20' ) end [2025-01-11 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:13:25] Production.INFO: ==9660== Releasing lock... [2025-01-11 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:13:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:14:05 [end_date_ymd] => 2025-01-11 18:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:14:05' and `end` < '2025-01-11 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-11 18:14:20] Production.INFO: count ==1846 [2025-01-11 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-11 15:14:05 - End Time 2025-01-11 18:14:05 [2025-01-11 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226018', 'tblTempUsageDetail_20' ) start [2025-01-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226018', 'tblTempUsageDetail_20' ) end [2025-01-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226018', 'tblTempVendorCDR_20' ) start [2025-01-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226018', 'tblTempVendorCDR_20' ) end [2025-01-11 18:14:21] Production.INFO: ProcessCDR(1,14226018,1,1,2) [2025-01-11 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226018', 'tblTempUsageDetail_20' ) start [2025-01-11 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226018', 'tblTempUsageDetail_20' ) end [2025-01-11 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:14:25] Production.INFO: ==9744== Releasing lock... [2025-01-11 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:14:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:15:05 [end_date_ymd] => 2025-01-11 18:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:15:05' and `end` < '2025-01-11 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-11 18:15:19] Production.INFO: count ==1840 [2025-01-11 18:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:15:05 - End Time 2025-01-11 18:15:05 [2025-01-11 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226023', 'tblTempUsageDetail_20' ) start [2025-01-11 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226023', 'tblTempUsageDetail_20' ) end [2025-01-11 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226023', 'tblTempVendorCDR_20' ) start [2025-01-11 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226023', 'tblTempVendorCDR_20' ) end [2025-01-11 18:15:19] Production.INFO: ProcessCDR(1,14226023,1,1,2) [2025-01-11 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226023', 'tblTempUsageDetail_20' ) start [2025-01-11 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226023', 'tblTempUsageDetail_20' ) end [2025-01-11 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:15:22] Production.INFO: ==9833== Releasing lock... [2025-01-11 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:15:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:16:04 [end_date_ymd] => 2025-01-11 18:16:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:16:04' and `end` < '2025-01-11 18: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-11 18:16:19] Production.INFO: count ==1836 [2025-01-11 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:16:04 - End Time 2025-01-11 18:16:04 [2025-01-11 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226028', 'tblTempUsageDetail_20' ) start [2025-01-11 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226028', 'tblTempUsageDetail_20' ) end [2025-01-11 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226028', 'tblTempVendorCDR_20' ) start [2025-01-11 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226028', 'tblTempVendorCDR_20' ) end [2025-01-11 18:16:19] Production.INFO: ProcessCDR(1,14226028,1,1,2) [2025-01-11 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226028', 'tblTempUsageDetail_20' ) start [2025-01-11 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226028', 'tblTempUsageDetail_20' ) end [2025-01-11 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:16:24] Production.INFO: ==9905== Releasing lock... [2025-01-11 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:16:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:17:05 [end_date_ymd] => 2025-01-11 18:17:05 [RateCDR] => 1 ) [2025-01-11 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:17:05' and `end` < '2025-01-11 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:17:19] Production.INFO: count ==1831 [2025-01-11 18:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:17:05 - End Time 2025-01-11 18:17:05 [2025-01-11 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226033', 'tblTempUsageDetail_20' ) start [2025-01-11 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226033', 'tblTempUsageDetail_20' ) end [2025-01-11 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226033', 'tblTempVendorCDR_20' ) start [2025-01-11 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226033', 'tblTempVendorCDR_20' ) end [2025-01-11 18:17:19] Production.INFO: ProcessCDR(1,14226033,1,1,2) [2025-01-11 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226033', 'tblTempUsageDetail_20' ) start [2025-01-11 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226033', 'tblTempUsageDetail_20' ) end [2025-01-11 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:17:22] Production.INFO: ==9976== Releasing lock... [2025-01-11 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:18:05 [end_date_ymd] => 2025-01-11 18:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:18:05' and `end` < '2025-01-11 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-11 18:18:20] Production.INFO: count ==1828 [2025-01-11 18:18:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:18:05 - End Time 2025-01-11 18:18:05 [2025-01-11 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226038', 'tblTempUsageDetail_20' ) start [2025-01-11 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226038', 'tblTempUsageDetail_20' ) end [2025-01-11 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226038', 'tblTempVendorCDR_20' ) start [2025-01-11 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226038', 'tblTempVendorCDR_20' ) end [2025-01-11 18:18:20] Production.INFO: ProcessCDR(1,14226038,1,1,2) [2025-01-11 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226038', 'tblTempUsageDetail_20' ) start [2025-01-11 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226038', 'tblTempUsageDetail_20' ) end [2025-01-11 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:18:25] Production.INFO: ==10050== Releasing lock... [2025-01-11 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:18:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:19:05 [end_date_ymd] => 2025-01-11 18:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:19:05' and `end` < '2025-01-11 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-11 18:19:18] Production.INFO: count ==1833 [2025-01-11 18:19:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:19:05 - End Time 2025-01-11 18:19:05 [2025-01-11 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226043', 'tblTempUsageDetail_20' ) start [2025-01-11 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226043', 'tblTempUsageDetail_20' ) end [2025-01-11 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226043', 'tblTempVendorCDR_20' ) start [2025-01-11 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226043', 'tblTempVendorCDR_20' ) end [2025-01-11 18:19:18] Production.INFO: ProcessCDR(1,14226043,1,1,2) [2025-01-11 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226043', 'tblTempUsageDetail_20' ) start [2025-01-11 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226043', 'tblTempUsageDetail_20' ) end [2025-01-11 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:19:23] Production.INFO: ==10125== Releasing lock... [2025-01-11 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:19:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:20:05 [end_date_ymd] => 2025-01-11 18:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:20:05' and `end` < '2025-01-11 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-11 18:20:21] Production.INFO: count ==1824 [2025-01-11 18:20:22] Production.ERROR: pbx CDR StartTime 2025-01-11 15:20:05 - End Time 2025-01-11 18:20:05 [2025-01-11 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226049', 'tblTempUsageDetail_20' ) start [2025-01-11 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226049', 'tblTempUsageDetail_20' ) end [2025-01-11 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226049', 'tblTempVendorCDR_20' ) start [2025-01-11 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226049', 'tblTempVendorCDR_20' ) end [2025-01-11 18:20:22] Production.INFO: ProcessCDR(1,14226049,1,1,2) [2025-01-11 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226049', 'tblTempUsageDetail_20' ) start [2025-01-11 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226049', 'tblTempUsageDetail_20' ) end [2025-01-11 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:20:25] Production.INFO: ==10197== Releasing lock... [2025-01-11 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:20:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:21:05 [end_date_ymd] => 2025-01-11 18:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:21:05' and `end` < '2025-01-11 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-11 18:21:19] Production.INFO: count ==1875 [2025-01-11 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:21:05 - End Time 2025-01-11 18:21:05 [2025-01-11 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226054', 'tblTempUsageDetail_20' ) start [2025-01-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226054', 'tblTempUsageDetail_20' ) end [2025-01-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226054', 'tblTempVendorCDR_20' ) start [2025-01-11 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226054', 'tblTempVendorCDR_20' ) end [2025-01-11 18:21:20] Production.INFO: ProcessCDR(1,14226054,1,1,2) [2025-01-11 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226054', 'tblTempUsageDetail_20' ) start [2025-01-11 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226054', 'tblTempUsageDetail_20' ) end [2025-01-11 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:21:23] Production.INFO: ==10271== Releasing lock... [2025-01-11 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:21:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:22:04 [end_date_ymd] => 2025-01-11 18:22:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:22:04' and `end` < '2025-01-11 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-11 18:22:17] Production.INFO: count ==1877 [2025-01-11 18:22:17] Production.ERROR: pbx CDR StartTime 2025-01-11 15:22:04 - End Time 2025-01-11 18:22:04 [2025-01-11 18:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226059', 'tblTempUsageDetail_20' ) start [2025-01-11 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226059', 'tblTempUsageDetail_20' ) end [2025-01-11 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226059', 'tblTempVendorCDR_20' ) start [2025-01-11 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226059', 'tblTempVendorCDR_20' ) end [2025-01-11 18:22:17] Production.INFO: ProcessCDR(1,14226059,1,1,2) [2025-01-11 18:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226059', 'tblTempUsageDetail_20' ) start [2025-01-11 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226059', 'tblTempUsageDetail_20' ) end [2025-01-11 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:22:21] Production.INFO: ==10341== Releasing lock... [2025-01-11 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:22:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:23:04 [end_date_ymd] => 2025-01-11 18:23:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:23:04' and `end` < '2025-01-11 18: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-11 18:23:22] Production.INFO: count ==1891 [2025-01-11 18:23:22] Production.ERROR: pbx CDR StartTime 2025-01-11 15:23:04 - End Time 2025-01-11 18:23:04 [2025-01-11 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226064', 'tblTempUsageDetail_20' ) start [2025-01-11 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226064', 'tblTempUsageDetail_20' ) end [2025-01-11 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226064', 'tblTempVendorCDR_20' ) start [2025-01-11 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226064', 'tblTempVendorCDR_20' ) end [2025-01-11 18:23:22] Production.INFO: ProcessCDR(1,14226064,1,1,2) [2025-01-11 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226064', 'tblTempUsageDetail_20' ) start [2025-01-11 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226064', 'tblTempUsageDetail_20' ) end [2025-01-11 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:23:27] Production.INFO: ==10418== Releasing lock... [2025-01-11 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:23:27] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:24:05 [end_date_ymd] => 2025-01-11 18:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:24:05' and `end` < '2025-01-11 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-11 18:24:20] Production.INFO: count ==1895 [2025-01-11 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:24:05 - End Time 2025-01-11 18:24:05 [2025-01-11 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226069', 'tblTempUsageDetail_20' ) start [2025-01-11 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226069', 'tblTempUsageDetail_20' ) end [2025-01-11 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226069', 'tblTempVendorCDR_20' ) start [2025-01-11 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226069', 'tblTempVendorCDR_20' ) end [2025-01-11 18:24:20] Production.INFO: ProcessCDR(1,14226069,1,1,2) [2025-01-11 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226069', 'tblTempUsageDetail_20' ) start [2025-01-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226069', 'tblTempUsageDetail_20' ) end [2025-01-11 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:24:25] Production.INFO: ==10496== Releasing lock... [2025-01-11 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:24:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:25:05 [end_date_ymd] => 2025-01-11 18:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:25:05' and `end` < '2025-01-11 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-11 18:25:18] Production.INFO: count ==1892 [2025-01-11 18:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:25:05 - End Time 2025-01-11 18:25:05 [2025-01-11 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226074', 'tblTempUsageDetail_20' ) start [2025-01-11 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226074', 'tblTempUsageDetail_20' ) end [2025-01-11 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226074', 'tblTempVendorCDR_20' ) start [2025-01-11 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226074', 'tblTempVendorCDR_20' ) end [2025-01-11 18:25:18] Production.INFO: ProcessCDR(1,14226074,1,1,2) [2025-01-11 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226074', 'tblTempUsageDetail_20' ) start [2025-01-11 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226074', 'tblTempUsageDetail_20' ) end [2025-01-11 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:25:22] Production.INFO: ==10579== Releasing lock... [2025-01-11 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:26:05 [end_date_ymd] => 2025-01-11 18:26:05 [RateCDR] => 1 ) [2025-01-11 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:26:05' and `end` < '2025-01-11 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:26:19] Production.INFO: count ==1891 [2025-01-11 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:26:05 - End Time 2025-01-11 18:26:05 [2025-01-11 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226079', 'tblTempUsageDetail_20' ) start [2025-01-11 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226079', 'tblTempUsageDetail_20' ) end [2025-01-11 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226079', 'tblTempVendorCDR_20' ) start [2025-01-11 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226079', 'tblTempVendorCDR_20' ) end [2025-01-11 18:26:19] Production.INFO: ProcessCDR(1,14226079,1,1,2) [2025-01-11 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226079', 'tblTempUsageDetail_20' ) start [2025-01-11 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226079', 'tblTempUsageDetail_20' ) end [2025-01-11 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:26:22] Production.INFO: ==10657== Releasing lock... [2025-01-11 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:26:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:27:04 [end_date_ymd] => 2025-01-11 18:27:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:27:04' and `end` < '2025-01-11 18: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-11 18:27:19] Production.INFO: count ==1879 [2025-01-11 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:27:04 - End Time 2025-01-11 18:27:04 [2025-01-11 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226084', 'tblTempUsageDetail_20' ) start [2025-01-11 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226084', 'tblTempUsageDetail_20' ) end [2025-01-11 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226084', 'tblTempVendorCDR_20' ) start [2025-01-11 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226084', 'tblTempVendorCDR_20' ) end [2025-01-11 18:27:19] Production.INFO: ProcessCDR(1,14226084,1,1,2) [2025-01-11 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226084', 'tblTempUsageDetail_20' ) start [2025-01-11 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226084', 'tblTempUsageDetail_20' ) end [2025-01-11 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:27:22] Production.INFO: ==10736== Releasing lock... [2025-01-11 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:27:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:28:05 [end_date_ymd] => 2025-01-11 18:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:28:05' and `end` < '2025-01-11 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-11 18:28:18] Production.INFO: count ==1868 [2025-01-11 18:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:28:05 - End Time 2025-01-11 18:28:05 [2025-01-11 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226089', 'tblTempUsageDetail_20' ) start [2025-01-11 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226089', 'tblTempUsageDetail_20' ) end [2025-01-11 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226089', 'tblTempVendorCDR_20' ) start [2025-01-11 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226089', 'tblTempVendorCDR_20' ) end [2025-01-11 18:28:19] Production.INFO: ProcessCDR(1,14226089,1,1,2) [2025-01-11 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226089', 'tblTempUsageDetail_20' ) start [2025-01-11 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226089', 'tblTempUsageDetail_20' ) end [2025-01-11 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:28:23] Production.INFO: ==10854== Releasing lock... [2025-01-11 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:28:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:29:04 [end_date_ymd] => 2025-01-11 18:29:04 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:29:04' and `end` < '2025-01-11 18: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-11 18:29:20] Production.INFO: count ==1866 [2025-01-11 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:29:04 - End Time 2025-01-11 18:29:04 [2025-01-11 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226094', 'tblTempUsageDetail_20' ) start [2025-01-11 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226094', 'tblTempUsageDetail_20' ) end [2025-01-11 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226094', 'tblTempVendorCDR_20' ) start [2025-01-11 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226094', 'tblTempVendorCDR_20' ) end [2025-01-11 18:29:20] Production.INFO: ProcessCDR(1,14226094,1,1,2) [2025-01-11 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226094', 'tblTempUsageDetail_20' ) start [2025-01-11 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226094', 'tblTempUsageDetail_20' ) end [2025-01-11 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:29:23] Production.INFO: ==10936== Releasing lock... [2025-01-11 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:29:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:30:05 [end_date_ymd] => 2025-01-11 18:30:05 [RateCDR] => 1 ) [2025-01-11 18: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-11 15:30:05' and `end` < '2025-01-11 18: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-11 18:30:19] Production.INFO: count ==1866 [2025-01-11 18:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:30:05 - End Time 2025-01-11 18:30:05 [2025-01-11 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226099', 'tblTempUsageDetail_20' ) start [2025-01-11 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226099', 'tblTempUsageDetail_20' ) end [2025-01-11 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226099', 'tblTempVendorCDR_20' ) start [2025-01-11 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226099', 'tblTempVendorCDR_20' ) end [2025-01-11 18:30:19] Production.INFO: ProcessCDR(1,14226099,1,1,2) [2025-01-11 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226099', 'tblTempUsageDetail_20' ) start [2025-01-11 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226099', 'tblTempUsageDetail_20' ) end [2025-01-11 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:30:22] Production.INFO: ==11018== Releasing lock... [2025-01-11 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:30:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:31:05 [end_date_ymd] => 2025-01-11 18:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:31:05' and `end` < '2025-01-11 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-11 18:31:20] Production.INFO: count ==1906 [2025-01-11 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:31:05 - End Time 2025-01-11 18:31:05 [2025-01-11 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226105', 'tblTempUsageDetail_20' ) start [2025-01-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226105', 'tblTempUsageDetail_20' ) end [2025-01-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226105', 'tblTempVendorCDR_20' ) start [2025-01-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226105', 'tblTempVendorCDR_20' ) end [2025-01-11 18:31:20] Production.INFO: ProcessCDR(1,14226105,1,1,2) [2025-01-11 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226105', 'tblTempUsageDetail_20' ) start [2025-01-11 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226105', 'tblTempUsageDetail_20' ) end [2025-01-11 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:31:23] Production.INFO: ==11103== Releasing lock... [2025-01-11 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:31:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:32:05 [end_date_ymd] => 2025-01-11 18:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:32:05' and `end` < '2025-01-11 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-11 18:32:18] Production.INFO: count ==1908 [2025-01-11 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:32:05 - End Time 2025-01-11 18:32:05 [2025-01-11 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226110', 'tblTempUsageDetail_20' ) start [2025-01-11 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226110', 'tblTempUsageDetail_20' ) end [2025-01-11 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226110', 'tblTempVendorCDR_20' ) start [2025-01-11 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226110', 'tblTempVendorCDR_20' ) end [2025-01-11 18:32:19] Production.INFO: ProcessCDR(1,14226110,1,1,2) [2025-01-11 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226110', 'tblTempUsageDetail_20' ) start [2025-01-11 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226110', 'tblTempUsageDetail_20' ) end [2025-01-11 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:32:22] Production.INFO: ==11181== Releasing lock... [2025-01-11 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:32:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:33:05 [end_date_ymd] => 2025-01-11 18:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:33:05' and `end` < '2025-01-11 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-11 18:33:21] Production.INFO: count ==1912 [2025-01-11 18:33:21] Production.ERROR: pbx CDR StartTime 2025-01-11 15:33:05 - End Time 2025-01-11 18:33:05 [2025-01-11 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226115', 'tblTempUsageDetail_20' ) start [2025-01-11 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226115', 'tblTempUsageDetail_20' ) end [2025-01-11 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226115', 'tblTempVendorCDR_20' ) start [2025-01-11 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226115', 'tblTempVendorCDR_20' ) end [2025-01-11 18:33:21] Production.INFO: ProcessCDR(1,14226115,1,1,2) [2025-01-11 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226115', 'tblTempUsageDetail_20' ) start [2025-01-11 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226115', 'tblTempUsageDetail_20' ) end [2025-01-11 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:33:26] Production.INFO: ==11258== Releasing lock... [2025-01-11 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:33:26] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:34:04 [end_date_ymd] => 2025-01-11 18:34:04 [RateCDR] => 1 ) [2025-01-11 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-11 15:34:04' and `end` < '2025-01-11 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-11 18:34:18] Production.INFO: count ==1925 [2025-01-11 18:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:34:04 - End Time 2025-01-11 18:34:04 [2025-01-11 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226120', 'tblTempUsageDetail_20' ) start [2025-01-11 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226120', 'tblTempUsageDetail_20' ) end [2025-01-11 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226120', 'tblTempVendorCDR_20' ) start [2025-01-11 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226120', 'tblTempVendorCDR_20' ) end [2025-01-11 18:34:18] Production.INFO: ProcessCDR(1,14226120,1,1,2) [2025-01-11 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226120', 'tblTempUsageDetail_20' ) start [2025-01-11 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226120', 'tblTempUsageDetail_20' ) end [2025-01-11 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:34:21] Production.INFO: ==11337== Releasing lock... [2025-01-11 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:34:21] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:35:05 [end_date_ymd] => 2025-01-11 18:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:35:05' and `end` < '2025-01-11 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-11 18:35:20] Production.INFO: count ==1924 [2025-01-11 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:35:05 - End Time 2025-01-11 18:35:05 [2025-01-11 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226125', 'tblTempUsageDetail_20' ) start [2025-01-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226125', 'tblTempUsageDetail_20' ) end [2025-01-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226125', 'tblTempVendorCDR_20' ) start [2025-01-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226125', 'tblTempVendorCDR_20' ) end [2025-01-11 18:35:20] Production.INFO: ProcessCDR(1,14226125,1,1,2) [2025-01-11 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226125', 'tblTempUsageDetail_20' ) start [2025-01-11 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226125', 'tblTempUsageDetail_20' ) end [2025-01-11 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:35:23] Production.INFO: ==11416== Releasing lock... [2025-01-11 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:35:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:36:05 [end_date_ymd] => 2025-01-11 18:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:36:05' and `end` < '2025-01-11 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-11 18:36:18] Production.INFO: count ==1922 [2025-01-11 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:36:05 - End Time 2025-01-11 18:36:05 [2025-01-11 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226130', 'tblTempUsageDetail_20' ) start [2025-01-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226130', 'tblTempUsageDetail_20' ) end [2025-01-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226130', 'tblTempVendorCDR_20' ) start [2025-01-11 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226130', 'tblTempVendorCDR_20' ) end [2025-01-11 18:36:19] Production.INFO: ProcessCDR(1,14226130,1,1,2) [2025-01-11 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226130', 'tblTempUsageDetail_20' ) start [2025-01-11 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226130', 'tblTempUsageDetail_20' ) end [2025-01-11 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:36:23] Production.INFO: ==11492== Releasing lock... [2025-01-11 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:36:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:37:05 [end_date_ymd] => 2025-01-11 18:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:37:05' and `end` < '2025-01-11 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-11 18:37:19] Production.INFO: count ==1913 [2025-01-11 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:37:05 - End Time 2025-01-11 18:37:05 [2025-01-11 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226135', 'tblTempUsageDetail_20' ) start [2025-01-11 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226135', 'tblTempUsageDetail_20' ) end [2025-01-11 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226135', 'tblTempVendorCDR_20' ) start [2025-01-11 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226135', 'tblTempVendorCDR_20' ) end [2025-01-11 18:37:19] Production.INFO: ProcessCDR(1,14226135,1,1,2) [2025-01-11 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226135', 'tblTempUsageDetail_20' ) start [2025-01-11 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226135', 'tblTempUsageDetail_20' ) end [2025-01-11 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:37:24] Production.INFO: ==11574== Releasing lock... [2025-01-11 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:37:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:38:05 [end_date_ymd] => 2025-01-11 18:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:38:05' and `end` < '2025-01-11 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-11 18:38:19] Production.INFO: count ==1905 [2025-01-11 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:38:05 - End Time 2025-01-11 18:38:05 [2025-01-11 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226140', 'tblTempUsageDetail_20' ) start [2025-01-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226140', 'tblTempUsageDetail_20' ) end [2025-01-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226140', 'tblTempVendorCDR_20' ) start [2025-01-11 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226140', 'tblTempVendorCDR_20' ) end [2025-01-11 18:38:20] Production.INFO: ProcessCDR(1,14226140,1,1,2) [2025-01-11 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226140', 'tblTempUsageDetail_20' ) start [2025-01-11 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226140', 'tblTempUsageDetail_20' ) end [2025-01-11 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:38:23] Production.INFO: ==11653== Releasing lock... [2025-01-11 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:38:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:39:05 [end_date_ymd] => 2025-01-11 18:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:39:05' and `end` < '2025-01-11 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-11 18:39:18] Production.INFO: count ==1904 [2025-01-11 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:39:05 - End Time 2025-01-11 18:39:05 [2025-01-11 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226145', 'tblTempUsageDetail_20' ) start [2025-01-11 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226145', 'tblTempUsageDetail_20' ) end [2025-01-11 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226145', 'tblTempVendorCDR_20' ) start [2025-01-11 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226145', 'tblTempVendorCDR_20' ) end [2025-01-11 18:39:19] Production.INFO: ProcessCDR(1,14226145,1,1,2) [2025-01-11 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226145', 'tblTempUsageDetail_20' ) start [2025-01-11 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226145', 'tblTempUsageDetail_20' ) end [2025-01-11 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:39:23] Production.INFO: ==11728== Releasing lock... [2025-01-11 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:39:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:40:05 [end_date_ymd] => 2025-01-11 18:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:40:05' and `end` < '2025-01-11 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-11 18:40:21] Production.INFO: count ==1905 [2025-01-11 18:40:21] Production.ERROR: pbx CDR StartTime 2025-01-11 15:40:05 - End Time 2025-01-11 18:40:05 [2025-01-11 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226150', 'tblTempUsageDetail_20' ) start [2025-01-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226150', 'tblTempUsageDetail_20' ) end [2025-01-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226150', 'tblTempVendorCDR_20' ) start [2025-01-11 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226150', 'tblTempVendorCDR_20' ) end [2025-01-11 18:40:21] Production.INFO: ProcessCDR(1,14226150,1,1,2) [2025-01-11 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226150', 'tblTempUsageDetail_20' ) start [2025-01-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226150', 'tblTempUsageDetail_20' ) end [2025-01-11 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:40:24] Production.INFO: ==11813== Releasing lock... [2025-01-11 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:40:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:41:05 [end_date_ymd] => 2025-01-11 18:41:05 [RateCDR] => 1 ) [2025-01-11 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:41:05' and `end` < '2025-01-11 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:41:18] Production.INFO: count ==1898 [2025-01-11 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:41:05 - End Time 2025-01-11 18:41:05 [2025-01-11 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226156', 'tblTempUsageDetail_20' ) start [2025-01-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226156', 'tblTempUsageDetail_20' ) end [2025-01-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226156', 'tblTempVendorCDR_20' ) start [2025-01-11 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226156', 'tblTempVendorCDR_20' ) end [2025-01-11 18:41:19] Production.INFO: ProcessCDR(1,14226156,1,1,2) [2025-01-11 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226156', 'tblTempUsageDetail_20' ) start [2025-01-11 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226156', 'tblTempUsageDetail_20' ) end [2025-01-11 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:41:22] Production.INFO: ==11892== Releasing lock... [2025-01-11 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:41:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:42:05 [end_date_ymd] => 2025-01-11 18:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:42:05' and `end` < '2025-01-11 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-11 18:42:21] Production.INFO: count ==1900 [2025-01-11 18:42:21] Production.ERROR: pbx CDR StartTime 2025-01-11 15:42:05 - End Time 2025-01-11 18:42:05 [2025-01-11 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226161', 'tblTempUsageDetail_20' ) start [2025-01-11 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226161', 'tblTempUsageDetail_20' ) end [2025-01-11 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226161', 'tblTempVendorCDR_20' ) start [2025-01-11 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226161', 'tblTempVendorCDR_20' ) end [2025-01-11 18:42:21] Production.INFO: ProcessCDR(1,14226161,1,1,2) [2025-01-11 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226161', 'tblTempUsageDetail_20' ) start [2025-01-11 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226161', 'tblTempUsageDetail_20' ) end [2025-01-11 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:42:24] Production.INFO: ==11966== Releasing lock... [2025-01-11 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:42:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:43:05 [end_date_ymd] => 2025-01-11 18:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:43:05' and `end` < '2025-01-11 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-11 18:43:18] Production.INFO: count ==1886 [2025-01-11 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:43:05 - End Time 2025-01-11 18:43:05 [2025-01-11 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226166', 'tblTempUsageDetail_20' ) start [2025-01-11 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226166', 'tblTempUsageDetail_20' ) end [2025-01-11 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226166', 'tblTempVendorCDR_20' ) start [2025-01-11 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226166', 'tblTempVendorCDR_20' ) end [2025-01-11 18:43:19] Production.INFO: ProcessCDR(1,14226166,1,1,2) [2025-01-11 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226166', 'tblTempUsageDetail_20' ) start [2025-01-11 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226166', 'tblTempUsageDetail_20' ) end [2025-01-11 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:43:22] Production.INFO: ==12042== Releasing lock... [2025-01-11 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:43:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:44:05 [end_date_ymd] => 2025-01-11 18:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:44:05' and `end` < '2025-01-11 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-11 18:44:19] Production.INFO: count ==1888 [2025-01-11 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:44:05 - End Time 2025-01-11 18:44:05 [2025-01-11 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226171', 'tblTempUsageDetail_20' ) start [2025-01-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226171', 'tblTempUsageDetail_20' ) end [2025-01-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226171', 'tblTempVendorCDR_20' ) start [2025-01-11 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226171', 'tblTempVendorCDR_20' ) end [2025-01-11 18:44:19] Production.INFO: ProcessCDR(1,14226171,1,1,2) [2025-01-11 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226171', 'tblTempUsageDetail_20' ) start [2025-01-11 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226171', 'tblTempUsageDetail_20' ) end [2025-01-11 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:44:23] Production.INFO: ==12155== Releasing lock... [2025-01-11 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:45:05 [end_date_ymd] => 2025-01-11 18:45:05 [RateCDR] => 1 ) [2025-01-11 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:45:05' and `end` < '2025-01-11 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:45:23] Production.INFO: count ==1886 [2025-01-11 18:45:23] Production.ERROR: pbx CDR StartTime 2025-01-11 15:45:05 - End Time 2025-01-11 18:45:05 [2025-01-11 18:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226176', 'tblTempUsageDetail_20' ) start [2025-01-11 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226176', 'tblTempUsageDetail_20' ) end [2025-01-11 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226176', 'tblTempVendorCDR_20' ) start [2025-01-11 18:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226176', 'tblTempVendorCDR_20' ) end [2025-01-11 18:45:23] Production.INFO: ProcessCDR(1,14226176,1,1,2) [2025-01-11 18:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226176', 'tblTempUsageDetail_20' ) start [2025-01-11 18:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226176', 'tblTempUsageDetail_20' ) end [2025-01-11 18:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:45:28] Production.INFO: ==12233== Releasing lock... [2025-01-11 18:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:45:28] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:46:05 [end_date_ymd] => 2025-01-11 18:46:05 [RateCDR] => 1 ) [2025-01-11 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:46:05' and `end` < '2025-01-11 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:46:24] Production.INFO: count ==1885 [2025-01-11 18:46:24] Production.ERROR: pbx CDR StartTime 2025-01-11 15:46:05 - End Time 2025-01-11 18:46:05 [2025-01-11 18:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226181', 'tblTempUsageDetail_20' ) start [2025-01-11 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226181', 'tblTempUsageDetail_20' ) end [2025-01-11 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226181', 'tblTempVendorCDR_20' ) start [2025-01-11 18:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226181', 'tblTempVendorCDR_20' ) end [2025-01-11 18:46:24] Production.INFO: ProcessCDR(1,14226181,1,1,2) [2025-01-11 18:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226181', 'tblTempUsageDetail_20' ) start [2025-01-11 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226181', 'tblTempUsageDetail_20' ) end [2025-01-11 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:46:27] Production.INFO: ==12303== Releasing lock... [2025-01-11 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:46:27] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:47:05 [end_date_ymd] => 2025-01-11 18:47:05 [RateCDR] => 1 ) [2025-01-11 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:47:05' and `end` < '2025-01-11 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:47:22] Production.INFO: count ==1885 [2025-01-11 18:47:22] Production.ERROR: pbx CDR StartTime 2025-01-11 15:47:05 - End Time 2025-01-11 18:47:05 [2025-01-11 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226186', 'tblTempUsageDetail_20' ) start [2025-01-11 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226186', 'tblTempUsageDetail_20' ) end [2025-01-11 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226186', 'tblTempVendorCDR_20' ) start [2025-01-11 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226186', 'tblTempVendorCDR_20' ) end [2025-01-11 18:47:22] Production.INFO: ProcessCDR(1,14226186,1,1,2) [2025-01-11 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226186', 'tblTempUsageDetail_20' ) start [2025-01-11 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226186', 'tblTempUsageDetail_20' ) end [2025-01-11 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:47:26] Production.INFO: ==12374== Releasing lock... [2025-01-11 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:47:26] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:48:05 [end_date_ymd] => 2025-01-11 18:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:48:05' and `end` < '2025-01-11 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-11 18:48:18] Production.INFO: count ==1876 [2025-01-11 18:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:48:05 - End Time 2025-01-11 18:48:05 [2025-01-11 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226191', 'tblTempUsageDetail_20' ) start [2025-01-11 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226191', 'tblTempUsageDetail_20' ) end [2025-01-11 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226191', 'tblTempVendorCDR_20' ) start [2025-01-11 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226191', 'tblTempVendorCDR_20' ) end [2025-01-11 18:48:18] Production.INFO: ProcessCDR(1,14226191,1,1,2) [2025-01-11 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226191', 'tblTempUsageDetail_20' ) start [2025-01-11 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226191', 'tblTempUsageDetail_20' ) end [2025-01-11 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:48:22] Production.INFO: ==12445== Releasing lock... [2025-01-11 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:48:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:49:05 [end_date_ymd] => 2025-01-11 18:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:49:05' and `end` < '2025-01-11 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-11 18:49:19] Production.INFO: count ==1870 [2025-01-11 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:49:05 - End Time 2025-01-11 18:49:05 [2025-01-11 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226196', 'tblTempUsageDetail_20' ) start [2025-01-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226196', 'tblTempUsageDetail_20' ) end [2025-01-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226196', 'tblTempVendorCDR_20' ) start [2025-01-11 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226196', 'tblTempVendorCDR_20' ) end [2025-01-11 18:49:19] Production.INFO: ProcessCDR(1,14226196,1,1,2) [2025-01-11 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226196', 'tblTempUsageDetail_20' ) start [2025-01-11 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226196', 'tblTempUsageDetail_20' ) end [2025-01-11 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:49:22] Production.INFO: ==12515== Releasing lock... [2025-01-11 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:49:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:50:06 [end_date_ymd] => 2025-01-11 18:50:06 [RateCDR] => 1 ) [2025-01-11 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:50:06' and `end` < '2025-01-11 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:50:19] Production.INFO: count ==1870 [2025-01-11 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:50:06 - End Time 2025-01-11 18:50:06 [2025-01-11 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226202', 'tblTempUsageDetail_20' ) start [2025-01-11 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226202', 'tblTempUsageDetail_20' ) end [2025-01-11 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226202', 'tblTempVendorCDR_20' ) start [2025-01-11 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226202', 'tblTempVendorCDR_20' ) end [2025-01-11 18:50:19] Production.INFO: ProcessCDR(1,14226202,1,1,2) [2025-01-11 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226202', 'tblTempUsageDetail_20' ) start [2025-01-11 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226202', 'tblTempUsageDetail_20' ) end [2025-01-11 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:50:22] Production.INFO: ==12588== Releasing lock... [2025-01-11 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:51:05 [end_date_ymd] => 2025-01-11 18:51:05 [RateCDR] => 1 ) [2025-01-11 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:51:05' and `end` < '2025-01-11 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:51:18] Production.INFO: count ==1870 [2025-01-11 18:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:51:05 - End Time 2025-01-11 18:51:05 [2025-01-11 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226207', 'tblTempUsageDetail_20' ) start [2025-01-11 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226207', 'tblTempUsageDetail_20' ) end [2025-01-11 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226207', 'tblTempVendorCDR_20' ) start [2025-01-11 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226207', 'tblTempVendorCDR_20' ) end [2025-01-11 18:51:18] Production.INFO: ProcessCDR(1,14226207,1,1,2) [2025-01-11 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226207', 'tblTempUsageDetail_20' ) start [2025-01-11 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226207', 'tblTempUsageDetail_20' ) end [2025-01-11 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:51:22] Production.INFO: ==12660== Releasing lock... [2025-01-11 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:52:05 [end_date_ymd] => 2025-01-11 18:52:05 [RateCDR] => 1 ) [2025-01-11 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:52:05' and `end` < '2025-01-11 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:52:20] Production.INFO: count ==1870 [2025-01-11 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:52:05 - End Time 2025-01-11 18:52:05 [2025-01-11 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226212', 'tblTempUsageDetail_20' ) start [2025-01-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226212', 'tblTempUsageDetail_20' ) end [2025-01-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226212', 'tblTempVendorCDR_20' ) start [2025-01-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226212', 'tblTempVendorCDR_20' ) end [2025-01-11 18:52:20] Production.INFO: ProcessCDR(1,14226212,1,1,2) [2025-01-11 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226212', 'tblTempUsageDetail_20' ) start [2025-01-11 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226212', 'tblTempUsageDetail_20' ) end [2025-01-11 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:52:23] Production.INFO: ==12729== Releasing lock... [2025-01-11 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:52:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:53:05 [end_date_ymd] => 2025-01-11 18:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:53:05' and `end` < '2025-01-11 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-11 18:53:19] Production.INFO: count ==1866 [2025-01-11 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:53:05 - End Time 2025-01-11 18:53:05 [2025-01-11 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226217', 'tblTempUsageDetail_20' ) start [2025-01-11 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226217', 'tblTempUsageDetail_20' ) end [2025-01-11 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226217', 'tblTempVendorCDR_20' ) start [2025-01-11 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226217', 'tblTempVendorCDR_20' ) end [2025-01-11 18:53:19] Production.INFO: ProcessCDR(1,14226217,1,1,2) [2025-01-11 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226217', 'tblTempUsageDetail_20' ) start [2025-01-11 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226217', 'tblTempUsageDetail_20' ) end [2025-01-11 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:53:23] Production.INFO: ==12802== Releasing lock... [2025-01-11 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:54:05 [end_date_ymd] => 2025-01-11 18:54:05 [RateCDR] => 1 ) [2025-01-11 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:54:05' and `end` < '2025-01-11 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:54:18] Production.INFO: count ==1862 [2025-01-11 18:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 15:54:05 - End Time 2025-01-11 18:54:05 [2025-01-11 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226222', 'tblTempUsageDetail_20' ) start [2025-01-11 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226222', 'tblTempUsageDetail_20' ) end [2025-01-11 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226222', 'tblTempVendorCDR_20' ) start [2025-01-11 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226222', 'tblTempVendorCDR_20' ) end [2025-01-11 18:54:18] Production.INFO: ProcessCDR(1,14226222,1,1,2) [2025-01-11 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226222', 'tblTempUsageDetail_20' ) start [2025-01-11 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226222', 'tblTempUsageDetail_20' ) end [2025-01-11 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:54:22] Production.INFO: ==12873== Releasing lock... [2025-01-11 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:55:06 [end_date_ymd] => 2025-01-11 18:55:06 [RateCDR] => 1 ) [2025-01-11 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:55:06' and `end` < '2025-01-11 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:55:19] Production.INFO: count ==1860 [2025-01-11 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:55:06 - End Time 2025-01-11 18:55:06 [2025-01-11 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226227', 'tblTempUsageDetail_20' ) start [2025-01-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226227', 'tblTempUsageDetail_20' ) end [2025-01-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226227', 'tblTempVendorCDR_20' ) start [2025-01-11 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226227', 'tblTempVendorCDR_20' ) end [2025-01-11 18:55:19] Production.INFO: ProcessCDR(1,14226227,1,1,2) [2025-01-11 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226227', 'tblTempUsageDetail_20' ) start [2025-01-11 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226227', 'tblTempUsageDetail_20' ) end [2025-01-11 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:55:23] Production.INFO: ==12943== Releasing lock... [2025-01-11 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:55:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:56:05 [end_date_ymd] => 2025-01-11 18:56:05 [RateCDR] => 1 ) [2025-01-11 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:56:05' and `end` < '2025-01-11 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:56:20] Production.INFO: count ==1860 [2025-01-11 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-11 15:56:05 - End Time 2025-01-11 18:56:05 [2025-01-11 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226232', 'tblTempUsageDetail_20' ) start [2025-01-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226232', 'tblTempUsageDetail_20' ) end [2025-01-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226232', 'tblTempVendorCDR_20' ) start [2025-01-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226232', 'tblTempVendorCDR_20' ) end [2025-01-11 18:56:20] Production.INFO: ProcessCDR(1,14226232,1,1,2) [2025-01-11 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226232', 'tblTempUsageDetail_20' ) start [2025-01-11 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226232', 'tblTempUsageDetail_20' ) end [2025-01-11 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:56:25] Production.INFO: ==13015== Releasing lock... [2025-01-11 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:56:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:57:05 [end_date_ymd] => 2025-01-11 18:57:05 [RateCDR] => 1 ) [2025-01-11 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:57:05' and `end` < '2025-01-11 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:57:24] Production.INFO: count ==1863 [2025-01-11 18:57:24] Production.ERROR: pbx CDR StartTime 2025-01-11 15:57:05 - End Time 2025-01-11 18:57:05 [2025-01-11 18:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226237', 'tblTempUsageDetail_20' ) start [2025-01-11 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226237', 'tblTempUsageDetail_20' ) end [2025-01-11 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226237', 'tblTempVendorCDR_20' ) start [2025-01-11 18:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226237', 'tblTempVendorCDR_20' ) end [2025-01-11 18:57:24] Production.INFO: ProcessCDR(1,14226237,1,1,2) [2025-01-11 18:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226237', 'tblTempUsageDetail_20' ) start [2025-01-11 18:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226237', 'tblTempUsageDetail_20' ) end [2025-01-11 18:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:57:29] Production.INFO: ==13089== Releasing lock... [2025-01-11 18:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:57:29] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:58:05 [end_date_ymd] => 2025-01-11 18:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 15:58:05' and `end` < '2025-01-11 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-11 18:58:19] Production.INFO: count ==1862 [2025-01-11 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:58:05 - End Time 2025-01-11 18:58:05 [2025-01-11 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226242', 'tblTempUsageDetail_20' ) start [2025-01-11 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226242', 'tblTempUsageDetail_20' ) end [2025-01-11 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226242', 'tblTempVendorCDR_20' ) start [2025-01-11 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226242', 'tblTempVendorCDR_20' ) end [2025-01-11 18:58:19] Production.INFO: ProcessCDR(1,14226242,1,1,2) [2025-01-11 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226242', 'tblTempUsageDetail_20' ) start [2025-01-11 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226242', 'tblTempUsageDetail_20' ) end [2025-01-11 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:58:22] Production.INFO: ==13163== Releasing lock... [2025-01-11 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:58:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 15:59:05 [end_date_ymd] => 2025-01-11 18:59:05 [RateCDR] => 1 ) [2025-01-11 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 15:59:05' and `end` < '2025-01-11 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 18:59:18] Production.INFO: count ==1865 [2025-01-11 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 15:59:05 - End Time 2025-01-11 18:59:05 [2025-01-11 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226247', 'tblTempUsageDetail_20' ) start [2025-01-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226247', 'tblTempUsageDetail_20' ) end [2025-01-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226247', 'tblTempVendorCDR_20' ) start [2025-01-11 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226247', 'tblTempVendorCDR_20' ) end [2025-01-11 18:59:19] Production.INFO: ProcessCDR(1,14226247,1,1,2) [2025-01-11 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226247', 'tblTempUsageDetail_20' ) start [2025-01-11 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226247', 'tblTempUsageDetail_20' ) end [2025-01-11 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 18:59:22] Production.INFO: ==13279== Releasing lock... [2025-01-11 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 18:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:00:05 [end_date_ymd] => 2025-01-11 19:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:00:05' and `end` < '2025-01-11 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-11 19:00:18] Production.INFO: count ==1867 [2025-01-11 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:00:05 - End Time 2025-01-11 19:00:05 [2025-01-11 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226253', 'tblTempUsageDetail_20' ) start [2025-01-11 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226253', 'tblTempUsageDetail_20' ) end [2025-01-11 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226253', 'tblTempVendorCDR_20' ) start [2025-01-11 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226253', 'tblTempVendorCDR_20' ) end [2025-01-11 19:00:19] Production.INFO: ProcessCDR(1,14226253,1,1,2) [2025-01-11 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226253', 'tblTempUsageDetail_20' ) start [2025-01-11 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226253', 'tblTempUsageDetail_20' ) end [2025-01-11 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:00:22] Production.INFO: ==13355== Releasing lock... [2025-01-11 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:00:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:01:05 [end_date_ymd] => 2025-01-11 19:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:01:05' and `end` < '2025-01-11 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-11 19:01:18] Production.INFO: count ==1915 [2025-01-11 19:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:01:05 - End Time 2025-01-11 19:01:05 [2025-01-11 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226258', 'tblTempUsageDetail_20' ) start [2025-01-11 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226258', 'tblTempUsageDetail_20' ) end [2025-01-11 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226258', 'tblTempVendorCDR_20' ) start [2025-01-11 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226258', 'tblTempVendorCDR_20' ) end [2025-01-11 19:01:18] Production.INFO: ProcessCDR(1,14226258,1,1,2) [2025-01-11 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226258', 'tblTempUsageDetail_20' ) start [2025-01-11 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226258', 'tblTempUsageDetail_20' ) end [2025-01-11 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:01:22] Production.INFO: ==13521== Releasing lock... [2025-01-11 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:01:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:02:05 [end_date_ymd] => 2025-01-11 19:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:02:05' and `end` < '2025-01-11 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-11 19:02:21] Production.INFO: count ==1915 [2025-01-11 19:02:21] Production.ERROR: pbx CDR StartTime 2025-01-11 16:02:05 - End Time 2025-01-11 19:02:05 [2025-01-11 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226263', 'tblTempUsageDetail_20' ) start [2025-01-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226263', 'tblTempUsageDetail_20' ) end [2025-01-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226263', 'tblTempVendorCDR_20' ) start [2025-01-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226263', 'tblTempVendorCDR_20' ) end [2025-01-11 19:02:21] Production.INFO: ProcessCDR(1,14226263,1,1,2) [2025-01-11 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226263', 'tblTempUsageDetail_20' ) start [2025-01-11 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226263', 'tblTempUsageDetail_20' ) end [2025-01-11 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:02:24] Production.INFO: ==13591== Releasing lock... [2025-01-11 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:02:24] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:03:05 [end_date_ymd] => 2025-01-11 19:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:03:05' and `end` < '2025-01-11 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-11 19:03:22] Production.INFO: count ==1913 [2025-01-11 19:03:22] Production.ERROR: pbx CDR StartTime 2025-01-11 16:03:05 - End Time 2025-01-11 19:03:05 [2025-01-11 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226268', 'tblTempUsageDetail_20' ) start [2025-01-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226268', 'tblTempUsageDetail_20' ) end [2025-01-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226268', 'tblTempVendorCDR_20' ) start [2025-01-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226268', 'tblTempVendorCDR_20' ) end [2025-01-11 19:03:22] Production.INFO: ProcessCDR(1,14226268,1,1,2) [2025-01-11 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226268', 'tblTempUsageDetail_20' ) start [2025-01-11 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226268', 'tblTempUsageDetail_20' ) end [2025-01-11 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:03:27] Production.INFO: ==13664== Releasing lock... [2025-01-11 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:03:27] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:04:05 [end_date_ymd] => 2025-01-11 19:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:04:05' and `end` < '2025-01-11 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-11 19:04:18] Production.INFO: count ==1915 [2025-01-11 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:04:05 - End Time 2025-01-11 19:04:05 [2025-01-11 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226273', 'tblTempUsageDetail_20' ) start [2025-01-11 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226273', 'tblTempUsageDetail_20' ) end [2025-01-11 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226273', 'tblTempVendorCDR_20' ) start [2025-01-11 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226273', 'tblTempVendorCDR_20' ) end [2025-01-11 19:04:19] Production.INFO: ProcessCDR(1,14226273,1,1,2) [2025-01-11 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226273', 'tblTempUsageDetail_20' ) start [2025-01-11 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226273', 'tblTempUsageDetail_20' ) end [2025-01-11 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:04:22] Production.INFO: ==13734== Releasing lock... [2025-01-11 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:04:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:05:04 [end_date_ymd] => 2025-01-11 19:05:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:05:04' and `end` < '2025-01-11 19: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-11 19:05:18] Production.INFO: count ==1914 [2025-01-11 19:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:05:04 - End Time 2025-01-11 19:05:04 [2025-01-11 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226278', 'tblTempUsageDetail_20' ) start [2025-01-11 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226278', 'tblTempUsageDetail_20' ) end [2025-01-11 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226278', 'tblTempVendorCDR_20' ) start [2025-01-11 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226278', 'tblTempVendorCDR_20' ) end [2025-01-11 19:05:18] Production.INFO: ProcessCDR(1,14226278,1,1,2) [2025-01-11 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226278', 'tblTempUsageDetail_20' ) start [2025-01-11 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226278', 'tblTempUsageDetail_20' ) end [2025-01-11 19:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:05:21] Production.INFO: ==13882== Releasing lock... [2025-01-11 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:05:21] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:06:05 [end_date_ymd] => 2025-01-11 19:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:06:05' and `end` < '2025-01-11 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-11 19:06:18] Production.INFO: count ==1916 [2025-01-11 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:06:05 - End Time 2025-01-11 19:06:05 [2025-01-11 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226283', 'tblTempUsageDetail_20' ) start [2025-01-11 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226283', 'tblTempUsageDetail_20' ) end [2025-01-11 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226283', 'tblTempVendorCDR_20' ) start [2025-01-11 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226283', 'tblTempVendorCDR_20' ) end [2025-01-11 19:06:19] Production.INFO: ProcessCDR(1,14226283,1,1,2) [2025-01-11 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226283', 'tblTempUsageDetail_20' ) start [2025-01-11 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226283', 'tblTempUsageDetail_20' ) end [2025-01-11 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:06:23] Production.INFO: ==13953== Releasing lock... [2025-01-11 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:06:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:07:05 [end_date_ymd] => 2025-01-11 19:07:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:07:05' and `end` < '2025-01-11 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-11 19:07:18] Production.INFO: count ==1916 [2025-01-11 19:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:07:05 - End Time 2025-01-11 19:07:05 [2025-01-11 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226288', 'tblTempUsageDetail_20' ) start [2025-01-11 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226288', 'tblTempUsageDetail_20' ) end [2025-01-11 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226288', 'tblTempVendorCDR_20' ) start [2025-01-11 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226288', 'tblTempVendorCDR_20' ) end [2025-01-11 19:07:19] Production.INFO: ProcessCDR(1,14226288,1,1,2) [2025-01-11 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226288', 'tblTempUsageDetail_20' ) start [2025-01-11 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226288', 'tblTempUsageDetail_20' ) end [2025-01-11 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:07:22] Production.INFO: ==14023== Releasing lock... [2025-01-11 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:07:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:08:05 [end_date_ymd] => 2025-01-11 19:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:08:05' and `end` < '2025-01-11 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-11 19:08:18] Production.INFO: count ==1915 [2025-01-11 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:08:05 - End Time 2025-01-11 19:08:05 [2025-01-11 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226293', 'tblTempUsageDetail_20' ) start [2025-01-11 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226293', 'tblTempUsageDetail_20' ) end [2025-01-11 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226293', 'tblTempVendorCDR_20' ) start [2025-01-11 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226293', 'tblTempVendorCDR_20' ) end [2025-01-11 19:08:19] Production.INFO: ProcessCDR(1,14226293,1,1,2) [2025-01-11 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226293', 'tblTempUsageDetail_20' ) start [2025-01-11 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226293', 'tblTempUsageDetail_20' ) end [2025-01-11 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:08:23] Production.INFO: ==14173== Releasing lock... [2025-01-11 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:08:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:09:05 [end_date_ymd] => 2025-01-11 19:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:09:05' and `end` < '2025-01-11 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-11 19:09:20] Production.INFO: count ==1913 [2025-01-11 19:09:20] Production.ERROR: pbx CDR StartTime 2025-01-11 16:09:05 - End Time 2025-01-11 19:09:05 [2025-01-11 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226298', 'tblTempUsageDetail_20' ) start [2025-01-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226298', 'tblTempUsageDetail_20' ) end [2025-01-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226298', 'tblTempVendorCDR_20' ) start [2025-01-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226298', 'tblTempVendorCDR_20' ) end [2025-01-11 19:09:20] Production.INFO: ProcessCDR(1,14226298,1,1,2) [2025-01-11 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226298', 'tblTempUsageDetail_20' ) start [2025-01-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226298', 'tblTempUsageDetail_20' ) end [2025-01-11 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:09:23] Production.INFO: ==14243== Releasing lock... [2025-01-11 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:09:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:10:05 [end_date_ymd] => 2025-01-11 19:10:05 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:10:05' and `end` < '2025-01-11 19: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-11 19:10:22] Production.INFO: count ==1915 [2025-01-11 19:10:23] Production.ERROR: pbx CDR StartTime 2025-01-11 16:10:05 - End Time 2025-01-11 19:10:05 [2025-01-11 19:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226303', 'tblTempUsageDetail_20' ) start [2025-01-11 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226303', 'tblTempUsageDetail_20' ) end [2025-01-11 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226303', 'tblTempVendorCDR_20' ) start [2025-01-11 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226303', 'tblTempVendorCDR_20' ) end [2025-01-11 19:10:23] Production.INFO: ProcessCDR(1,14226303,1,1,2) [2025-01-11 19:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226303', 'tblTempUsageDetail_20' ) start [2025-01-11 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226303', 'tblTempUsageDetail_20' ) end [2025-01-11 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:10:27] Production.INFO: ==14317== Releasing lock... [2025-01-11 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:10:27] Production.INFO: 42 MB #Memory Used# [2025-01-11 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:11:05 [end_date_ymd] => 2025-01-11 19:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:11:05' and `end` < '2025-01-11 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-11 19:11:18] Production.INFO: count ==1967 [2025-01-11 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:11:05 - End Time 2025-01-11 19:11:05 [2025-01-11 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226309', 'tblTempUsageDetail_20' ) start [2025-01-11 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226309', 'tblTempUsageDetail_20' ) end [2025-01-11 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226309', 'tblTempVendorCDR_20' ) start [2025-01-11 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226309', 'tblTempVendorCDR_20' ) end [2025-01-11 19:11:19] Production.INFO: ProcessCDR(1,14226309,1,1,2) [2025-01-11 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226309', 'tblTempUsageDetail_20' ) start [2025-01-11 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226309', 'tblTempUsageDetail_20' ) end [2025-01-11 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:11:23] Production.INFO: ==14393== Releasing lock... [2025-01-11 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:11:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:12:04 [end_date_ymd] => 2025-01-11 19:12:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:12:04' and `end` < '2025-01-11 19: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-11 19:12:21] Production.INFO: count ==1965 [2025-01-11 19:12:21] Production.ERROR: pbx CDR StartTime 2025-01-11 16:12:04 - End Time 2025-01-11 19:12:04 [2025-01-11 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226314', 'tblTempUsageDetail_20' ) start [2025-01-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226314', 'tblTempUsageDetail_20' ) end [2025-01-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226314', 'tblTempVendorCDR_20' ) start [2025-01-11 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226314', 'tblTempVendorCDR_20' ) end [2025-01-11 19:12:21] Production.INFO: ProcessCDR(1,14226314,1,1,2) [2025-01-11 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226314', 'tblTempUsageDetail_20' ) start [2025-01-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226314', 'tblTempUsageDetail_20' ) end [2025-01-11 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:12:25] Production.INFO: ==14545== Releasing lock... [2025-01-11 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:12:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:13:04 [end_date_ymd] => 2025-01-11 19:13:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:13:04' and `end` < '2025-01-11 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-11 19:13:19] Production.INFO: count ==1970 [2025-01-11 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:13:04 - End Time 2025-01-11 19:13:04 [2025-01-11 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226319', 'tblTempUsageDetail_20' ) start [2025-01-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226319', 'tblTempUsageDetail_20' ) end [2025-01-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226319', 'tblTempVendorCDR_20' ) start [2025-01-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226319', 'tblTempVendorCDR_20' ) end [2025-01-11 19:13:19] Production.INFO: ProcessCDR(1,14226319,1,1,2) [2025-01-11 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226319', 'tblTempUsageDetail_20' ) start [2025-01-11 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226319', 'tblTempUsageDetail_20' ) end [2025-01-11 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:13:23] Production.INFO: ==14615== Releasing lock... [2025-01-11 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:13:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:14:05 [end_date_ymd] => 2025-01-11 19:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:14:05' and `end` < '2025-01-11 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-11 19:14:18] Production.INFO: count ==1969 [2025-01-11 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:14:05 - End Time 2025-01-11 19:14:05 [2025-01-11 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226324', 'tblTempUsageDetail_20' ) start [2025-01-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226324', 'tblTempUsageDetail_20' ) end [2025-01-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226324', 'tblTempVendorCDR_20' ) start [2025-01-11 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226324', 'tblTempVendorCDR_20' ) end [2025-01-11 19:14:19] Production.INFO: ProcessCDR(1,14226324,1,1,2) [2025-01-11 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226324', 'tblTempUsageDetail_20' ) start [2025-01-11 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226324', 'tblTempUsageDetail_20' ) end [2025-01-11 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:14:23] Production.INFO: ==14685== Releasing lock... [2025-01-11 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:14:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:15:04 [end_date_ymd] => 2025-01-11 19:15:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:15:04' and `end` < '2025-01-11 19: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-11 19:15:19] Production.INFO: count ==1974 [2025-01-11 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:15:04 - End Time 2025-01-11 19:15:04 [2025-01-11 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226329', 'tblTempUsageDetail_20' ) start [2025-01-11 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226329', 'tblTempUsageDetail_20' ) end [2025-01-11 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226329', 'tblTempVendorCDR_20' ) start [2025-01-11 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226329', 'tblTempVendorCDR_20' ) end [2025-01-11 19:15:19] Production.INFO: ProcessCDR(1,14226329,1,1,2) [2025-01-11 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226329', 'tblTempUsageDetail_20' ) start [2025-01-11 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226329', 'tblTempUsageDetail_20' ) end [2025-01-11 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:15:24] Production.INFO: ==14872== Releasing lock... [2025-01-11 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:15:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:16:05 [end_date_ymd] => 2025-01-11 19:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:16:05' and `end` < '2025-01-11 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-11 19:16:19] Production.INFO: count ==1980 [2025-01-11 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:16:05 - End Time 2025-01-11 19:16:05 [2025-01-11 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226334', 'tblTempUsageDetail_20' ) start [2025-01-11 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226334', 'tblTempUsageDetail_20' ) end [2025-01-11 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226334', 'tblTempVendorCDR_20' ) start [2025-01-11 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226334', 'tblTempVendorCDR_20' ) end [2025-01-11 19:16:19] Production.INFO: ProcessCDR(1,14226334,1,1,2) [2025-01-11 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226334', 'tblTempUsageDetail_20' ) start [2025-01-11 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226334', 'tblTempUsageDetail_20' ) end [2025-01-11 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:16:24] Production.INFO: ==14944== Releasing lock... [2025-01-11 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:16:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:17:05 [end_date_ymd] => 2025-01-11 19:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:17:05' and `end` < '2025-01-11 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-11 19:17:19] Production.INFO: count ==1986 [2025-01-11 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:17:05 - End Time 2025-01-11 19:17:05 [2025-01-11 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226339', 'tblTempUsageDetail_20' ) start [2025-01-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226339', 'tblTempUsageDetail_20' ) end [2025-01-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226339', 'tblTempVendorCDR_20' ) start [2025-01-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226339', 'tblTempVendorCDR_20' ) end [2025-01-11 19:17:19] Production.INFO: ProcessCDR(1,14226339,1,1,2) [2025-01-11 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226339', 'tblTempUsageDetail_20' ) start [2025-01-11 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226339', 'tblTempUsageDetail_20' ) end [2025-01-11 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:17:22] Production.INFO: ==15013== Releasing lock... [2025-01-11 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:17:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:18:05 [end_date_ymd] => 2025-01-11 19:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:18:05' and `end` < '2025-01-11 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-11 19:18:18] Production.INFO: count ==1985 [2025-01-11 19:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:18:05 - End Time 2025-01-11 19:18:05 [2025-01-11 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226344', 'tblTempUsageDetail_20' ) start [2025-01-11 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226344', 'tblTempUsageDetail_20' ) end [2025-01-11 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226344', 'tblTempVendorCDR_20' ) start [2025-01-11 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226344', 'tblTempVendorCDR_20' ) end [2025-01-11 19:18:18] Production.INFO: ProcessCDR(1,14226344,1,1,2) [2025-01-11 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226344', 'tblTempUsageDetail_20' ) start [2025-01-11 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226344', 'tblTempUsageDetail_20' ) end [2025-01-11 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:18:22] Production.INFO: ==15083== Releasing lock... [2025-01-11 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:18:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:19:04 [end_date_ymd] => 2025-01-11 19:19:04 [RateCDR] => 1 ) [2025-01-11 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:19:04' and `end` < '2025-01-11 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:19:22] Production.INFO: count ==2029 [2025-01-11 19:19:22] Production.ERROR: pbx CDR StartTime 2025-01-11 16:19:04 - End Time 2025-01-11 19:19:04 [2025-01-11 19:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226349', 'tblTempUsageDetail_20' ) start [2025-01-11 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226349', 'tblTempUsageDetail_20' ) end [2025-01-11 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226349', 'tblTempVendorCDR_20' ) start [2025-01-11 19:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226349', 'tblTempVendorCDR_20' ) end [2025-01-11 19:19:22] Production.INFO: ProcessCDR(1,14226349,1,1,2) [2025-01-11 19:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226349', 'tblTempUsageDetail_20' ) start [2025-01-11 19:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226349', 'tblTempUsageDetail_20' ) end [2025-01-11 19:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:19:27] Production.INFO: ==15154== Releasing lock... [2025-01-11 19:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:19:27] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:20:05 [end_date_ymd] => 2025-01-11 19:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:20:05' and `end` < '2025-01-11 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-11 19:20:19] Production.INFO: count ==2025 [2025-01-11 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:20:05 - End Time 2025-01-11 19:20:05 [2025-01-11 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226354', 'tblTempUsageDetail_20' ) start [2025-01-11 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226354', 'tblTempUsageDetail_20' ) end [2025-01-11 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226354', 'tblTempVendorCDR_20' ) start [2025-01-11 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226354', 'tblTempVendorCDR_20' ) end [2025-01-11 19:20:19] Production.INFO: ProcessCDR(1,14226354,1,1,2) [2025-01-11 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226354', 'tblTempUsageDetail_20' ) start [2025-01-11 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226354', 'tblTempUsageDetail_20' ) end [2025-01-11 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:20:22] Production.INFO: ==15226== Releasing lock... [2025-01-11 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:20:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:21:05 [end_date_ymd] => 2025-01-11 19:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:21:05' and `end` < '2025-01-11 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-11 19:21:21] Production.INFO: count ==2061 [2025-01-11 19:21:22] Production.ERROR: pbx CDR StartTime 2025-01-11 16:21:05 - End Time 2025-01-11 19:21:05 [2025-01-11 19:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226360', 'tblTempUsageDetail_20' ) start [2025-01-11 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226360', 'tblTempUsageDetail_20' ) end [2025-01-11 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226360', 'tblTempVendorCDR_20' ) start [2025-01-11 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226360', 'tblTempVendorCDR_20' ) end [2025-01-11 19:21:22] Production.INFO: ProcessCDR(1,14226360,1,1,2) [2025-01-11 19:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226360', 'tblTempUsageDetail_20' ) start [2025-01-11 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226360', 'tblTempUsageDetail_20' ) end [2025-01-11 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:21:25] Production.INFO: ==15299== Releasing lock... [2025-01-11 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:21:25] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:22:05 [end_date_ymd] => 2025-01-11 19:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:22:05' and `end` < '2025-01-11 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-11 19:22:18] Production.INFO: count ==2065 [2025-01-11 19:22:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:22:05 - End Time 2025-01-11 19:22:05 [2025-01-11 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226365', 'tblTempUsageDetail_20' ) start [2025-01-11 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226365', 'tblTempUsageDetail_20' ) end [2025-01-11 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226365', 'tblTempVendorCDR_20' ) start [2025-01-11 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226365', 'tblTempVendorCDR_20' ) end [2025-01-11 19:22:18] Production.INFO: ProcessCDR(1,14226365,1,1,2) [2025-01-11 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226365', 'tblTempUsageDetail_20' ) start [2025-01-11 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226365', 'tblTempUsageDetail_20' ) end [2025-01-11 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:22:22] Production.INFO: ==15370== Releasing lock... [2025-01-11 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:22:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:23:05 [end_date_ymd] => 2025-01-11 19:23:05 [RateCDR] => 1 ) [2025-01-11 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:23:05' and `end` < '2025-01-11 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:23:20] Production.INFO: count ==2066 [2025-01-11 19:23:20] Production.ERROR: pbx CDR StartTime 2025-01-11 16:23:05 - End Time 2025-01-11 19:23:05 [2025-01-11 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226370', 'tblTempUsageDetail_20' ) start [2025-01-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226370', 'tblTempUsageDetail_20' ) end [2025-01-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226370', 'tblTempVendorCDR_20' ) start [2025-01-11 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226370', 'tblTempVendorCDR_20' ) end [2025-01-11 19:23:20] Production.INFO: ProcessCDR(1,14226370,1,1,2) [2025-01-11 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226370', 'tblTempUsageDetail_20' ) start [2025-01-11 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226370', 'tblTempUsageDetail_20' ) end [2025-01-11 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:23:25] Production.INFO: ==15440== Releasing lock... [2025-01-11 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:23:25] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:24:04 [end_date_ymd] => 2025-01-11 19:24:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:24:04' and `end` < '2025-01-11 19: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-11 19:24:18] Production.INFO: count ==2063 [2025-01-11 19:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:24:04 - End Time 2025-01-11 19:24:04 [2025-01-11 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226375', 'tblTempUsageDetail_20' ) start [2025-01-11 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226375', 'tblTempUsageDetail_20' ) end [2025-01-11 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226375', 'tblTempVendorCDR_20' ) start [2025-01-11 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226375', 'tblTempVendorCDR_20' ) end [2025-01-11 19:24:18] Production.INFO: ProcessCDR(1,14226375,1,1,2) [2025-01-11 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226375', 'tblTempUsageDetail_20' ) start [2025-01-11 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226375', 'tblTempUsageDetail_20' ) end [2025-01-11 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:24:21] Production.INFO: ==15516== Releasing lock... [2025-01-11 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:24:21] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:25:05 [end_date_ymd] => 2025-01-11 19:25:05 [RateCDR] => 1 ) [2025-01-11 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:25:05' and `end` < '2025-01-11 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:25:18] Production.INFO: count ==2059 [2025-01-11 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:25:05 - End Time 2025-01-11 19:25:05 [2025-01-11 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226380', 'tblTempUsageDetail_20' ) start [2025-01-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226380', 'tblTempUsageDetail_20' ) end [2025-01-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226380', 'tblTempVendorCDR_20' ) start [2025-01-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226380', 'tblTempVendorCDR_20' ) end [2025-01-11 19:25:19] Production.INFO: ProcessCDR(1,14226380,1,1,2) [2025-01-11 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226380', 'tblTempUsageDetail_20' ) start [2025-01-11 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226380', 'tblTempUsageDetail_20' ) end [2025-01-11 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:25:22] Production.INFO: ==15590== Releasing lock... [2025-01-11 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:25:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:26:04 [end_date_ymd] => 2025-01-11 19:26:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:26:04' and `end` < '2025-01-11 19: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-11 19:26:20] Production.INFO: count ==2059 [2025-01-11 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-11 16:26:04 - End Time 2025-01-11 19:26:04 [2025-01-11 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226385', 'tblTempUsageDetail_20' ) start [2025-01-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226385', 'tblTempUsageDetail_20' ) end [2025-01-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226385', 'tblTempVendorCDR_20' ) start [2025-01-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226385', 'tblTempVendorCDR_20' ) end [2025-01-11 19:26:20] Production.INFO: ProcessCDR(1,14226385,1,1,2) [2025-01-11 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226385', 'tblTempUsageDetail_20' ) start [2025-01-11 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226385', 'tblTempUsageDetail_20' ) end [2025-01-11 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:26:23] Production.INFO: ==15661== Releasing lock... [2025-01-11 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:26:23] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:27:05 [end_date_ymd] => 2025-01-11 19:27:05 [RateCDR] => 1 ) [2025-01-11 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:27:05' and `end` < '2025-01-11 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:27:18] Production.INFO: count ==2057 [2025-01-11 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:27:05 - End Time 2025-01-11 19:27:05 [2025-01-11 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226390', 'tblTempUsageDetail_20' ) start [2025-01-11 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226390', 'tblTempUsageDetail_20' ) end [2025-01-11 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226390', 'tblTempVendorCDR_20' ) start [2025-01-11 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226390', 'tblTempVendorCDR_20' ) end [2025-01-11 19:27:18] Production.INFO: ProcessCDR(1,14226390,1,1,2) [2025-01-11 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226390', 'tblTempUsageDetail_20' ) start [2025-01-11 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226390', 'tblTempUsageDetail_20' ) end [2025-01-11 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:27:22] Production.INFO: ==15732== Releasing lock... [2025-01-11 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:27:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:28:05 [end_date_ymd] => 2025-01-11 19:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:28:05' and `end` < '2025-01-11 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-11 19:28:18] Production.INFO: count ==2056 [2025-01-11 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:28:05 - End Time 2025-01-11 19:28:05 [2025-01-11 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226395', 'tblTempUsageDetail_20' ) start [2025-01-11 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226395', 'tblTempUsageDetail_20' ) end [2025-01-11 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226395', 'tblTempVendorCDR_20' ) start [2025-01-11 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226395', 'tblTempVendorCDR_20' ) end [2025-01-11 19:28:18] Production.INFO: ProcessCDR(1,14226395,1,1,2) [2025-01-11 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226395', 'tblTempUsageDetail_20' ) start [2025-01-11 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226395', 'tblTempUsageDetail_20' ) end [2025-01-11 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:28:22] Production.INFO: ==15804== Releasing lock... [2025-01-11 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:28:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:29:04 [end_date_ymd] => 2025-01-11 19:29:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:29:04' and `end` < '2025-01-11 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-11 19:29:18] Production.INFO: count ==2053 [2025-01-11 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:29:04 - End Time 2025-01-11 19:29:04 [2025-01-11 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226398', 'tblTempUsageDetail_20' ) start [2025-01-11 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226398', 'tblTempUsageDetail_20' ) end [2025-01-11 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226398', 'tblTempVendorCDR_20' ) start [2025-01-11 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226398', 'tblTempVendorCDR_20' ) end [2025-01-11 19:29:18] Production.INFO: ProcessCDR(1,14226398,1,1,2) [2025-01-11 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226398', 'tblTempUsageDetail_20' ) start [2025-01-11 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226398', 'tblTempUsageDetail_20' ) end [2025-01-11 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:29:21] Production.INFO: ==15875== Releasing lock... [2025-01-11 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:29:21] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:30:05 [end_date_ymd] => 2025-01-11 19:30:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:30:05' and `end` < '2025-01-11 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-11 19:30:19] Production.INFO: count ==2052 [2025-01-11 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:30:05 - End Time 2025-01-11 19:30:05 [2025-01-11 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226405', 'tblTempUsageDetail_20' ) start [2025-01-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226405', 'tblTempUsageDetail_20' ) end [2025-01-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226405', 'tblTempVendorCDR_20' ) start [2025-01-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226405', 'tblTempVendorCDR_20' ) end [2025-01-11 19:30:19] Production.INFO: ProcessCDR(1,14226405,1,1,2) [2025-01-11 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226405', 'tblTempUsageDetail_20' ) start [2025-01-11 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226405', 'tblTempUsageDetail_20' ) end [2025-01-11 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:30:22] Production.INFO: ==15947== Releasing lock... [2025-01-11 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:30:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:31:04 [end_date_ymd] => 2025-01-11 19:31:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:31:04' and `end` < '2025-01-11 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-11 19:31:18] Production.INFO: count ==2065 [2025-01-11 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:31:04 - End Time 2025-01-11 19:31:04 [2025-01-11 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226411', 'tblTempUsageDetail_20' ) start [2025-01-11 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226411', 'tblTempUsageDetail_20' ) end [2025-01-11 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226411', 'tblTempVendorCDR_20' ) start [2025-01-11 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226411', 'tblTempVendorCDR_20' ) end [2025-01-11 19:31:18] Production.INFO: ProcessCDR(1,14226411,1,1,2) [2025-01-11 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226411', 'tblTempUsageDetail_20' ) start [2025-01-11 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226411', 'tblTempUsageDetail_20' ) end [2025-01-11 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:31:22] Production.INFO: ==16056== Releasing lock... [2025-01-11 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:31:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:32:05 [end_date_ymd] => 2025-01-11 19:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:32:05' and `end` < '2025-01-11 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-11 19:32:20] Production.INFO: count ==2075 [2025-01-11 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-11 16:32:05 - End Time 2025-01-11 19:32:05 [2025-01-11 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226416', 'tblTempUsageDetail_20' ) start [2025-01-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226416', 'tblTempUsageDetail_20' ) end [2025-01-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226416', 'tblTempVendorCDR_20' ) start [2025-01-11 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226416', 'tblTempVendorCDR_20' ) end [2025-01-11 19:32:20] Production.INFO: ProcessCDR(1,14226416,1,1,2) [2025-01-11 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226416', 'tblTempUsageDetail_20' ) start [2025-01-11 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226416', 'tblTempUsageDetail_20' ) end [2025-01-11 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:32:25] Production.INFO: ==16128== Releasing lock... [2025-01-11 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:32:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:33:04 [end_date_ymd] => 2025-01-11 19:33:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:33:04' and `end` < '2025-01-11 19: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-11 19:33:18] Production.INFO: count ==2087 [2025-01-11 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:33:04 - End Time 2025-01-11 19:33:04 [2025-01-11 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226421', 'tblTempUsageDetail_20' ) start [2025-01-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226421', 'tblTempUsageDetail_20' ) end [2025-01-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226421', 'tblTempVendorCDR_20' ) start [2025-01-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226421', 'tblTempVendorCDR_20' ) end [2025-01-11 19:33:19] Production.INFO: ProcessCDR(1,14226421,1,1,2) [2025-01-11 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226421', 'tblTempUsageDetail_20' ) start [2025-01-11 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226421', 'tblTempUsageDetail_20' ) end [2025-01-11 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:33:22] Production.INFO: ==16197== Releasing lock... [2025-01-11 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:33:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:34:05 [end_date_ymd] => 2025-01-11 19:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:34:05' and `end` < '2025-01-11 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-11 19:34:19] Production.INFO: count ==2093 [2025-01-11 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:34:05 - End Time 2025-01-11 19:34:05 [2025-01-11 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226426', 'tblTempUsageDetail_20' ) start [2025-01-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226426', 'tblTempUsageDetail_20' ) end [2025-01-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226426', 'tblTempVendorCDR_20' ) start [2025-01-11 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226426', 'tblTempVendorCDR_20' ) end [2025-01-11 19:34:19] Production.INFO: ProcessCDR(1,14226426,1,1,2) [2025-01-11 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226426', 'tblTempUsageDetail_20' ) start [2025-01-11 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226426', 'tblTempUsageDetail_20' ) end [2025-01-11 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:34:24] Production.INFO: ==16269== Releasing lock... [2025-01-11 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:34:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:35:05 [end_date_ymd] => 2025-01-11 19:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:35:05' and `end` < '2025-01-11 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-11 19:35:18] Production.INFO: count ==2109 [2025-01-11 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:35:05 - End Time 2025-01-11 19:35:05 [2025-01-11 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226431', 'tblTempUsageDetail_20' ) start [2025-01-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226431', 'tblTempUsageDetail_20' ) end [2025-01-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226431', 'tblTempVendorCDR_20' ) start [2025-01-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226431', 'tblTempVendorCDR_20' ) end [2025-01-11 19:35:19] Production.INFO: ProcessCDR(1,14226431,1,1,2) [2025-01-11 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226431', 'tblTempUsageDetail_20' ) start [2025-01-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226431', 'tblTempUsageDetail_20' ) end [2025-01-11 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:35:23] Production.INFO: ==16346== Releasing lock... [2025-01-11 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:35:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:36:05 [end_date_ymd] => 2025-01-11 19:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:36:05' and `end` < '2025-01-11 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-11 19:36:19] Production.INFO: count ==2109 [2025-01-11 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:36:05 - End Time 2025-01-11 19:36:05 [2025-01-11 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226436', 'tblTempUsageDetail_20' ) start [2025-01-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226436', 'tblTempUsageDetail_20' ) end [2025-01-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226436', 'tblTempVendorCDR_20' ) start [2025-01-11 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226436', 'tblTempVendorCDR_20' ) end [2025-01-11 19:36:19] Production.INFO: ProcessCDR(1,14226436,1,1,2) [2025-01-11 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226436', 'tblTempUsageDetail_20' ) start [2025-01-11 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226436', 'tblTempUsageDetail_20' ) end [2025-01-11 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:36:22] Production.INFO: ==16418== Releasing lock... [2025-01-11 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:36:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:37:05 [end_date_ymd] => 2025-01-11 19:37:05 [RateCDR] => 1 ) [2025-01-11 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:37:05' and `end` < '2025-01-11 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:37:22] Production.INFO: count ==2108 [2025-01-11 19:37:22] Production.ERROR: pbx CDR StartTime 2025-01-11 16:37:05 - End Time 2025-01-11 19:37:05 [2025-01-11 19:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226441', 'tblTempUsageDetail_20' ) start [2025-01-11 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226441', 'tblTempUsageDetail_20' ) end [2025-01-11 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226441', 'tblTempVendorCDR_20' ) start [2025-01-11 19:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226441', 'tblTempVendorCDR_20' ) end [2025-01-11 19:37:22] Production.INFO: ProcessCDR(1,14226441,1,1,2) [2025-01-11 19:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226441', 'tblTempUsageDetail_20' ) start [2025-01-11 19:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226441', 'tblTempUsageDetail_20' ) end [2025-01-11 19:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:37:27] Production.INFO: ==16492== Releasing lock... [2025-01-11 19:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:37:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:38:04 [end_date_ymd] => 2025-01-11 19:38:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:38:04' and `end` < '2025-01-11 19: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-11 19:38:20] Production.INFO: count ==2108 [2025-01-11 19:38:21] Production.ERROR: pbx CDR StartTime 2025-01-11 16:38:04 - End Time 2025-01-11 19:38:04 [2025-01-11 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226446', 'tblTempUsageDetail_20' ) start [2025-01-11 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226446', 'tblTempUsageDetail_20' ) end [2025-01-11 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226446', 'tblTempVendorCDR_20' ) start [2025-01-11 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226446', 'tblTempVendorCDR_20' ) end [2025-01-11 19:38:21] Production.INFO: ProcessCDR(1,14226446,1,1,2) [2025-01-11 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226446', 'tblTempUsageDetail_20' ) start [2025-01-11 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226446', 'tblTempUsageDetail_20' ) end [2025-01-11 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:38:24] Production.INFO: ==16574== Releasing lock... [2025-01-11 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:38:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:39:04 [end_date_ymd] => 2025-01-11 19:39:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:39:04' and `end` < '2025-01-11 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-11 19:39:18] Production.INFO: count ==2116 [2025-01-11 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:39:04 - End Time 2025-01-11 19:39:04 [2025-01-11 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226451', 'tblTempUsageDetail_20' ) start [2025-01-11 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226451', 'tblTempUsageDetail_20' ) end [2025-01-11 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226451', 'tblTempVendorCDR_20' ) start [2025-01-11 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226451', 'tblTempVendorCDR_20' ) end [2025-01-11 19:39:18] Production.INFO: ProcessCDR(1,14226451,1,1,2) [2025-01-11 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226451', 'tblTempUsageDetail_20' ) start [2025-01-11 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226451', 'tblTempUsageDetail_20' ) end [2025-01-11 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:39:22] Production.INFO: ==16660== Releasing lock... [2025-01-11 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:39:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:40:06 [end_date_ymd] => 2025-01-11 19:40:06 [RateCDR] => 1 ) [2025-01-11 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-11 16:40:06' and `end` < '2025-01-11 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-11 19:40:21] Production.INFO: count ==2124 [2025-01-11 19:40:21] Production.ERROR: pbx CDR StartTime 2025-01-11 16:40:06 - End Time 2025-01-11 19:40:06 [2025-01-11 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226457', 'tblTempUsageDetail_20' ) start [2025-01-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226457', 'tblTempUsageDetail_20' ) end [2025-01-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226457', 'tblTempVendorCDR_20' ) start [2025-01-11 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226457', 'tblTempVendorCDR_20' ) end [2025-01-11 19:40:21] Production.INFO: ProcessCDR(1,14226457,1,1,2) [2025-01-11 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226457', 'tblTempUsageDetail_20' ) start [2025-01-11 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226457', 'tblTempUsageDetail_20' ) end [2025-01-11 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:40:26] Production.INFO: ==16749== Releasing lock... [2025-01-11 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:40:26] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:41:06 [end_date_ymd] => 2025-01-11 19:41:06 [RateCDR] => 1 ) [2025-01-11 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:41:06' and `end` < '2025-01-11 19:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:41:19] Production.INFO: count ==2129 [2025-01-11 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:41:06 - End Time 2025-01-11 19:41:06 [2025-01-11 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226462', 'tblTempUsageDetail_20' ) start [2025-01-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226462', 'tblTempUsageDetail_20' ) end [2025-01-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226462', 'tblTempVendorCDR_20' ) start [2025-01-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226462', 'tblTempVendorCDR_20' ) end [2025-01-11 19:41:19] Production.INFO: ProcessCDR(1,14226462,1,1,2) [2025-01-11 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226462', 'tblTempUsageDetail_20' ) start [2025-01-11 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226462', 'tblTempUsageDetail_20' ) end [2025-01-11 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:41:24] Production.INFO: ==16843== Releasing lock... [2025-01-11 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:41:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:42:05 [end_date_ymd] => 2025-01-11 19:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:42:05' and `end` < '2025-01-11 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-11 19:42:19] Production.INFO: count ==2141 [2025-01-11 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:42:05 - End Time 2025-01-11 19:42:05 [2025-01-11 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226467', 'tblTempUsageDetail_20' ) start [2025-01-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226467', 'tblTempUsageDetail_20' ) end [2025-01-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226467', 'tblTempVendorCDR_20' ) start [2025-01-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226467', 'tblTempVendorCDR_20' ) end [2025-01-11 19:42:19] Production.INFO: ProcessCDR(1,14226467,1,1,2) [2025-01-11 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226467', 'tblTempUsageDetail_20' ) start [2025-01-11 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226467', 'tblTempUsageDetail_20' ) end [2025-01-11 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:42:22] Production.INFO: ==16932== Releasing lock... [2025-01-11 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:42:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:43:05 [end_date_ymd] => 2025-01-11 19:43:05 [RateCDR] => 1 ) [2025-01-11 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:43:05' and `end` < '2025-01-11 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:43:18] Production.INFO: count ==2143 [2025-01-11 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:43:05 - End Time 2025-01-11 19:43:05 [2025-01-11 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226472', 'tblTempUsageDetail_20' ) start [2025-01-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226472', 'tblTempUsageDetail_20' ) end [2025-01-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226472', 'tblTempVendorCDR_20' ) start [2025-01-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226472', 'tblTempVendorCDR_20' ) end [2025-01-11 19:43:19] Production.INFO: ProcessCDR(1,14226472,1,1,2) [2025-01-11 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226472', 'tblTempUsageDetail_20' ) start [2025-01-11 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226472', 'tblTempUsageDetail_20' ) end [2025-01-11 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:43:22] Production.INFO: ==17016== Releasing lock... [2025-01-11 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:43:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:44:05 [end_date_ymd] => 2025-01-11 19:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:44:05' and `end` < '2025-01-11 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-11 19:44:21] Production.INFO: count ==2148 [2025-01-11 19:44:21] Production.ERROR: pbx CDR StartTime 2025-01-11 16:44:05 - End Time 2025-01-11 19:44:05 [2025-01-11 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226477', 'tblTempUsageDetail_20' ) start [2025-01-11 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226477', 'tblTempUsageDetail_20' ) end [2025-01-11 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226477', 'tblTempVendorCDR_20' ) start [2025-01-11 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226477', 'tblTempVendorCDR_20' ) end [2025-01-11 19:44:21] Production.INFO: ProcessCDR(1,14226477,1,1,2) [2025-01-11 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226477', 'tblTempUsageDetail_20' ) start [2025-01-11 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226477', 'tblTempUsageDetail_20' ) end [2025-01-11 19:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:44:26] Production.INFO: ==17111== Releasing lock... [2025-01-11 19:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:44:26] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:45:05 [end_date_ymd] => 2025-01-11 19:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:45:05' and `end` < '2025-01-11 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-11 19:45:18] Production.INFO: count ==2145 [2025-01-11 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:45:05 - End Time 2025-01-11 19:45:05 [2025-01-11 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226482', 'tblTempUsageDetail_20' ) start [2025-01-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226482', 'tblTempUsageDetail_20' ) end [2025-01-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226482', 'tblTempVendorCDR_20' ) start [2025-01-11 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226482', 'tblTempVendorCDR_20' ) end [2025-01-11 19:45:19] Production.INFO: ProcessCDR(1,14226482,1,1,2) [2025-01-11 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226482', 'tblTempUsageDetail_20' ) start [2025-01-11 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226482', 'tblTempUsageDetail_20' ) end [2025-01-11 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:45:23] Production.INFO: ==17207== Releasing lock... [2025-01-11 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:45:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:46:06 [end_date_ymd] => 2025-01-11 19:46:06 [RateCDR] => 1 ) [2025-01-11 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:46:06' and `end` < '2025-01-11 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:46:20] Production.INFO: count ==2148 [2025-01-11 19:46:20] Production.ERROR: pbx CDR StartTime 2025-01-11 16:46:06 - End Time 2025-01-11 19:46:06 [2025-01-11 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226487', 'tblTempUsageDetail_20' ) start [2025-01-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226487', 'tblTempUsageDetail_20' ) end [2025-01-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226487', 'tblTempVendorCDR_20' ) start [2025-01-11 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226487', 'tblTempVendorCDR_20' ) end [2025-01-11 19:46:20] Production.INFO: ProcessCDR(1,14226487,1,1,2) [2025-01-11 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226487', 'tblTempUsageDetail_20' ) start [2025-01-11 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226487', 'tblTempUsageDetail_20' ) end [2025-01-11 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:46:25] Production.INFO: ==17339== Releasing lock... [2025-01-11 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:46:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:47:05 [end_date_ymd] => 2025-01-11 19:47:05 [RateCDR] => 1 ) [2025-01-11 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:47:05' and `end` < '2025-01-11 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:47:18] Production.INFO: count ==2150 [2025-01-11 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:47:05 - End Time 2025-01-11 19:47:05 [2025-01-11 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226492', 'tblTempUsageDetail_20' ) start [2025-01-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226492', 'tblTempUsageDetail_20' ) end [2025-01-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226492', 'tblTempVendorCDR_20' ) start [2025-01-11 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226492', 'tblTempVendorCDR_20' ) end [2025-01-11 19:47:19] Production.INFO: ProcessCDR(1,14226492,1,1,2) [2025-01-11 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226492', 'tblTempUsageDetail_20' ) start [2025-01-11 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226492', 'tblTempUsageDetail_20' ) end [2025-01-11 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:47:23] Production.INFO: ==17434== Releasing lock... [2025-01-11 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:47:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:48:05 [end_date_ymd] => 2025-01-11 19:48:05 [RateCDR] => 1 ) [2025-01-11 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:48:05' and `end` < '2025-01-11 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:48:18] Production.INFO: count ==2150 [2025-01-11 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:48:05 - End Time 2025-01-11 19:48:05 [2025-01-11 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226497', 'tblTempUsageDetail_20' ) start [2025-01-11 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226497', 'tblTempUsageDetail_20' ) end [2025-01-11 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226497', 'tblTempVendorCDR_20' ) start [2025-01-11 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226497', 'tblTempVendorCDR_20' ) end [2025-01-11 19:48:18] Production.INFO: ProcessCDR(1,14226497,1,1,2) [2025-01-11 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226497', 'tblTempUsageDetail_20' ) start [2025-01-11 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226497', 'tblTempUsageDetail_20' ) end [2025-01-11 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:48:21] Production.INFO: ==17528== Releasing lock... [2025-01-11 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:48:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:49:04 [end_date_ymd] => 2025-01-11 19:49:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:49:04' and `end` < '2025-01-11 19: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-11 19:49:35] Production.INFO: count ==2151 [2025-01-11 19:49:35] Production.ERROR: pbx CDR StartTime 2025-01-11 16:49:04 - End Time 2025-01-11 19:49:04 [2025-01-11 19:49:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226502', 'tblTempUsageDetail_20' ) start [2025-01-11 19:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226502', 'tblTempUsageDetail_20' ) end [2025-01-11 19:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226502', 'tblTempVendorCDR_20' ) start [2025-01-11 19:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226502', 'tblTempVendorCDR_20' ) end [2025-01-11 19:49:35] Production.INFO: ProcessCDR(1,14226502,1,1,2) [2025-01-11 19:49:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:49:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:49:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:49:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226502', 'tblTempUsageDetail_20' ) start [2025-01-11 19:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226502', 'tblTempUsageDetail_20' ) end [2025-01-11 19:49:39] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:49:39] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:49:39] Production.INFO: ==17618== Releasing lock... [2025-01-11 19:49:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:49:39] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:50:06 [end_date_ymd] => 2025-01-11 19:50:06 [RateCDR] => 1 ) [2025-01-11 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:50:06' and `end` < '2025-01-11 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:50:30] Production.INFO: count ==2136 [2025-01-11 19:50:30] Production.ERROR: pbx CDR StartTime 2025-01-11 16:50:06 - End Time 2025-01-11 19:50:06 [2025-01-11 19:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226508', 'tblTempUsageDetail_20' ) start [2025-01-11 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226508', 'tblTempUsageDetail_20' ) end [2025-01-11 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226508', 'tblTempVendorCDR_20' ) start [2025-01-11 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226508', 'tblTempVendorCDR_20' ) end [2025-01-11 19:50:30] Production.INFO: ProcessCDR(1,14226508,1,1,2) [2025-01-11 19:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226508', 'tblTempUsageDetail_20' ) start [2025-01-11 19:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226508', 'tblTempUsageDetail_20' ) end [2025-01-11 19:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:50:33] Production.INFO: ==17707== Releasing lock... [2025-01-11 19:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:50:33] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:51:05 [end_date_ymd] => 2025-01-11 19:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:51:05' and `end` < '2025-01-11 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-11 19:51:22] Production.INFO: count ==2125 [2025-01-11 19:51:23] Production.ERROR: pbx CDR StartTime 2025-01-11 16:51:05 - End Time 2025-01-11 19:51:05 [2025-01-11 19:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226513', 'tblTempUsageDetail_20' ) start [2025-01-11 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226513', 'tblTempUsageDetail_20' ) end [2025-01-11 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226513', 'tblTempVendorCDR_20' ) start [2025-01-11 19:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226513', 'tblTempVendorCDR_20' ) end [2025-01-11 19:51:23] Production.INFO: ProcessCDR(1,14226513,1,1,2) [2025-01-11 19:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226513', 'tblTempUsageDetail_20' ) start [2025-01-11 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226513', 'tblTempUsageDetail_20' ) end [2025-01-11 19:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:51:26] Production.INFO: ==17798== Releasing lock... [2025-01-11 19:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:51:26] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:52:04 [end_date_ymd] => 2025-01-11 19:52:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:52:04' and `end` < '2025-01-11 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-11 19:52:19] Production.INFO: count ==2124 [2025-01-11 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:52:04 - End Time 2025-01-11 19:52:04 [2025-01-11 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226518', 'tblTempUsageDetail_20' ) start [2025-01-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226518', 'tblTempUsageDetail_20' ) end [2025-01-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226518', 'tblTempVendorCDR_20' ) start [2025-01-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226518', 'tblTempVendorCDR_20' ) end [2025-01-11 19:52:19] Production.INFO: ProcessCDR(1,14226518,1,1,2) [2025-01-11 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226518', 'tblTempUsageDetail_20' ) start [2025-01-11 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226518', 'tblTempUsageDetail_20' ) end [2025-01-11 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:52:22] Production.INFO: ==17892== Releasing lock... [2025-01-11 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:52:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:53:05 [end_date_ymd] => 2025-01-11 19:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:53:05' and `end` < '2025-01-11 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-11 19:53:19] Production.INFO: count ==2120 [2025-01-11 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:53:05 - End Time 2025-01-11 19:53:05 [2025-01-11 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226523', 'tblTempUsageDetail_20' ) start [2025-01-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226523', 'tblTempUsageDetail_20' ) end [2025-01-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226523', 'tblTempVendorCDR_20' ) start [2025-01-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226523', 'tblTempVendorCDR_20' ) end [2025-01-11 19:53:19] Production.INFO: ProcessCDR(1,14226523,1,1,2) [2025-01-11 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226523', 'tblTempUsageDetail_20' ) start [2025-01-11 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226523', 'tblTempUsageDetail_20' ) end [2025-01-11 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:53:22] Production.INFO: ==17978== Releasing lock... [2025-01-11 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:53:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:54:04 [end_date_ymd] => 2025-01-11 19:54:04 [RateCDR] => 1 ) [2025-01-11 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-11 16:54:04' and `end` < '2025-01-11 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-11 19:54:18] Production.INFO: count ==2103 [2025-01-11 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:54:04 - End Time 2025-01-11 19:54:04 [2025-01-11 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226528', 'tblTempUsageDetail_20' ) start [2025-01-11 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226528', 'tblTempUsageDetail_20' ) end [2025-01-11 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226528', 'tblTempVendorCDR_20' ) start [2025-01-11 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226528', 'tblTempVendorCDR_20' ) end [2025-01-11 19:54:18] Production.INFO: ProcessCDR(1,14226528,1,1,2) [2025-01-11 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226528', 'tblTempUsageDetail_20' ) start [2025-01-11 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226528', 'tblTempUsageDetail_20' ) end [2025-01-11 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:54:22] Production.INFO: ==18064== Releasing lock... [2025-01-11 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:54:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:55:05 [end_date_ymd] => 2025-01-11 19:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:55:05' and `end` < '2025-01-11 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-11 19:55:18] Production.INFO: count ==2103 [2025-01-11 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:55:05 - End Time 2025-01-11 19:55:05 [2025-01-11 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226533', 'tblTempUsageDetail_20' ) start [2025-01-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226533', 'tblTempUsageDetail_20' ) end [2025-01-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226533', 'tblTempVendorCDR_20' ) start [2025-01-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226533', 'tblTempVendorCDR_20' ) end [2025-01-11 19:55:19] Production.INFO: ProcessCDR(1,14226533,1,1,2) [2025-01-11 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226533', 'tblTempUsageDetail_20' ) start [2025-01-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226533', 'tblTempUsageDetail_20' ) end [2025-01-11 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:55:22] Production.INFO: ==18150== Releasing lock... [2025-01-11 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:55:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:56:05 [end_date_ymd] => 2025-01-11 19:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 16:56:05' and `end` < '2025-01-11 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-11 19:56:18] Production.INFO: count ==2101 [2025-01-11 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:56:05 - End Time 2025-01-11 19:56:05 [2025-01-11 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226538', 'tblTempUsageDetail_20' ) start [2025-01-11 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226538', 'tblTempUsageDetail_20' ) end [2025-01-11 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226538', 'tblTempVendorCDR_20' ) start [2025-01-11 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226538', 'tblTempVendorCDR_20' ) end [2025-01-11 19:56:18] Production.INFO: ProcessCDR(1,14226538,1,1,2) [2025-01-11 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226538', 'tblTempUsageDetail_20' ) start [2025-01-11 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226538', 'tblTempUsageDetail_20' ) end [2025-01-11 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:56:21] Production.INFO: ==18251== Releasing lock... [2025-01-11 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:56:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:57:04 [end_date_ymd] => 2025-01-11 19:57:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:57:04' and `end` < '2025-01-11 19: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-11 19:57:18] Production.INFO: count ==2109 [2025-01-11 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:57:04 - End Time 2025-01-11 19:57:04 [2025-01-11 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226543', 'tblTempUsageDetail_20' ) start [2025-01-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226543', 'tblTempUsageDetail_20' ) end [2025-01-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226543', 'tblTempVendorCDR_20' ) start [2025-01-11 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226543', 'tblTempVendorCDR_20' ) end [2025-01-11 19:57:18] Production.INFO: ProcessCDR(1,14226543,1,1,2) [2025-01-11 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226543', 'tblTempUsageDetail_20' ) start [2025-01-11 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226543', 'tblTempUsageDetail_20' ) end [2025-01-11 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:57:21] Production.INFO: ==18361== Releasing lock... [2025-01-11 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:57:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:58:05 [end_date_ymd] => 2025-01-11 19:58:05 [RateCDR] => 1 ) [2025-01-11 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 16:58:05' and `end` < '2025-01-11 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 19:58:19] Production.INFO: count ==2110 [2025-01-11 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 16:58:05 - End Time 2025-01-11 19:58:05 [2025-01-11 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226548', 'tblTempUsageDetail_20' ) start [2025-01-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226548', 'tblTempUsageDetail_20' ) end [2025-01-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226548', 'tblTempVendorCDR_20' ) start [2025-01-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226548', 'tblTempVendorCDR_20' ) end [2025-01-11 19:58:19] Production.INFO: ProcessCDR(1,14226548,1,1,2) [2025-01-11 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226548', 'tblTempUsageDetail_20' ) start [2025-01-11 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226548', 'tblTempUsageDetail_20' ) end [2025-01-11 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:58:22] Production.INFO: ==18462== Releasing lock... [2025-01-11 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:58:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-11 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 16:59:04 [end_date_ymd] => 2025-01-11 19:59:04 [RateCDR] => 1 ) [2025-01-11 19: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-11 16:59:04' and `end` < '2025-01-11 19: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-11 19:59:18] Production.INFO: count ==2111 [2025-01-11 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 16:59:04 - End Time 2025-01-11 19:59:04 [2025-01-11 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226553', 'tblTempUsageDetail_20' ) start [2025-01-11 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226553', 'tblTempUsageDetail_20' ) end [2025-01-11 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226553', 'tblTempVendorCDR_20' ) start [2025-01-11 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226553', 'tblTempVendorCDR_20' ) end [2025-01-11 19:59:18] Production.INFO: ProcessCDR(1,14226553,1,1,2) [2025-01-11 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226553', 'tblTempUsageDetail_20' ) start [2025-01-11 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226553', 'tblTempUsageDetail_20' ) end [2025-01-11 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 19:59:21] Production.INFO: ==18563== Releasing lock... [2025-01-11 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 19:59:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:00:05 [end_date_ymd] => 2025-01-11 20:00:05 [RateCDR] => 1 ) [2025-01-11 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:00:05' and `end` < '2025-01-11 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:00:18] Production.INFO: count ==2117 [2025-01-11 20:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:00:05 - End Time 2025-01-11 20:00:05 [2025-01-11 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226554', 'tblTempUsageDetail_20' ) start [2025-01-11 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226554', 'tblTempUsageDetail_20' ) end [2025-01-11 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226554', 'tblTempVendorCDR_20' ) start [2025-01-11 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226554', 'tblTempVendorCDR_20' ) end [2025-01-11 20:00:18] Production.INFO: ProcessCDR(1,14226554,1,1,2) [2025-01-11 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226554', 'tblTempUsageDetail_20' ) start [2025-01-11 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226554', 'tblTempUsageDetail_20' ) end [2025-01-11 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:00:23] Production.INFO: ==18665== Releasing lock... [2025-01-11 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:00:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:01:05 [end_date_ymd] => 2025-01-11 20:01:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:01:05' and `end` < '2025-01-11 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-11 20:01:18] Production.INFO: count ==2100 [2025-01-11 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:01:05 - End Time 2025-01-11 20:01:05 [2025-01-11 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226564', 'tblTempUsageDetail_20' ) start [2025-01-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226564', 'tblTempUsageDetail_20' ) end [2025-01-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226564', 'tblTempVendorCDR_20' ) start [2025-01-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226564', 'tblTempVendorCDR_20' ) end [2025-01-11 20:01:19] Production.INFO: ProcessCDR(1,14226564,1,1,2) [2025-01-11 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226564', 'tblTempUsageDetail_20' ) start [2025-01-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226564', 'tblTempUsageDetail_20' ) end [2025-01-11 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:01:22] Production.INFO: ==18817== Releasing lock... [2025-01-11 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-11 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:02:05 [end_date_ymd] => 2025-01-11 20:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:02:05' and `end` < '2025-01-11 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-11 20:02:18] Production.INFO: count ==2098 [2025-01-11 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:02:05 - End Time 2025-01-11 20:02:05 [2025-01-11 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226569', 'tblTempUsageDetail_20' ) start [2025-01-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226569', 'tblTempUsageDetail_20' ) end [2025-01-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226569', 'tblTempVendorCDR_20' ) start [2025-01-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226569', 'tblTempVendorCDR_20' ) end [2025-01-11 20:02:19] Production.INFO: ProcessCDR(1,14226569,1,1,2) [2025-01-11 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226569', 'tblTempUsageDetail_20' ) start [2025-01-11 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226569', 'tblTempUsageDetail_20' ) end [2025-01-11 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:02:23] Production.INFO: ==18954== Releasing lock... [2025-01-11 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:02:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:03:04 [end_date_ymd] => 2025-01-11 20:03:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:03:04' and `end` < '2025-01-11 20: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-11 20:03:18] Production.INFO: count ==2095 [2025-01-11 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:03:04 - End Time 2025-01-11 20:03:04 [2025-01-11 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226574', 'tblTempUsageDetail_20' ) start [2025-01-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226574', 'tblTempUsageDetail_20' ) end [2025-01-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226574', 'tblTempVendorCDR_20' ) start [2025-01-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226574', 'tblTempVendorCDR_20' ) end [2025-01-11 20:03:18] Production.INFO: ProcessCDR(1,14226574,1,1,2) [2025-01-11 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226574', 'tblTempUsageDetail_20' ) start [2025-01-11 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226574', 'tblTempUsageDetail_20' ) end [2025-01-11 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:03:21] Production.INFO: ==19055== Releasing lock... [2025-01-11 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:03:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:04:04 [end_date_ymd] => 2025-01-11 20:04:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:04:04' and `end` < '2025-01-11 20: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-11 20:04:18] Production.INFO: count ==2080 [2025-01-11 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:04:04 - End Time 2025-01-11 20:04:04 [2025-01-11 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226579', 'tblTempUsageDetail_20' ) start [2025-01-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226579', 'tblTempUsageDetail_20' ) end [2025-01-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226579', 'tblTempVendorCDR_20' ) start [2025-01-11 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226579', 'tblTempVendorCDR_20' ) end [2025-01-11 20:04:18] Production.INFO: ProcessCDR(1,14226579,1,1,2) [2025-01-11 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226579', 'tblTempUsageDetail_20' ) start [2025-01-11 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226579', 'tblTempUsageDetail_20' ) end [2025-01-11 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:04:21] Production.INFO: ==19155== Releasing lock... [2025-01-11 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:04:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:05:05 [end_date_ymd] => 2025-01-11 20:05:05 [RateCDR] => 1 ) [2025-01-11 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:05:05' and `end` < '2025-01-11 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:05:18] Production.INFO: count ==2077 [2025-01-11 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:05:05 - End Time 2025-01-11 20:05:05 [2025-01-11 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226584', 'tblTempUsageDetail_20' ) start [2025-01-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226584', 'tblTempUsageDetail_20' ) end [2025-01-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226584', 'tblTempVendorCDR_20' ) start [2025-01-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226584', 'tblTempVendorCDR_20' ) end [2025-01-11 20:05:18] Production.INFO: ProcessCDR(1,14226584,1,1,2) [2025-01-11 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226584', 'tblTempUsageDetail_20' ) start [2025-01-11 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226584', 'tblTempUsageDetail_20' ) end [2025-01-11 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:05:21] Production.INFO: ==19254== Releasing lock... [2025-01-11 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:05:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:06:05 [end_date_ymd] => 2025-01-11 20:06:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:06:05' and `end` < '2025-01-11 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-11 20:06:19] Production.INFO: count ==2072 [2025-01-11 20:06:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:06:05 - End Time 2025-01-11 20:06:05 [2025-01-11 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226589', 'tblTempUsageDetail_20' ) start [2025-01-11 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226589', 'tblTempUsageDetail_20' ) end [2025-01-11 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226589', 'tblTempVendorCDR_20' ) start [2025-01-11 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226589', 'tblTempVendorCDR_20' ) end [2025-01-11 20:06:20] Production.INFO: ProcessCDR(1,14226589,1,1,2) [2025-01-11 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226589', 'tblTempUsageDetail_20' ) start [2025-01-11 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226589', 'tblTempUsageDetail_20' ) end [2025-01-11 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:06:24] Production.INFO: ==19356== Releasing lock... [2025-01-11 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:06:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-11 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:07:05 [end_date_ymd] => 2025-01-11 20:07:05 [RateCDR] => 1 ) [2025-01-11 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:07:05' and `end` < '2025-01-11 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:07:19] Production.INFO: count ==2070 [2025-01-11 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:07:05 - End Time 2025-01-11 20:07:05 [2025-01-11 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226594', 'tblTempUsageDetail_20' ) start [2025-01-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226594', 'tblTempUsageDetail_20' ) end [2025-01-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226594', 'tblTempVendorCDR_20' ) start [2025-01-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226594', 'tblTempVendorCDR_20' ) end [2025-01-11 20:07:19] Production.INFO: ProcessCDR(1,14226594,1,1,2) [2025-01-11 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226594', 'tblTempUsageDetail_20' ) start [2025-01-11 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226594', 'tblTempUsageDetail_20' ) end [2025-01-11 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:07:22] Production.INFO: ==19456== Releasing lock... [2025-01-11 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:07:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:08:04 [end_date_ymd] => 2025-01-11 20:08:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:08:04' and `end` < '2025-01-11 20: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-11 20:08:18] Production.INFO: count ==2067 [2025-01-11 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:08:04 - End Time 2025-01-11 20:08:04 [2025-01-11 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226599', 'tblTempUsageDetail_20' ) start [2025-01-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226599', 'tblTempUsageDetail_20' ) end [2025-01-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226599', 'tblTempVendorCDR_20' ) start [2025-01-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226599', 'tblTempVendorCDR_20' ) end [2025-01-11 20:08:19] Production.INFO: ProcessCDR(1,14226599,1,1,2) [2025-01-11 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226599', 'tblTempUsageDetail_20' ) start [2025-01-11 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226599', 'tblTempUsageDetail_20' ) end [2025-01-11 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:08:22] Production.INFO: ==19555== Releasing lock... [2025-01-11 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:08:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:09:05 [end_date_ymd] => 2025-01-11 20:09:05 [RateCDR] => 1 ) [2025-01-11 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:09:05' and `end` < '2025-01-11 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:09:19] Production.INFO: count ==2068 [2025-01-11 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:09:05 - End Time 2025-01-11 20:09:05 [2025-01-11 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226604', 'tblTempUsageDetail_20' ) start [2025-01-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226604', 'tblTempUsageDetail_20' ) end [2025-01-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226604', 'tblTempVendorCDR_20' ) start [2025-01-11 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226604', 'tblTempVendorCDR_20' ) end [2025-01-11 20:09:19] Production.INFO: ProcessCDR(1,14226604,1,1,2) [2025-01-11 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226604', 'tblTempUsageDetail_20' ) start [2025-01-11 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226604', 'tblTempUsageDetail_20' ) end [2025-01-11 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:09:22] Production.INFO: ==19654== Releasing lock... [2025-01-11 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:09:22] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:10:06 [end_date_ymd] => 2025-01-11 20:10:06 [RateCDR] => 1 ) [2025-01-11 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:10:06' and `end` < '2025-01-11 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:10:19] Production.INFO: count ==2071 [2025-01-11 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:10:06 - End Time 2025-01-11 20:10:06 [2025-01-11 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226610', 'tblTempUsageDetail_20' ) start [2025-01-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226610', 'tblTempUsageDetail_20' ) end [2025-01-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226610', 'tblTempVendorCDR_20' ) start [2025-01-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226610', 'tblTempVendorCDR_20' ) end [2025-01-11 20:10:19] Production.INFO: ProcessCDR(1,14226610,1,1,2) [2025-01-11 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226610', 'tblTempUsageDetail_20' ) start [2025-01-11 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226610', 'tblTempUsageDetail_20' ) end [2025-01-11 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:10:24] Production.INFO: ==19756== Releasing lock... [2025-01-11 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:10:24] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:11:04 [end_date_ymd] => 2025-01-11 20:11:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:11:04' and `end` < '2025-01-11 20: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-11 20:11:18] Production.INFO: count ==2042 [2025-01-11 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:11:04 - End Time 2025-01-11 20:11:04 [2025-01-11 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226615', 'tblTempUsageDetail_20' ) start [2025-01-11 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226615', 'tblTempUsageDetail_20' ) end [2025-01-11 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226615', 'tblTempVendorCDR_20' ) start [2025-01-11 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226615', 'tblTempVendorCDR_20' ) end [2025-01-11 20:11:18] Production.INFO: ProcessCDR(1,14226615,1,1,2) [2025-01-11 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226615', 'tblTempUsageDetail_20' ) start [2025-01-11 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226615', 'tblTempUsageDetail_20' ) end [2025-01-11 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:11:21] Production.INFO: ==19867== Releasing lock... [2025-01-11 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:11:21] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:12:05 [end_date_ymd] => 2025-01-11 20:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:12:05' and `end` < '2025-01-11 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-11 20:12:18] Production.INFO: count ==2037 [2025-01-11 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:12:05 - End Time 2025-01-11 20:12:05 [2025-01-11 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226620', 'tblTempUsageDetail_20' ) start [2025-01-11 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226620', 'tblTempUsageDetail_20' ) end [2025-01-11 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226620', 'tblTempVendorCDR_20' ) start [2025-01-11 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226620', 'tblTempVendorCDR_20' ) end [2025-01-11 20:12:18] Production.INFO: ProcessCDR(1,14226620,1,1,2) [2025-01-11 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226620', 'tblTempUsageDetail_20' ) start [2025-01-11 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226620', 'tblTempUsageDetail_20' ) end [2025-01-11 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:12:21] Production.INFO: ==19998== Releasing lock... [2025-01-11 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:12:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:13:04 [end_date_ymd] => 2025-01-11 20:13:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:13:04' and `end` < '2025-01-11 20: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-11 20:13:18] Production.INFO: count ==2038 [2025-01-11 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:13:04 - End Time 2025-01-11 20:13:04 [2025-01-11 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226625', 'tblTempUsageDetail_20' ) start [2025-01-11 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226625', 'tblTempUsageDetail_20' ) end [2025-01-11 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226625', 'tblTempVendorCDR_20' ) start [2025-01-11 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226625', 'tblTempVendorCDR_20' ) end [2025-01-11 20:13:18] Production.INFO: ProcessCDR(1,14226625,1,1,2) [2025-01-11 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226625', 'tblTempUsageDetail_20' ) start [2025-01-11 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226625', 'tblTempUsageDetail_20' ) end [2025-01-11 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:13:21] Production.INFO: ==20129== Releasing lock... [2025-01-11 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:13:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:14:05 [end_date_ymd] => 2025-01-11 20:14:05 [RateCDR] => 1 ) [2025-01-11 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:14:05' and `end` < '2025-01-11 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:14:21] Production.INFO: count ==2041 [2025-01-11 20:14:21] Production.ERROR: pbx CDR StartTime 2025-01-11 17:14:05 - End Time 2025-01-11 20:14:05 [2025-01-11 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226630', 'tblTempUsageDetail_20' ) start [2025-01-11 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226630', 'tblTempUsageDetail_20' ) end [2025-01-11 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226630', 'tblTempVendorCDR_20' ) start [2025-01-11 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226630', 'tblTempVendorCDR_20' ) end [2025-01-11 20:14:21] Production.INFO: ProcessCDR(1,14226630,1,1,2) [2025-01-11 20:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226630', 'tblTempUsageDetail_20' ) start [2025-01-11 20:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226630', 'tblTempUsageDetail_20' ) end [2025-01-11 20:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:14:26] Production.INFO: ==20236== Releasing lock... [2025-01-11 20:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:14:26] Production.INFO: 43 MB #Memory Used# [2025-01-11 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:15:04 [end_date_ymd] => 2025-01-11 20:15:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:15:04' and `end` < '2025-01-11 20: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-11 20:15:18] Production.INFO: count ==2037 [2025-01-11 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:15:04 - End Time 2025-01-11 20:15:04 [2025-01-11 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226635', 'tblTempUsageDetail_20' ) start [2025-01-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226635', 'tblTempUsageDetail_20' ) end [2025-01-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226635', 'tblTempVendorCDR_20' ) start [2025-01-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226635', 'tblTempVendorCDR_20' ) end [2025-01-11 20:15:18] Production.INFO: ProcessCDR(1,14226635,1,1,2) [2025-01-11 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226635', 'tblTempUsageDetail_20' ) start [2025-01-11 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226635', 'tblTempUsageDetail_20' ) end [2025-01-11 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:15:21] Production.INFO: ==20340== Releasing lock... [2025-01-11 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:15:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:16:05 [end_date_ymd] => 2025-01-11 20:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:16:05' and `end` < '2025-01-11 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-11 20:16:18] Production.INFO: count ==2033 [2025-01-11 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:16:05 - End Time 2025-01-11 20:16:05 [2025-01-11 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226640', 'tblTempUsageDetail_20' ) start [2025-01-11 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226640', 'tblTempUsageDetail_20' ) end [2025-01-11 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226640', 'tblTempVendorCDR_20' ) start [2025-01-11 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226640', 'tblTempVendorCDR_20' ) end [2025-01-11 20:16:18] Production.INFO: ProcessCDR(1,14226640,1,1,2) [2025-01-11 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226640', 'tblTempUsageDetail_20' ) start [2025-01-11 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226640', 'tblTempUsageDetail_20' ) end [2025-01-11 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:16:22] Production.INFO: ==20448== Releasing lock... [2025-01-11 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:16:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:17:05 [end_date_ymd] => 2025-01-11 20:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:17:05' and `end` < '2025-01-11 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-11 20:17:19] Production.INFO: count ==2030 [2025-01-11 20:17:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:17:05 - End Time 2025-01-11 20:17:05 [2025-01-11 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226645', 'tblTempUsageDetail_20' ) start [2025-01-11 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226645', 'tblTempUsageDetail_20' ) end [2025-01-11 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226645', 'tblTempVendorCDR_20' ) start [2025-01-11 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226645', 'tblTempVendorCDR_20' ) end [2025-01-11 20:17:20] Production.INFO: ProcessCDR(1,14226645,1,1,2) [2025-01-11 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226645', 'tblTempUsageDetail_20' ) start [2025-01-11 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226645', 'tblTempUsageDetail_20' ) end [2025-01-11 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:17:23] Production.INFO: ==20596== Releasing lock... [2025-01-11 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:18:05 [end_date_ymd] => 2025-01-11 20:18:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:18:05' and `end` < '2025-01-11 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-11 20:18:19] Production.INFO: count ==2023 [2025-01-11 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:18:05 - End Time 2025-01-11 20:18:05 [2025-01-11 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226650', 'tblTempUsageDetail_20' ) start [2025-01-11 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226650', 'tblTempUsageDetail_20' ) end [2025-01-11 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226650', 'tblTempVendorCDR_20' ) start [2025-01-11 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226650', 'tblTempVendorCDR_20' ) end [2025-01-11 20:18:19] Production.INFO: ProcessCDR(1,14226650,1,1,2) [2025-01-11 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226650', 'tblTempUsageDetail_20' ) start [2025-01-11 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226650', 'tblTempUsageDetail_20' ) end [2025-01-11 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:18:22] Production.INFO: ==20711== Releasing lock... [2025-01-11 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:18:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:19:05 [end_date_ymd] => 2025-01-11 20:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:19:05' and `end` < '2025-01-11 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-11 20:19:18] Production.INFO: count ==2024 [2025-01-11 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:19:05 - End Time 2025-01-11 20:19:05 [2025-01-11 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226655', 'tblTempUsageDetail_20' ) start [2025-01-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226655', 'tblTempUsageDetail_20' ) end [2025-01-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226655', 'tblTempVendorCDR_20' ) start [2025-01-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226655', 'tblTempVendorCDR_20' ) end [2025-01-11 20:19:19] Production.INFO: ProcessCDR(1,14226655,1,1,2) [2025-01-11 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226655', 'tblTempUsageDetail_20' ) start [2025-01-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226655', 'tblTempUsageDetail_20' ) end [2025-01-11 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:19:22] Production.INFO: ==20818== Releasing lock... [2025-01-11 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:19:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:20:05 [end_date_ymd] => 2025-01-11 20:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:20:05' and `end` < '2025-01-11 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-11 20:20:18] Production.INFO: count ==2024 [2025-01-11 20:20:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:20:05 - End Time 2025-01-11 20:20:05 [2025-01-11 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226660', 'tblTempUsageDetail_20' ) start [2025-01-11 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226660', 'tblTempUsageDetail_20' ) end [2025-01-11 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226660', 'tblTempVendorCDR_20' ) start [2025-01-11 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226660', 'tblTempVendorCDR_20' ) end [2025-01-11 20:20:18] Production.INFO: ProcessCDR(1,14226660,1,1,2) [2025-01-11 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226660', 'tblTempUsageDetail_20' ) start [2025-01-11 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226660', 'tblTempUsageDetail_20' ) end [2025-01-11 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:20:22] Production.INFO: ==20931== Releasing lock... [2025-01-11 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:20:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-11 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:21:05 [end_date_ymd] => 2025-01-11 20:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:21:05' and `end` < '2025-01-11 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-11 20:21:18] Production.INFO: count ==1982 [2025-01-11 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:21:05 - End Time 2025-01-11 20:21:05 [2025-01-11 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226666', 'tblTempUsageDetail_20' ) start [2025-01-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226666', 'tblTempUsageDetail_20' ) end [2025-01-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226666', 'tblTempVendorCDR_20' ) start [2025-01-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226666', 'tblTempVendorCDR_20' ) end [2025-01-11 20:21:19] Production.INFO: ProcessCDR(1,14226666,1,1,2) [2025-01-11 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226666', 'tblTempUsageDetail_20' ) start [2025-01-11 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226666', 'tblTempUsageDetail_20' ) end [2025-01-11 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:21:22] Production.INFO: ==21039== Releasing lock... [2025-01-11 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:21:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:22:04 [end_date_ymd] => 2025-01-11 20:22:04 [RateCDR] => 1 ) [2025-01-11 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-11 17:22:04' and `end` < '2025-01-11 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-11 20:22:19] Production.INFO: count ==1979 [2025-01-11 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:22:04 - End Time 2025-01-11 20:22:04 [2025-01-11 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226671', 'tblTempUsageDetail_20' ) start [2025-01-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226671', 'tblTempUsageDetail_20' ) end [2025-01-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226671', 'tblTempVendorCDR_20' ) start [2025-01-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226671', 'tblTempVendorCDR_20' ) end [2025-01-11 20:22:19] Production.INFO: ProcessCDR(1,14226671,1,1,2) [2025-01-11 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226671', 'tblTempUsageDetail_20' ) start [2025-01-11 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226671', 'tblTempUsageDetail_20' ) end [2025-01-11 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:22:24] Production.INFO: ==21148== Releasing lock... [2025-01-11 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:22:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:23:04 [end_date_ymd] => 2025-01-11 20:23:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:23:04' and `end` < '2025-01-11 20: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-11 20:23:18] Production.INFO: count ==1985 [2025-01-11 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:23:04 - End Time 2025-01-11 20:23:04 [2025-01-11 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226676', 'tblTempUsageDetail_20' ) start [2025-01-11 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226676', 'tblTempUsageDetail_20' ) end [2025-01-11 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226676', 'tblTempVendorCDR_20' ) start [2025-01-11 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226676', 'tblTempVendorCDR_20' ) end [2025-01-11 20:23:18] Production.INFO: ProcessCDR(1,14226676,1,1,2) [2025-01-11 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226676', 'tblTempUsageDetail_20' ) start [2025-01-11 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226676', 'tblTempUsageDetail_20' ) end [2025-01-11 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:23:23] Production.INFO: ==21254== Releasing lock... [2025-01-11 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:23:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:24:05 [end_date_ymd] => 2025-01-11 20:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:24:05' and `end` < '2025-01-11 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-11 20:24:20] Production.INFO: count ==1993 [2025-01-11 20:24:21] Production.ERROR: pbx CDR StartTime 2025-01-11 17:24:05 - End Time 2025-01-11 20:24:05 [2025-01-11 20:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226681', 'tblTempUsageDetail_20' ) start [2025-01-11 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226681', 'tblTempUsageDetail_20' ) end [2025-01-11 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226681', 'tblTempVendorCDR_20' ) start [2025-01-11 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226681', 'tblTempVendorCDR_20' ) end [2025-01-11 20:24:21] Production.INFO: ProcessCDR(1,14226681,1,1,2) [2025-01-11 20:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226681', 'tblTempUsageDetail_20' ) start [2025-01-11 20:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226681', 'tblTempUsageDetail_20' ) end [2025-01-11 20:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:24:26] Production.INFO: ==21361== Releasing lock... [2025-01-11 20:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:24:26] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:25:05 [end_date_ymd] => 2025-01-11 20:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:25:05' and `end` < '2025-01-11 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-11 20:25:18] Production.INFO: count ==1999 [2025-01-11 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:25:05 - End Time 2025-01-11 20:25:05 [2025-01-11 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226686', 'tblTempUsageDetail_20' ) start [2025-01-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226686', 'tblTempUsageDetail_20' ) end [2025-01-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226686', 'tblTempVendorCDR_20' ) start [2025-01-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226686', 'tblTempVendorCDR_20' ) end [2025-01-11 20:25:18] Production.INFO: ProcessCDR(1,14226686,1,1,2) [2025-01-11 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226686', 'tblTempUsageDetail_20' ) start [2025-01-11 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226686', 'tblTempUsageDetail_20' ) end [2025-01-11 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:25:23] Production.INFO: ==21464== Releasing lock... [2025-01-11 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:25:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:26:05 [end_date_ymd] => 2025-01-11 20:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:26:05' and `end` < '2025-01-11 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-11 20:26:19] Production.INFO: count ==1998 [2025-01-11 20:26:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:26:05 - End Time 2025-01-11 20:26:05 [2025-01-11 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226691', 'tblTempUsageDetail_20' ) start [2025-01-11 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226691', 'tblTempUsageDetail_20' ) end [2025-01-11 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226691', 'tblTempVendorCDR_20' ) start [2025-01-11 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226691', 'tblTempVendorCDR_20' ) end [2025-01-11 20:26:20] Production.INFO: ProcessCDR(1,14226691,1,1,2) [2025-01-11 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226691', 'tblTempUsageDetail_20' ) start [2025-01-11 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226691', 'tblTempUsageDetail_20' ) end [2025-01-11 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:26:23] Production.INFO: ==21534== Releasing lock... [2025-01-11 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:26:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:27:05 [end_date_ymd] => 2025-01-11 20:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:27:05' and `end` < '2025-01-11 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-11 20:27:18] Production.INFO: count ==2000 [2025-01-11 20:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:27:05 - End Time 2025-01-11 20:27:05 [2025-01-11 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226696', 'tblTempUsageDetail_20' ) start [2025-01-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226696', 'tblTempUsageDetail_20' ) end [2025-01-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226696', 'tblTempVendorCDR_20' ) start [2025-01-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226696', 'tblTempVendorCDR_20' ) end [2025-01-11 20:27:19] Production.INFO: ProcessCDR(1,14226696,1,1,2) [2025-01-11 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226696', 'tblTempUsageDetail_20' ) start [2025-01-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226696', 'tblTempUsageDetail_20' ) end [2025-01-11 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:27:22] Production.INFO: ==21604== Releasing lock... [2025-01-11 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:27:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:28:05 [end_date_ymd] => 2025-01-11 20:28:05 [RateCDR] => 1 ) [2025-01-11 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:28:05' and `end` < '2025-01-11 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:28:20] Production.INFO: count ==1990 [2025-01-11 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:28:05 - End Time 2025-01-11 20:28:05 [2025-01-11 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226701', 'tblTempUsageDetail_20' ) start [2025-01-11 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226701', 'tblTempUsageDetail_20' ) end [2025-01-11 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226701', 'tblTempVendorCDR_20' ) start [2025-01-11 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226701', 'tblTempVendorCDR_20' ) end [2025-01-11 20:28:20] Production.INFO: ProcessCDR(1,14226701,1,1,2) [2025-01-11 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226701', 'tblTempUsageDetail_20' ) start [2025-01-11 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226701', 'tblTempUsageDetail_20' ) end [2025-01-11 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:28:23] Production.INFO: ==21675== Releasing lock... [2025-01-11 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:28:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:29:05 [end_date_ymd] => 2025-01-11 20:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:29:05' and `end` < '2025-01-11 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-11 20:29:18] Production.INFO: count ==1989 [2025-01-11 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:29:05 - End Time 2025-01-11 20:29:05 [2025-01-11 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226706', 'tblTempUsageDetail_20' ) start [2025-01-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226706', 'tblTempUsageDetail_20' ) end [2025-01-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226706', 'tblTempVendorCDR_20' ) start [2025-01-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226706', 'tblTempVendorCDR_20' ) end [2025-01-11 20:29:19] Production.INFO: ProcessCDR(1,14226706,1,1,2) [2025-01-11 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226706', 'tblTempUsageDetail_20' ) start [2025-01-11 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226706', 'tblTempUsageDetail_20' ) end [2025-01-11 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:29:22] Production.INFO: ==21748== Releasing lock... [2025-01-11 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:29:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:30:05 [end_date_ymd] => 2025-01-11 20:30:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:30:05' and `end` < '2025-01-11 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-11 20:30:20] Production.INFO: count ==1999 [2025-01-11 20:30:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:30:05 - End Time 2025-01-11 20:30:05 [2025-01-11 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226712', 'tblTempUsageDetail_20' ) start [2025-01-11 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226712', 'tblTempUsageDetail_20' ) end [2025-01-11 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226712', 'tblTempVendorCDR_20' ) start [2025-01-11 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226712', 'tblTempVendorCDR_20' ) end [2025-01-11 20:30:21] Production.INFO: ProcessCDR(1,14226712,1,1,2) [2025-01-11 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226712', 'tblTempUsageDetail_20' ) start [2025-01-11 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226712', 'tblTempUsageDetail_20' ) end [2025-01-11 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:30:24] Production.INFO: ==21824== Releasing lock... [2025-01-11 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:30:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:31:05 [end_date_ymd] => 2025-01-11 20:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:31:05' and `end` < '2025-01-11 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-11 20:31:18] Production.INFO: count ==1958 [2025-01-11 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:31:05 - End Time 2025-01-11 20:31:05 [2025-01-11 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226717', 'tblTempUsageDetail_20' ) start [2025-01-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226717', 'tblTempUsageDetail_20' ) end [2025-01-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226717', 'tblTempVendorCDR_20' ) start [2025-01-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226717', 'tblTempVendorCDR_20' ) end [2025-01-11 20:31:19] Production.INFO: ProcessCDR(1,14226717,1,1,2) [2025-01-11 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226717', 'tblTempUsageDetail_20' ) start [2025-01-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226717', 'tblTempUsageDetail_20' ) end [2025-01-11 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:31:22] Production.INFO: ==21897== Releasing lock... [2025-01-11 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:31:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:32:04 [end_date_ymd] => 2025-01-11 20:32:04 [RateCDR] => 1 ) [2025-01-11 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:32:04' and `end` < '2025-01-11 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-11 20:32:22] Production.INFO: count ==1967 [2025-01-11 20:32:22] Production.ERROR: pbx CDR StartTime 2025-01-11 17:32:04 - End Time 2025-01-11 20:32:04 [2025-01-11 20:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226722', 'tblTempUsageDetail_20' ) start [2025-01-11 20:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226722', 'tblTempUsageDetail_20' ) end [2025-01-11 20:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226722', 'tblTempVendorCDR_20' ) start [2025-01-11 20:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226722', 'tblTempVendorCDR_20' ) end [2025-01-11 20:32:22] Production.INFO: ProcessCDR(1,14226722,1,1,2) [2025-01-11 20:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226722', 'tblTempUsageDetail_20' ) start [2025-01-11 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226722', 'tblTempUsageDetail_20' ) end [2025-01-11 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:32:25] Production.INFO: ==21967== Releasing lock... [2025-01-11 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:32:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:33:05 [end_date_ymd] => 2025-01-11 20:33:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:33:05' and `end` < '2025-01-11 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-11 20:33:18] Production.INFO: count ==1971 [2025-01-11 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:33:05 - End Time 2025-01-11 20:33:05 [2025-01-11 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226727', 'tblTempUsageDetail_20' ) start [2025-01-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226727', 'tblTempUsageDetail_20' ) end [2025-01-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226727', 'tblTempVendorCDR_20' ) start [2025-01-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226727', 'tblTempVendorCDR_20' ) end [2025-01-11 20:33:19] Production.INFO: ProcessCDR(1,14226727,1,1,2) [2025-01-11 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226727', 'tblTempUsageDetail_20' ) start [2025-01-11 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226727', 'tblTempUsageDetail_20' ) end [2025-01-11 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:33:22] Production.INFO: ==22079== Releasing lock... [2025-01-11 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:33:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:34:05 [end_date_ymd] => 2025-01-11 20:34:05 [RateCDR] => 1 ) [2025-01-11 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:34:05' and `end` < '2025-01-11 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:34:18] Production.INFO: count ==1968 [2025-01-11 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:34:05 - End Time 2025-01-11 20:34:05 [2025-01-11 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226732', 'tblTempUsageDetail_20' ) start [2025-01-11 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226732', 'tblTempUsageDetail_20' ) end [2025-01-11 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226732', 'tblTempVendorCDR_20' ) start [2025-01-11 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226732', 'tblTempVendorCDR_20' ) end [2025-01-11 20:34:19] Production.INFO: ProcessCDR(1,14226732,1,1,2) [2025-01-11 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226732', 'tblTempUsageDetail_20' ) start [2025-01-11 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226732', 'tblTempUsageDetail_20' ) end [2025-01-11 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:34:22] Production.INFO: ==22154== Releasing lock... [2025-01-11 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:34:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:35:05 [end_date_ymd] => 2025-01-11 20:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:35:05' and `end` < '2025-01-11 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-11 20:35:18] Production.INFO: count ==1957 [2025-01-11 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:35:05 - End Time 2025-01-11 20:35:05 [2025-01-11 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226737', 'tblTempUsageDetail_20' ) start [2025-01-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226737', 'tblTempUsageDetail_20' ) end [2025-01-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226737', 'tblTempVendorCDR_20' ) start [2025-01-11 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226737', 'tblTempVendorCDR_20' ) end [2025-01-11 20:35:18] Production.INFO: ProcessCDR(1,14226737,1,1,2) [2025-01-11 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226737', 'tblTempUsageDetail_20' ) start [2025-01-11 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226737', 'tblTempUsageDetail_20' ) end [2025-01-11 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:35:22] Production.INFO: ==22224== Releasing lock... [2025-01-11 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:35:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:36:05 [end_date_ymd] => 2025-01-11 20:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:36:05' and `end` < '2025-01-11 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-11 20:36:19] Production.INFO: count ==1958 [2025-01-11 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:36:05 - End Time 2025-01-11 20:36:05 [2025-01-11 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226742', 'tblTempUsageDetail_20' ) start [2025-01-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226742', 'tblTempUsageDetail_20' ) end [2025-01-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226742', 'tblTempVendorCDR_20' ) start [2025-01-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226742', 'tblTempVendorCDR_20' ) end [2025-01-11 20:36:19] Production.INFO: ProcessCDR(1,14226742,1,1,2) [2025-01-11 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226742', 'tblTempUsageDetail_20' ) start [2025-01-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226742', 'tblTempUsageDetail_20' ) end [2025-01-11 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:36:22] Production.INFO: ==22294== Releasing lock... [2025-01-11 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:36:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:37:05 [end_date_ymd] => 2025-01-11 20:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:37:05' and `end` < '2025-01-11 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-11 20:37:19] Production.INFO: count ==1967 [2025-01-11 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:37:05 - End Time 2025-01-11 20:37:05 [2025-01-11 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226747', 'tblTempUsageDetail_20' ) start [2025-01-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226747', 'tblTempUsageDetail_20' ) end [2025-01-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226747', 'tblTempVendorCDR_20' ) start [2025-01-11 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226747', 'tblTempVendorCDR_20' ) end [2025-01-11 20:37:19] Production.INFO: ProcessCDR(1,14226747,1,1,2) [2025-01-11 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226747', 'tblTempUsageDetail_20' ) start [2025-01-11 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226747', 'tblTempUsageDetail_20' ) end [2025-01-11 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:37:24] Production.INFO: ==22365== Releasing lock... [2025-01-11 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:37:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:38:04 [end_date_ymd] => 2025-01-11 20:38:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:38:04' and `end` < '2025-01-11 20: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-11 20:38:18] Production.INFO: count ==1967 [2025-01-11 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:38:04 - End Time 2025-01-11 20:38:04 [2025-01-11 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226752', 'tblTempUsageDetail_20' ) start [2025-01-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226752', 'tblTempUsageDetail_20' ) end [2025-01-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226752', 'tblTempVendorCDR_20' ) start [2025-01-11 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226752', 'tblTempVendorCDR_20' ) end [2025-01-11 20:38:18] Production.INFO: ProcessCDR(1,14226752,1,1,2) [2025-01-11 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226752', 'tblTempUsageDetail_20' ) start [2025-01-11 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226752', 'tblTempUsageDetail_20' ) end [2025-01-11 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:38:21] Production.INFO: ==22433== Releasing lock... [2025-01-11 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:38:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-11 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:39:05 [end_date_ymd] => 2025-01-11 20:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:39:05' and `end` < '2025-01-11 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-11 20:39:18] Production.INFO: count ==1965 [2025-01-11 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:39:05 - End Time 2025-01-11 20:39:05 [2025-01-11 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226757', 'tblTempUsageDetail_20' ) start [2025-01-11 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226757', 'tblTempUsageDetail_20' ) end [2025-01-11 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226757', 'tblTempVendorCDR_20' ) start [2025-01-11 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226757', 'tblTempVendorCDR_20' ) end [2025-01-11 20:39:18] Production.INFO: ProcessCDR(1,14226757,1,1,2) [2025-01-11 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226757', 'tblTempUsageDetail_20' ) start [2025-01-11 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226757', 'tblTempUsageDetail_20' ) end [2025-01-11 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:39:23] Production.INFO: ==22506== Releasing lock... [2025-01-11 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:39:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:40:06 [end_date_ymd] => 2025-01-11 20:40:06 [RateCDR] => 1 ) [2025-01-11 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:40:06' and `end` < '2025-01-11 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:40:20] Production.INFO: count ==1957 [2025-01-11 20:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:40:06 - End Time 2025-01-11 20:40:06 [2025-01-11 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226763', 'tblTempUsageDetail_20' ) start [2025-01-11 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226763', 'tblTempUsageDetail_20' ) end [2025-01-11 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226763', 'tblTempVendorCDR_20' ) start [2025-01-11 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226763', 'tblTempVendorCDR_20' ) end [2025-01-11 20:40:20] Production.INFO: ProcessCDR(1,14226763,1,1,2) [2025-01-11 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226763', 'tblTempUsageDetail_20' ) start [2025-01-11 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226763', 'tblTempUsageDetail_20' ) end [2025-01-11 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:40:23] Production.INFO: ==22579== Releasing lock... [2025-01-11 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:40:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:41:05 [end_date_ymd] => 2025-01-11 20:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:41:05' and `end` < '2025-01-11 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-11 20:41:18] Production.INFO: count ==1944 [2025-01-11 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:41:05 - End Time 2025-01-11 20:41:05 [2025-01-11 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226768', 'tblTempUsageDetail_20' ) start [2025-01-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226768', 'tblTempUsageDetail_20' ) end [2025-01-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226768', 'tblTempVendorCDR_20' ) start [2025-01-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226768', 'tblTempVendorCDR_20' ) end [2025-01-11 20:41:19] Production.INFO: ProcessCDR(1,14226768,1,1,2) [2025-01-11 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226768', 'tblTempUsageDetail_20' ) start [2025-01-11 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226768', 'tblTempUsageDetail_20' ) end [2025-01-11 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:41:22] Production.INFO: ==22654== Releasing lock... [2025-01-11 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:41:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:42:05 [end_date_ymd] => 2025-01-11 20:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:42:05' and `end` < '2025-01-11 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-11 20:42:19] Production.INFO: count ==1941 [2025-01-11 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:42:05 - End Time 2025-01-11 20:42:05 [2025-01-11 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226773', 'tblTempUsageDetail_20' ) start [2025-01-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226773', 'tblTempUsageDetail_20' ) end [2025-01-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226773', 'tblTempVendorCDR_20' ) start [2025-01-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226773', 'tblTempVendorCDR_20' ) end [2025-01-11 20:42:19] Production.INFO: ProcessCDR(1,14226773,1,1,2) [2025-01-11 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226773', 'tblTempUsageDetail_20' ) start [2025-01-11 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226773', 'tblTempUsageDetail_20' ) end [2025-01-11 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:42:22] Production.INFO: ==22726== Releasing lock... [2025-01-11 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:42:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-11 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:43:05 [end_date_ymd] => 2025-01-11 20:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:43:05' and `end` < '2025-01-11 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-11 20:43:18] Production.INFO: count ==1938 [2025-01-11 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:43:05 - End Time 2025-01-11 20:43:05 [2025-01-11 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226778', 'tblTempUsageDetail_20' ) start [2025-01-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226778', 'tblTempUsageDetail_20' ) end [2025-01-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226778', 'tblTempVendorCDR_20' ) start [2025-01-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226778', 'tblTempVendorCDR_20' ) end [2025-01-11 20:43:18] Production.INFO: ProcessCDR(1,14226778,1,1,2) [2025-01-11 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226778', 'tblTempUsageDetail_20' ) start [2025-01-11 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226778', 'tblTempUsageDetail_20' ) end [2025-01-11 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:43:22] Production.INFO: ==22795== Releasing lock... [2025-01-11 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:43:22] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:44:05 [end_date_ymd] => 2025-01-11 20:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:44:05' and `end` < '2025-01-11 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-11 20:44:19] Production.INFO: count ==1933 [2025-01-11 20:44:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:44:05 - End Time 2025-01-11 20:44:05 [2025-01-11 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226783', 'tblTempUsageDetail_20' ) start [2025-01-11 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226783', 'tblTempUsageDetail_20' ) end [2025-01-11 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226783', 'tblTempVendorCDR_20' ) start [2025-01-11 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226783', 'tblTempVendorCDR_20' ) end [2025-01-11 20:44:20] Production.INFO: ProcessCDR(1,14226783,1,1,2) [2025-01-11 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226783', 'tblTempUsageDetail_20' ) start [2025-01-11 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226783', 'tblTempUsageDetail_20' ) end [2025-01-11 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:44:24] Production.INFO: ==22868== Releasing lock... [2025-01-11 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:44:24] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:45:05 [end_date_ymd] => 2025-01-11 20:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:45:05' and `end` < '2025-01-11 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-11 20:45:18] Production.INFO: count ==1932 [2025-01-11 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:45:05 - End Time 2025-01-11 20:45:05 [2025-01-11 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226788', 'tblTempUsageDetail_20' ) start [2025-01-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226788', 'tblTempUsageDetail_20' ) end [2025-01-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226788', 'tblTempVendorCDR_20' ) start [2025-01-11 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226788', 'tblTempVendorCDR_20' ) end [2025-01-11 20:45:18] Production.INFO: ProcessCDR(1,14226788,1,1,2) [2025-01-11 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226788', 'tblTempUsageDetail_20' ) start [2025-01-11 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226788', 'tblTempUsageDetail_20' ) end [2025-01-11 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:45:21] Production.INFO: ==22951== Releasing lock... [2025-01-11 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:45:21] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:46:05 [end_date_ymd] => 2025-01-11 20:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:46:05' and `end` < '2025-01-11 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-11 20:46:19] Production.INFO: count ==1929 [2025-01-11 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:46:05 - End Time 2025-01-11 20:46:05 [2025-01-11 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226793', 'tblTempUsageDetail_20' ) start [2025-01-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226793', 'tblTempUsageDetail_20' ) end [2025-01-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226793', 'tblTempVendorCDR_20' ) start [2025-01-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226793', 'tblTempVendorCDR_20' ) end [2025-01-11 20:46:19] Production.INFO: ProcessCDR(1,14226793,1,1,2) [2025-01-11 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226793', 'tblTempUsageDetail_20' ) start [2025-01-11 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226793', 'tblTempUsageDetail_20' ) end [2025-01-11 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:46:23] Production.INFO: ==23070== Releasing lock... [2025-01-11 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:46:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:47:05 [end_date_ymd] => 2025-01-11 20:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:47:05' and `end` < '2025-01-11 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-11 20:47:19] Production.INFO: count ==1916 [2025-01-11 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:47:05 - End Time 2025-01-11 20:47:05 [2025-01-11 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226798', 'tblTempUsageDetail_20' ) start [2025-01-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226798', 'tblTempUsageDetail_20' ) end [2025-01-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226798', 'tblTempVendorCDR_20' ) start [2025-01-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226798', 'tblTempVendorCDR_20' ) end [2025-01-11 20:47:19] Production.INFO: ProcessCDR(1,14226798,1,1,2) [2025-01-11 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226798', 'tblTempUsageDetail_20' ) start [2025-01-11 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226798', 'tblTempUsageDetail_20' ) end [2025-01-11 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:47:24] Production.INFO: ==23185== Releasing lock... [2025-01-11 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:47:24] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:48:05 [end_date_ymd] => 2025-01-11 20:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:48:05' and `end` < '2025-01-11 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-11 20:48:19] Production.INFO: count ==1923 [2025-01-11 20:48:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:48:05 - End Time 2025-01-11 20:48:05 [2025-01-11 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226803', 'tblTempUsageDetail_20' ) start [2025-01-11 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226803', 'tblTempUsageDetail_20' ) end [2025-01-11 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226803', 'tblTempVendorCDR_20' ) start [2025-01-11 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226803', 'tblTempVendorCDR_20' ) end [2025-01-11 20:48:20] Production.INFO: ProcessCDR(1,14226803,1,1,2) [2025-01-11 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226803', 'tblTempUsageDetail_20' ) start [2025-01-11 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226803', 'tblTempUsageDetail_20' ) end [2025-01-11 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:48:24] Production.INFO: ==23306== Releasing lock... [2025-01-11 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:48:24] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:49:05 [end_date_ymd] => 2025-01-11 20:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:49:05' and `end` < '2025-01-11 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-11 20:49:18] Production.INFO: count ==1926 [2025-01-11 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:49:05 - End Time 2025-01-11 20:49:05 [2025-01-11 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226808', 'tblTempUsageDetail_20' ) start [2025-01-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226808', 'tblTempUsageDetail_20' ) end [2025-01-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226808', 'tblTempVendorCDR_20' ) start [2025-01-11 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226808', 'tblTempVendorCDR_20' ) end [2025-01-11 20:49:18] Production.INFO: ProcessCDR(1,14226808,1,1,2) [2025-01-11 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226808', 'tblTempUsageDetail_20' ) start [2025-01-11 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226808', 'tblTempUsageDetail_20' ) end [2025-01-11 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:49:21] Production.INFO: ==23462== Releasing lock... [2025-01-11 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:49:21] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:50:06 [end_date_ymd] => 2025-01-11 20:50:06 [RateCDR] => 1 ) [2025-01-11 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:50:06' and `end` < '2025-01-11 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:50:19] Production.INFO: count ==1925 [2025-01-11 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:50:06 - End Time 2025-01-11 20:50:06 [2025-01-11 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226814', 'tblTempUsageDetail_20' ) start [2025-01-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226814', 'tblTempUsageDetail_20' ) end [2025-01-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226814', 'tblTempVendorCDR_20' ) start [2025-01-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226814', 'tblTempVendorCDR_20' ) end [2025-01-11 20:50:20] Production.INFO: ProcessCDR(1,14226814,1,1,2) [2025-01-11 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226814', 'tblTempUsageDetail_20' ) start [2025-01-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226814', 'tblTempUsageDetail_20' ) end [2025-01-11 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:50:23] Production.INFO: ==23580== Releasing lock... [2025-01-11 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:50:23] Production.INFO: 42 MB #Memory Used# [2025-01-11 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:51:04 [end_date_ymd] => 2025-01-11 20:51:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:51:04' and `end` < '2025-01-11 20: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-11 20:51:18] Production.INFO: count ==1889 [2025-01-11 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:51:04 - End Time 2025-01-11 20:51:04 [2025-01-11 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226819', 'tblTempUsageDetail_20' ) start [2025-01-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226819', 'tblTempUsageDetail_20' ) end [2025-01-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226819', 'tblTempVendorCDR_20' ) start [2025-01-11 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226819', 'tblTempVendorCDR_20' ) end [2025-01-11 20:51:18] Production.INFO: ProcessCDR(1,14226819,1,1,2) [2025-01-11 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226819', 'tblTempUsageDetail_20' ) start [2025-01-11 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226819', 'tblTempUsageDetail_20' ) end [2025-01-11 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:51:21] Production.INFO: ==23700== Releasing lock... [2025-01-11 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:51:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:52:05 [end_date_ymd] => 2025-01-11 20:52:05 [RateCDR] => 1 ) [2025-01-11 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:52:05' and `end` < '2025-01-11 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:52:18] Production.INFO: count ==1883 [2025-01-11 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:52:05 - End Time 2025-01-11 20:52:05 [2025-01-11 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226824', 'tblTempUsageDetail_20' ) start [2025-01-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226824', 'tblTempUsageDetail_20' ) end [2025-01-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226824', 'tblTempVendorCDR_20' ) start [2025-01-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226824', 'tblTempVendorCDR_20' ) end [2025-01-11 20:52:18] Production.INFO: ProcessCDR(1,14226824,1,1,2) [2025-01-11 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226824', 'tblTempUsageDetail_20' ) start [2025-01-11 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226824', 'tblTempUsageDetail_20' ) end [2025-01-11 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:52:22] Production.INFO: ==23819== Releasing lock... [2025-01-11 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:52:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:53:05 [end_date_ymd] => 2025-01-11 20:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:53:05' and `end` < '2025-01-11 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-11 20:53:19] Production.INFO: count ==1879 [2025-01-11 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:53:05 - End Time 2025-01-11 20:53:05 [2025-01-11 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226829', 'tblTempUsageDetail_20' ) start [2025-01-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226829', 'tblTempUsageDetail_20' ) end [2025-01-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226829', 'tblTempVendorCDR_20' ) start [2025-01-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226829', 'tblTempVendorCDR_20' ) end [2025-01-11 20:53:19] Production.INFO: ProcessCDR(1,14226829,1,1,2) [2025-01-11 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226829', 'tblTempUsageDetail_20' ) start [2025-01-11 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226829', 'tblTempUsageDetail_20' ) end [2025-01-11 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:53:22] Production.INFO: ==23937== Releasing lock... [2025-01-11 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:54:05 [end_date_ymd] => 2025-01-11 20:54:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:54:05' and `end` < '2025-01-11 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-11 20:54:18] Production.INFO: count ==1876 [2025-01-11 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:54:05 - End Time 2025-01-11 20:54:05 [2025-01-11 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226834', 'tblTempUsageDetail_20' ) start [2025-01-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226834', 'tblTempUsageDetail_20' ) end [2025-01-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226834', 'tblTempVendorCDR_20' ) start [2025-01-11 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226834', 'tblTempVendorCDR_20' ) end [2025-01-11 20:54:18] Production.INFO: ProcessCDR(1,14226834,1,1,2) [2025-01-11 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226834', 'tblTempUsageDetail_20' ) start [2025-01-11 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226834', 'tblTempUsageDetail_20' ) end [2025-01-11 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:54:21] Production.INFO: ==24050== Releasing lock... [2025-01-11 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:54:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:55:05 [end_date_ymd] => 2025-01-11 20:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:55:05' and `end` < '2025-01-11 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-11 20:55:18] Production.INFO: count ==1874 [2025-01-11 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:55:05 - End Time 2025-01-11 20:55:05 [2025-01-11 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226839', 'tblTempUsageDetail_20' ) start [2025-01-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226839', 'tblTempUsageDetail_20' ) end [2025-01-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226839', 'tblTempVendorCDR_20' ) start [2025-01-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226839', 'tblTempVendorCDR_20' ) end [2025-01-11 20:55:19] Production.INFO: ProcessCDR(1,14226839,1,1,2) [2025-01-11 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226839', 'tblTempUsageDetail_20' ) start [2025-01-11 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226839', 'tblTempUsageDetail_20' ) end [2025-01-11 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:55:22] Production.INFO: ==24167== Releasing lock... [2025-01-11 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:55:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-11 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:56:04 [end_date_ymd] => 2025-01-11 20:56:04 [RateCDR] => 1 ) [2025-01-11 20: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-11 17:56:04' and `end` < '2025-01-11 20: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-11 20:56:20] Production.INFO: count ==1872 [2025-01-11 20:56:20] Production.ERROR: pbx CDR StartTime 2025-01-11 17:56:04 - End Time 2025-01-11 20:56:04 [2025-01-11 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226844', 'tblTempUsageDetail_20' ) start [2025-01-11 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226844', 'tblTempUsageDetail_20' ) end [2025-01-11 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226844', 'tblTempVendorCDR_20' ) start [2025-01-11 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226844', 'tblTempVendorCDR_20' ) end [2025-01-11 20:56:20] Production.INFO: ProcessCDR(1,14226844,1,1,2) [2025-01-11 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226844', 'tblTempUsageDetail_20' ) start [2025-01-11 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226844', 'tblTempUsageDetail_20' ) end [2025-01-11 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:56:23] Production.INFO: ==24281== Releasing lock... [2025-01-11 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:56:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:57:05 [end_date_ymd] => 2025-01-11 20:57:05 [RateCDR] => 1 ) [2025-01-11 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 17:57:05' and `end` < '2025-01-11 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 20:57:19] Production.INFO: count ==1871 [2025-01-11 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 17:57:05 - End Time 2025-01-11 20:57:05 [2025-01-11 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226849', 'tblTempUsageDetail_20' ) start [2025-01-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226849', 'tblTempUsageDetail_20' ) end [2025-01-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226849', 'tblTempVendorCDR_20' ) start [2025-01-11 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226849', 'tblTempVendorCDR_20' ) end [2025-01-11 20:57:19] Production.INFO: ProcessCDR(1,14226849,1,1,2) [2025-01-11 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226849', 'tblTempUsageDetail_20' ) start [2025-01-11 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226849', 'tblTempUsageDetail_20' ) end [2025-01-11 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:57:24] Production.INFO: ==24398== Releasing lock... [2025-01-11 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:57:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:58:05 [end_date_ymd] => 2025-01-11 20:58:05 [RateCDR] => 1 ) [2025-01-11 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-11 17:58:05' and `end` < '2025-01-11 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-11 20:58:21] Production.INFO: count ==1872 [2025-01-11 20:58:21] Production.ERROR: pbx CDR StartTime 2025-01-11 17:58:05 - End Time 2025-01-11 20:58:05 [2025-01-11 20:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226854', 'tblTempUsageDetail_20' ) start [2025-01-11 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226854', 'tblTempUsageDetail_20' ) end [2025-01-11 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226854', 'tblTempVendorCDR_20' ) start [2025-01-11 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226854', 'tblTempVendorCDR_20' ) end [2025-01-11 20:58:21] Production.INFO: ProcessCDR(1,14226854,1,1,2) [2025-01-11 20:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226854', 'tblTempUsageDetail_20' ) start [2025-01-11 20:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226854', 'tblTempUsageDetail_20' ) end [2025-01-11 20:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:58:25] Production.INFO: ==24519== Releasing lock... [2025-01-11 20:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:58:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 17:59:04 [end_date_ymd] => 2025-01-11 20:59:04 [RateCDR] => 1 ) [2025-01-11 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-11 17:59:04' and `end` < '2025-01-11 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-11 20:59:18] Production.INFO: count ==1867 [2025-01-11 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 17:59:04 - End Time 2025-01-11 20:59:04 [2025-01-11 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226858', 'tblTempUsageDetail_20' ) start [2025-01-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226858', 'tblTempUsageDetail_20' ) end [2025-01-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226858', 'tblTempVendorCDR_20' ) start [2025-01-11 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226858', 'tblTempVendorCDR_20' ) end [2025-01-11 20:59:18] Production.INFO: ProcessCDR(1,14226858,1,1,2) [2025-01-11 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226858', 'tblTempUsageDetail_20' ) start [2025-01-11 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226858', 'tblTempUsageDetail_20' ) end [2025-01-11 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 20:59:21] Production.INFO: ==24637== Releasing lock... [2025-01-11 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 20:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:00:06 [end_date_ymd] => 2025-01-11 21:00:06 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:00:06' and `end` < '2025-01-11 21: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-11 21:00:19] Production.INFO: count ==1864 [2025-01-11 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:00:06 - End Time 2025-01-11 21:00:06 [2025-01-11 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226865', 'tblTempUsageDetail_20' ) start [2025-01-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226865', 'tblTempUsageDetail_20' ) end [2025-01-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226865', 'tblTempVendorCDR_20' ) start [2025-01-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226865', 'tblTempVendorCDR_20' ) end [2025-01-11 21:00:19] Production.INFO: ProcessCDR(1,14226865,1,1,2) [2025-01-11 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226865', 'tblTempUsageDetail_20' ) start [2025-01-11 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226865', 'tblTempUsageDetail_20' ) end [2025-01-11 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:00:23] Production.INFO: ==24755== Releasing lock... [2025-01-11 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:01:04 [end_date_ymd] => 2025-01-11 21:01:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:01:04' and `end` < '2025-01-11 21: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-11 21:01:19] Production.INFO: count ==1866 [2025-01-11 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:01:04 - End Time 2025-01-11 21:01:04 [2025-01-11 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226870', 'tblTempUsageDetail_20' ) start [2025-01-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226870', 'tblTempUsageDetail_20' ) end [2025-01-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226870', 'tblTempVendorCDR_20' ) start [2025-01-11 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226870', 'tblTempVendorCDR_20' ) end [2025-01-11 21:01:19] Production.INFO: ProcessCDR(1,14226870,1,1,2) [2025-01-11 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226870', 'tblTempUsageDetail_20' ) start [2025-01-11 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226870', 'tblTempUsageDetail_20' ) end [2025-01-11 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:01:22] Production.INFO: ==24885== Releasing lock... [2025-01-11 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:01:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:02:05 [end_date_ymd] => 2025-01-11 21:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:02:05' and `end` < '2025-01-11 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-11 21:02:19] Production.INFO: count ==1866 [2025-01-11 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:02:05 - End Time 2025-01-11 21:02:05 [2025-01-11 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226875', 'tblTempUsageDetail_20' ) start [2025-01-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226875', 'tblTempUsageDetail_20' ) end [2025-01-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226875', 'tblTempVendorCDR_20' ) start [2025-01-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226875', 'tblTempVendorCDR_20' ) end [2025-01-11 21:02:19] Production.INFO: ProcessCDR(1,14226875,1,1,2) [2025-01-11 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226875', 'tblTempUsageDetail_20' ) start [2025-01-11 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226875', 'tblTempUsageDetail_20' ) end [2025-01-11 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:02:24] Production.INFO: ==25006== Releasing lock... [2025-01-11 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:02:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:03:05 [end_date_ymd] => 2025-01-11 21:03:05 [RateCDR] => 1 ) [2025-01-11 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:03:05' and `end` < '2025-01-11 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:03:18] Production.INFO: count ==1872 [2025-01-11 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:03:05 - End Time 2025-01-11 21:03:05 [2025-01-11 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226880', 'tblTempUsageDetail_20' ) start [2025-01-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226880', 'tblTempUsageDetail_20' ) end [2025-01-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226880', 'tblTempVendorCDR_20' ) start [2025-01-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226880', 'tblTempVendorCDR_20' ) end [2025-01-11 21:03:18] Production.INFO: ProcessCDR(1,14226880,1,1,2) [2025-01-11 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226880', 'tblTempUsageDetail_20' ) start [2025-01-11 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226880', 'tblTempUsageDetail_20' ) end [2025-01-11 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:03:23] Production.INFO: ==25129== Releasing lock... [2025-01-11 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:03:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:04:05 [end_date_ymd] => 2025-01-11 21:04:05 [RateCDR] => 1 ) [2025-01-11 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:04:05' and `end` < '2025-01-11 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:04:19] Production.INFO: count ==1864 [2025-01-11 21:04:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:04:05 - End Time 2025-01-11 21:04:05 [2025-01-11 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226885', 'tblTempUsageDetail_20' ) start [2025-01-11 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226885', 'tblTempUsageDetail_20' ) end [2025-01-11 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226885', 'tblTempVendorCDR_20' ) start [2025-01-11 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226885', 'tblTempVendorCDR_20' ) end [2025-01-11 21:04:20] Production.INFO: ProcessCDR(1,14226885,1,1,2) [2025-01-11 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226885', 'tblTempUsageDetail_20' ) start [2025-01-11 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226885', 'tblTempUsageDetail_20' ) end [2025-01-11 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:04:24] Production.INFO: ==25239== Releasing lock... [2025-01-11 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:04:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:05:04 [end_date_ymd] => 2025-01-11 21:05:04 [RateCDR] => 1 ) [2025-01-11 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-11 18:05:04' and `end` < '2025-01-11 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-11 21:05:18] Production.INFO: count ==1864 [2025-01-11 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:05:04 - End Time 2025-01-11 21:05:04 [2025-01-11 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226890', 'tblTempUsageDetail_20' ) start [2025-01-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226890', 'tblTempUsageDetail_20' ) end [2025-01-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226890', 'tblTempVendorCDR_20' ) start [2025-01-11 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226890', 'tblTempVendorCDR_20' ) end [2025-01-11 21:05:18] Production.INFO: ProcessCDR(1,14226890,1,1,2) [2025-01-11 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226890', 'tblTempUsageDetail_20' ) start [2025-01-11 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226890', 'tblTempUsageDetail_20' ) end [2025-01-11 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:05:21] Production.INFO: ==25310== Releasing lock... [2025-01-11 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:05:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:06:05 [end_date_ymd] => 2025-01-11 21:06:05 [RateCDR] => 1 ) [2025-01-11 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:06:05' and `end` < '2025-01-11 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:06:19] Production.INFO: count ==1860 [2025-01-11 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:06:05 - End Time 2025-01-11 21:06:05 [2025-01-11 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226895', 'tblTempUsageDetail_20' ) start [2025-01-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226895', 'tblTempUsageDetail_20' ) end [2025-01-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226895', 'tblTempVendorCDR_20' ) start [2025-01-11 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226895', 'tblTempVendorCDR_20' ) end [2025-01-11 21:06:19] Production.INFO: ProcessCDR(1,14226895,1,1,2) [2025-01-11 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226895', 'tblTempUsageDetail_20' ) start [2025-01-11 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226895', 'tblTempUsageDetail_20' ) end [2025-01-11 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:06:23] Production.INFO: ==25383== Releasing lock... [2025-01-11 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:06:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:07:04 [end_date_ymd] => 2025-01-11 21:07:04 [RateCDR] => 1 ) [2025-01-11 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:07:04' and `end` < '2025-01-11 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-11 21:07:18] Production.INFO: count ==1842 [2025-01-11 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:07:04 - End Time 2025-01-11 21:07:04 [2025-01-11 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226900', 'tblTempUsageDetail_20' ) start [2025-01-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226900', 'tblTempUsageDetail_20' ) end [2025-01-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226900', 'tblTempVendorCDR_20' ) start [2025-01-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226900', 'tblTempVendorCDR_20' ) end [2025-01-11 21:07:18] Production.INFO: ProcessCDR(1,14226900,1,1,2) [2025-01-11 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226900', 'tblTempUsageDetail_20' ) start [2025-01-11 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226900', 'tblTempUsageDetail_20' ) end [2025-01-11 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:07:23] Production.INFO: ==25454== Releasing lock... [2025-01-11 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:07:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:08:05 [end_date_ymd] => 2025-01-11 21:08:05 [RateCDR] => 1 ) [2025-01-11 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:08:05' and `end` < '2025-01-11 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:08:18] Production.INFO: count ==1839 [2025-01-11 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:08:05 - End Time 2025-01-11 21:08:05 [2025-01-11 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226905', 'tblTempUsageDetail_20' ) start [2025-01-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226905', 'tblTempUsageDetail_20' ) end [2025-01-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226905', 'tblTempVendorCDR_20' ) start [2025-01-11 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226905', 'tblTempVendorCDR_20' ) end [2025-01-11 21:08:18] Production.INFO: ProcessCDR(1,14226905,1,1,2) [2025-01-11 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226905', 'tblTempUsageDetail_20' ) start [2025-01-11 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226905', 'tblTempUsageDetail_20' ) end [2025-01-11 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:08:21] Production.INFO: ==25527== Releasing lock... [2025-01-11 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:08:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:09:05 [end_date_ymd] => 2025-01-11 21:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:09:05' and `end` < '2025-01-11 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-11 21:09:19] Production.INFO: count ==1842 [2025-01-11 21:09:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:09:05 - End Time 2025-01-11 21:09:05 [2025-01-11 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226910', 'tblTempUsageDetail_20' ) start [2025-01-11 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226910', 'tblTempUsageDetail_20' ) end [2025-01-11 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226910', 'tblTempVendorCDR_20' ) start [2025-01-11 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226910', 'tblTempVendorCDR_20' ) end [2025-01-11 21:09:20] Production.INFO: ProcessCDR(1,14226910,1,1,2) [2025-01-11 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226910', 'tblTempUsageDetail_20' ) start [2025-01-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226910', 'tblTempUsageDetail_20' ) end [2025-01-11 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:09:23] Production.INFO: ==25597== Releasing lock... [2025-01-11 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:09:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:10:05 [end_date_ymd] => 2025-01-11 21:10:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:10:05' and `end` < '2025-01-11 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-11 21:10:18] Production.INFO: count ==1842 [2025-01-11 21:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:10:05 - End Time 2025-01-11 21:10:05 [2025-01-11 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226916', 'tblTempUsageDetail_20' ) start [2025-01-11 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226916', 'tblTempUsageDetail_20' ) end [2025-01-11 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226916', 'tblTempVendorCDR_20' ) start [2025-01-11 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226916', 'tblTempVendorCDR_20' ) end [2025-01-11 21:10:18] Production.INFO: ProcessCDR(1,14226916,1,1,2) [2025-01-11 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226916', 'tblTempUsageDetail_20' ) start [2025-01-11 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226916', 'tblTempUsageDetail_20' ) end [2025-01-11 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:10:23] Production.INFO: ==25670== Releasing lock... [2025-01-11 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:10:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-11 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:11:05 [end_date_ymd] => 2025-01-11 21:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:11:05' and `end` < '2025-01-11 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-11 21:11:19] Production.INFO: count ==1809 [2025-01-11 21:11:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:11:05 - End Time 2025-01-11 21:11:05 [2025-01-11 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226919', 'tblTempUsageDetail_20' ) start [2025-01-11 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226919', 'tblTempUsageDetail_20' ) end [2025-01-11 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226919', 'tblTempVendorCDR_20' ) start [2025-01-11 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226919', 'tblTempVendorCDR_20' ) end [2025-01-11 21:11:20] Production.INFO: ProcessCDR(1,14226919,1,1,2) [2025-01-11 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226919', 'tblTempUsageDetail_20' ) start [2025-01-11 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226919', 'tblTempUsageDetail_20' ) end [2025-01-11 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:11:23] Production.INFO: ==25743== Releasing lock... [2025-01-11 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:12:04 [end_date_ymd] => 2025-01-11 21:12:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:12:04' and `end` < '2025-01-11 21: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-11 21:12:18] Production.INFO: count ==1807 [2025-01-11 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:12:04 - End Time 2025-01-11 21:12:04 [2025-01-11 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226926', 'tblTempUsageDetail_20' ) start [2025-01-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226926', 'tblTempUsageDetail_20' ) end [2025-01-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226926', 'tblTempVendorCDR_20' ) start [2025-01-11 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226926', 'tblTempVendorCDR_20' ) end [2025-01-11 21:12:18] Production.INFO: ProcessCDR(1,14226926,1,1,2) [2025-01-11 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226926', 'tblTempUsageDetail_20' ) start [2025-01-11 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226926', 'tblTempUsageDetail_20' ) end [2025-01-11 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:12:21] Production.INFO: ==25812== Releasing lock... [2025-01-11 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:12:21] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:13:05 [end_date_ymd] => 2025-01-11 21:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:13:05' and `end` < '2025-01-11 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-11 21:13:19] Production.INFO: count ==1806 [2025-01-11 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:13:05 - End Time 2025-01-11 21:13:05 [2025-01-11 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226931', 'tblTempUsageDetail_20' ) start [2025-01-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226931', 'tblTempUsageDetail_20' ) end [2025-01-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226931', 'tblTempVendorCDR_20' ) start [2025-01-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226931', 'tblTempVendorCDR_20' ) end [2025-01-11 21:13:19] Production.INFO: ProcessCDR(1,14226931,1,1,2) [2025-01-11 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226931', 'tblTempUsageDetail_20' ) start [2025-01-11 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226931', 'tblTempUsageDetail_20' ) end [2025-01-11 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:13:23] Production.INFO: ==25887== Releasing lock... [2025-01-11 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:13:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:14:04 [end_date_ymd] => 2025-01-11 21:14:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:14:04' and `end` < '2025-01-11 21: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-11 21:14:17] Production.INFO: count ==1804 [2025-01-11 21:14:17] Production.ERROR: pbx CDR StartTime 2025-01-11 18:14:04 - End Time 2025-01-11 21:14:04 [2025-01-11 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226936', 'tblTempUsageDetail_20' ) start [2025-01-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226936', 'tblTempUsageDetail_20' ) end [2025-01-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226936', 'tblTempVendorCDR_20' ) start [2025-01-11 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226936', 'tblTempVendorCDR_20' ) end [2025-01-11 21:14:18] Production.INFO: ProcessCDR(1,14226936,1,1,2) [2025-01-11 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226936', 'tblTempUsageDetail_20' ) start [2025-01-11 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226936', 'tblTempUsageDetail_20' ) end [2025-01-11 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:14:21] Production.INFO: ==25960== Releasing lock... [2025-01-11 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:14:21] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:15:05 [end_date_ymd] => 2025-01-11 21:15:05 [RateCDR] => 1 ) [2025-01-11 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:15:05' and `end` < '2025-01-11 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:15:18] Production.INFO: count ==1802 [2025-01-11 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:15:05 - End Time 2025-01-11 21:15:05 [2025-01-11 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226941', 'tblTempUsageDetail_20' ) start [2025-01-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226941', 'tblTempUsageDetail_20' ) end [2025-01-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226941', 'tblTempVendorCDR_20' ) start [2025-01-11 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226941', 'tblTempVendorCDR_20' ) end [2025-01-11 21:15:19] Production.INFO: ProcessCDR(1,14226941,1,1,2) [2025-01-11 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226941', 'tblTempUsageDetail_20' ) start [2025-01-11 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226941', 'tblTempUsageDetail_20' ) end [2025-01-11 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:15:22] Production.INFO: ==26035== Releasing lock... [2025-01-11 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:15:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:16:04 [end_date_ymd] => 2025-01-11 21:16:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:16:04' and `end` < '2025-01-11 21: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-11 21:16:18] Production.INFO: count ==1801 [2025-01-11 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:16:04 - End Time 2025-01-11 21:16:04 [2025-01-11 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226946', 'tblTempUsageDetail_20' ) start [2025-01-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226946', 'tblTempUsageDetail_20' ) end [2025-01-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226946', 'tblTempVendorCDR_20' ) start [2025-01-11 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226946', 'tblTempVendorCDR_20' ) end [2025-01-11 21:16:19] Production.INFO: ProcessCDR(1,14226946,1,1,2) [2025-01-11 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226946', 'tblTempUsageDetail_20' ) start [2025-01-11 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226946', 'tblTempUsageDetail_20' ) end [2025-01-11 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:16:22] Production.INFO: ==26122== Releasing lock... [2025-01-11 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:16:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:17:04 [end_date_ymd] => 2025-01-11 21:17:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:17:04' and `end` < '2025-01-11 21: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-11 21:17:18] Production.INFO: count ==1799 [2025-01-11 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:17:04 - End Time 2025-01-11 21:17:04 [2025-01-11 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226951', 'tblTempUsageDetail_20' ) start [2025-01-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226951', 'tblTempUsageDetail_20' ) end [2025-01-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226951', 'tblTempVendorCDR_20' ) start [2025-01-11 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226951', 'tblTempVendorCDR_20' ) end [2025-01-11 21:17:18] Production.INFO: ProcessCDR(1,14226951,1,1,2) [2025-01-11 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226951', 'tblTempUsageDetail_20' ) start [2025-01-11 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226951', 'tblTempUsageDetail_20' ) end [2025-01-11 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:17:21] Production.INFO: ==26202== Releasing lock... [2025-01-11 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:17:21] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:18:05 [end_date_ymd] => 2025-01-11 21:18:05 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:18:05' and `end` < '2025-01-11 21: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-11 21:18:20] Production.INFO: count ==1795 [2025-01-11 21:18:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:18:05 - End Time 2025-01-11 21:18:05 [2025-01-11 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226956', 'tblTempUsageDetail_20' ) start [2025-01-11 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226956', 'tblTempUsageDetail_20' ) end [2025-01-11 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226956', 'tblTempVendorCDR_20' ) start [2025-01-11 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226956', 'tblTempVendorCDR_20' ) end [2025-01-11 21:18:20] Production.INFO: ProcessCDR(1,14226956,1,1,2) [2025-01-11 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226956', 'tblTempUsageDetail_20' ) start [2025-01-11 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226956', 'tblTempUsageDetail_20' ) end [2025-01-11 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:18:23] Production.INFO: ==26275== Releasing lock... [2025-01-11 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:18:23] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:19:05 [end_date_ymd] => 2025-01-11 21:19:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:19:05' and `end` < '2025-01-11 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-11 21:19:19] Production.INFO: count ==1793 [2025-01-11 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:19:05 - End Time 2025-01-11 21:19:05 [2025-01-11 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226961', 'tblTempUsageDetail_20' ) start [2025-01-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226961', 'tblTempUsageDetail_20' ) end [2025-01-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226961', 'tblTempVendorCDR_20' ) start [2025-01-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226961', 'tblTempVendorCDR_20' ) end [2025-01-11 21:19:19] Production.INFO: ProcessCDR(1,14226961,1,1,2) [2025-01-11 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226961', 'tblTempUsageDetail_20' ) start [2025-01-11 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226961', 'tblTempUsageDetail_20' ) end [2025-01-11 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:19:22] Production.INFO: ==26347== Releasing lock... [2025-01-11 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:19:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-11 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:20:06 [end_date_ymd] => 2025-01-11 21:20:06 [RateCDR] => 1 ) [2025-01-11 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:20:06' and `end` < '2025-01-11 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:20:19] Production.INFO: count ==1788 [2025-01-11 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:20:06 - End Time 2025-01-11 21:20:06 [2025-01-11 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226967', 'tblTempUsageDetail_20' ) start [2025-01-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226967', 'tblTempUsageDetail_20' ) end [2025-01-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226967', 'tblTempVendorCDR_20' ) start [2025-01-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226967', 'tblTempVendorCDR_20' ) end [2025-01-11 21:20:19] Production.INFO: ProcessCDR(1,14226967,1,1,2) [2025-01-11 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226967', 'tblTempUsageDetail_20' ) start [2025-01-11 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226967', 'tblTempUsageDetail_20' ) end [2025-01-11 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:20:22] Production.INFO: ==26462== Releasing lock... [2025-01-11 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:20:22] Production.INFO: 41 MB #Memory Used# [2025-01-11 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:21:05 [end_date_ymd] => 2025-01-11 21:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:21:05' and `end` < '2025-01-11 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-11 21:21:18] Production.INFO: count ==1727 [2025-01-11 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:21:05 - End Time 2025-01-11 21:21:05 [2025-01-11 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226972', 'tblTempUsageDetail_20' ) start [2025-01-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226972', 'tblTempUsageDetail_20' ) end [2025-01-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226972', 'tblTempVendorCDR_20' ) start [2025-01-11 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226972', 'tblTempVendorCDR_20' ) end [2025-01-11 21:21:18] Production.INFO: ProcessCDR(1,14226972,1,1,2) [2025-01-11 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226972', 'tblTempUsageDetail_20' ) start [2025-01-11 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226972', 'tblTempUsageDetail_20' ) end [2025-01-11 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:21:21] Production.INFO: ==26540== Releasing lock... [2025-01-11 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:21:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:22:05 [end_date_ymd] => 2025-01-11 21:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:22:05' and `end` < '2025-01-11 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-11 21:22:19] Production.INFO: count ==1723 [2025-01-11 21:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:22:05 - End Time 2025-01-11 21:22:05 [2025-01-11 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226977', 'tblTempUsageDetail_20' ) start [2025-01-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226977', 'tblTempUsageDetail_20' ) end [2025-01-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226977', 'tblTempVendorCDR_20' ) start [2025-01-11 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226977', 'tblTempVendorCDR_20' ) end [2025-01-11 21:22:19] Production.INFO: ProcessCDR(1,14226977,1,1,2) [2025-01-11 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226977', 'tblTempUsageDetail_20' ) start [2025-01-11 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226977', 'tblTempUsageDetail_20' ) end [2025-01-11 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:22:23] Production.INFO: ==26615== Releasing lock... [2025-01-11 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:23:05 [end_date_ymd] => 2025-01-11 21:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:23:05' and `end` < '2025-01-11 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-11 21:23:18] Production.INFO: count ==1715 [2025-01-11 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:23:05 - End Time 2025-01-11 21:23:05 [2025-01-11 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226982', 'tblTempUsageDetail_20' ) start [2025-01-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226982', 'tblTempUsageDetail_20' ) end [2025-01-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226982', 'tblTempVendorCDR_20' ) start [2025-01-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226982', 'tblTempVendorCDR_20' ) end [2025-01-11 21:23:18] Production.INFO: ProcessCDR(1,14226982,1,1,2) [2025-01-11 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226982', 'tblTempUsageDetail_20' ) start [2025-01-11 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226982', 'tblTempUsageDetail_20' ) end [2025-01-11 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:23:22] Production.INFO: ==26690== Releasing lock... [2025-01-11 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:24:05 [end_date_ymd] => 2025-01-11 21:24:05 [RateCDR] => 1 ) [2025-01-11 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:24:05' and `end` < '2025-01-11 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:24:18] Production.INFO: count ==1709 [2025-01-11 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:24:05 - End Time 2025-01-11 21:24:05 [2025-01-11 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226987', 'tblTempUsageDetail_20' ) start [2025-01-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226987', 'tblTempUsageDetail_20' ) end [2025-01-11 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226987', 'tblTempVendorCDR_20' ) start [2025-01-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226987', 'tblTempVendorCDR_20' ) end [2025-01-11 21:24:19] Production.INFO: ProcessCDR(1,14226987,1,1,2) [2025-01-11 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226987', 'tblTempUsageDetail_20' ) start [2025-01-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226987', 'tblTempUsageDetail_20' ) end [2025-01-11 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:24:22] Production.INFO: ==26763== Releasing lock... [2025-01-11 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:25:04 [end_date_ymd] => 2025-01-11 21:25:04 [RateCDR] => 1 ) [2025-01-11 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-11 18:25:04' and `end` < '2025-01-11 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-11 21:25:17] Production.INFO: count ==1709 [2025-01-11 21:25:17] Production.ERROR: pbx CDR StartTime 2025-01-11 18:25:04 - End Time 2025-01-11 21:25:04 [2025-01-11 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226992', 'tblTempUsageDetail_20' ) start [2025-01-11 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226992', 'tblTempUsageDetail_20' ) end [2025-01-11 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226992', 'tblTempVendorCDR_20' ) start [2025-01-11 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226992', 'tblTempVendorCDR_20' ) end [2025-01-11 21:25:17] Production.INFO: ProcessCDR(1,14226992,1,1,2) [2025-01-11 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226992', 'tblTempUsageDetail_20' ) start [2025-01-11 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226992', 'tblTempUsageDetail_20' ) end [2025-01-11 21:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:25:20] Production.INFO: ==26842== Releasing lock... [2025-01-11 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:25:20] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:26:05 [end_date_ymd] => 2025-01-11 21:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:26:05' and `end` < '2025-01-11 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-11 21:26:18] Production.INFO: count ==1711 [2025-01-11 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:26:05 - End Time 2025-01-11 21:26:05 [2025-01-11 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226997', 'tblTempUsageDetail_20' ) start [2025-01-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14226997', 'tblTempUsageDetail_20' ) end [2025-01-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226997', 'tblTempVendorCDR_20' ) start [2025-01-11 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14226997', 'tblTempVendorCDR_20' ) end [2025-01-11 21:26:18] Production.INFO: ProcessCDR(1,14226997,1,1,2) [2025-01-11 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14226997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14226997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14226997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14226997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226997', 'tblTempUsageDetail_20' ) start [2025-01-11 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14226997', 'tblTempUsageDetail_20' ) end [2025-01-11 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:26:23] Production.INFO: ==26950== Releasing lock... [2025-01-11 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:27:05 [end_date_ymd] => 2025-01-11 21:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:27:05' and `end` < '2025-01-11 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-11 21:27:18] Production.INFO: count ==1714 [2025-01-11 21:27:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:27:05 - End Time 2025-01-11 21:27:05 [2025-01-11 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227002', 'tblTempUsageDetail_20' ) start [2025-01-11 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227002', 'tblTempUsageDetail_20' ) end [2025-01-11 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227002', 'tblTempVendorCDR_20' ) start [2025-01-11 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227002', 'tblTempVendorCDR_20' ) end [2025-01-11 21:27:19] Production.INFO: ProcessCDR(1,14227002,1,1,2) [2025-01-11 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227002', 'tblTempUsageDetail_20' ) start [2025-01-11 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227002', 'tblTempUsageDetail_20' ) end [2025-01-11 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:27:23] Production.INFO: ==27056== Releasing lock... [2025-01-11 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:27:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:28:05 [end_date_ymd] => 2025-01-11 21:28:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:28:05' and `end` < '2025-01-11 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-11 21:28:19] Production.INFO: count ==1718 [2025-01-11 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:28:05 - End Time 2025-01-11 21:28:05 [2025-01-11 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227007', 'tblTempUsageDetail_20' ) start [2025-01-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227007', 'tblTempUsageDetail_20' ) end [2025-01-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227007', 'tblTempVendorCDR_20' ) start [2025-01-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227007', 'tblTempVendorCDR_20' ) end [2025-01-11 21:28:19] Production.INFO: ProcessCDR(1,14227007,1,1,2) [2025-01-11 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227007', 'tblTempUsageDetail_20' ) start [2025-01-11 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227007', 'tblTempUsageDetail_20' ) end [2025-01-11 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:28:24] Production.INFO: ==27164== Releasing lock... [2025-01-11 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:28:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:29:05 [end_date_ymd] => 2025-01-11 21:29:05 [RateCDR] => 1 ) [2025-01-11 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:29:05' and `end` < '2025-01-11 21: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-11 21:29:18] Production.INFO: count ==1721 [2025-01-11 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:29:05 - End Time 2025-01-11 21:29:05 [2025-01-11 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227012', 'tblTempUsageDetail_20' ) start [2025-01-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227012', 'tblTempUsageDetail_20' ) end [2025-01-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227012', 'tblTempVendorCDR_20' ) start [2025-01-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227012', 'tblTempVendorCDR_20' ) end [2025-01-11 21:29:19] Production.INFO: ProcessCDR(1,14227012,1,1,2) [2025-01-11 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227012', 'tblTempUsageDetail_20' ) start [2025-01-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227012', 'tblTempUsageDetail_20' ) end [2025-01-11 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:29:22] Production.INFO: ==27273== Releasing lock... [2025-01-11 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:29:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:30:05 [end_date_ymd] => 2025-01-11 21:30:05 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:30:05' and `end` < '2025-01-11 21: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-11 21:30:18] Production.INFO: count ==1718 [2025-01-11 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:30:05 - End Time 2025-01-11 21:30:05 [2025-01-11 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227018', 'tblTempUsageDetail_20' ) start [2025-01-11 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227018', 'tblTempUsageDetail_20' ) end [2025-01-11 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227018', 'tblTempVendorCDR_20' ) start [2025-01-11 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227018', 'tblTempVendorCDR_20' ) end [2025-01-11 21:30:18] Production.INFO: ProcessCDR(1,14227018,1,1,2) [2025-01-11 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227018', 'tblTempUsageDetail_20' ) start [2025-01-11 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227018', 'tblTempUsageDetail_20' ) end [2025-01-11 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:30:22] Production.INFO: ==27383== Releasing lock... [2025-01-11 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:30:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:31:05 [end_date_ymd] => 2025-01-11 21:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:31:05' and `end` < '2025-01-11 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-11 21:31:18] Production.INFO: count ==1686 [2025-01-11 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:31:05 - End Time 2025-01-11 21:31:05 [2025-01-11 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227023', 'tblTempUsageDetail_20' ) start [2025-01-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227023', 'tblTempUsageDetail_20' ) end [2025-01-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227023', 'tblTempVendorCDR_20' ) start [2025-01-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227023', 'tblTempVendorCDR_20' ) end [2025-01-11 21:31:18] Production.INFO: ProcessCDR(1,14227023,1,1,2) [2025-01-11 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227023', 'tblTempUsageDetail_20' ) start [2025-01-11 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227023', 'tblTempUsageDetail_20' ) end [2025-01-11 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:31:21] Production.INFO: ==27493== Releasing lock... [2025-01-11 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:31:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:32:05 [end_date_ymd] => 2025-01-11 21:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:32:05' and `end` < '2025-01-11 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-11 21:32:18] Production.INFO: count ==1683 [2025-01-11 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:32:05 - End Time 2025-01-11 21:32:05 [2025-01-11 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227028', 'tblTempUsageDetail_20' ) start [2025-01-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227028', 'tblTempUsageDetail_20' ) end [2025-01-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227028', 'tblTempVendorCDR_20' ) start [2025-01-11 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227028', 'tblTempVendorCDR_20' ) end [2025-01-11 21:32:18] Production.INFO: ProcessCDR(1,14227028,1,1,2) [2025-01-11 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227028', 'tblTempUsageDetail_20' ) start [2025-01-11 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227028', 'tblTempUsageDetail_20' ) end [2025-01-11 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:32:22] Production.INFO: ==27599== Releasing lock... [2025-01-11 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-11 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:33:05 [end_date_ymd] => 2025-01-11 21:33:05 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:33:05' and `end` < '2025-01-11 21: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-11 21:33:18] Production.INFO: count ==1682 [2025-01-11 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:33:05 - End Time 2025-01-11 21:33:05 [2025-01-11 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227033', 'tblTempUsageDetail_20' ) start [2025-01-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227033', 'tblTempUsageDetail_20' ) end [2025-01-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227033', 'tblTempVendorCDR_20' ) start [2025-01-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227033', 'tblTempVendorCDR_20' ) end [2025-01-11 21:33:18] Production.INFO: ProcessCDR(1,14227033,1,1,2) [2025-01-11 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227033', 'tblTempUsageDetail_20' ) start [2025-01-11 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227033', 'tblTempUsageDetail_20' ) end [2025-01-11 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:33:21] Production.INFO: ==27707== Releasing lock... [2025-01-11 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:33:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:34:05 [end_date_ymd] => 2025-01-11 21:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:34:05' and `end` < '2025-01-11 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-11 21:34:18] Production.INFO: count ==1668 [2025-01-11 21:34:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:34:05 - End Time 2025-01-11 21:34:05 [2025-01-11 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227038', 'tblTempUsageDetail_20' ) start [2025-01-11 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227038', 'tblTempUsageDetail_20' ) end [2025-01-11 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227038', 'tblTempVendorCDR_20' ) start [2025-01-11 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227038', 'tblTempVendorCDR_20' ) end [2025-01-11 21:34:19] Production.INFO: ProcessCDR(1,14227038,1,1,2) [2025-01-11 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227038', 'tblTempUsageDetail_20' ) start [2025-01-11 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227038', 'tblTempUsageDetail_20' ) end [2025-01-11 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:34:22] Production.INFO: ==27812== Releasing lock... [2025-01-11 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:34:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:35:04 [end_date_ymd] => 2025-01-11 21:35:04 [RateCDR] => 1 ) [2025-01-11 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-11 18:35:04' and `end` < '2025-01-11 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-11 21:35:17] Production.INFO: count ==1669 [2025-01-11 21:35:17] Production.ERROR: pbx CDR StartTime 2025-01-11 18:35:04 - End Time 2025-01-11 21:35:04 [2025-01-11 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227043', 'tblTempUsageDetail_20' ) start [2025-01-11 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227043', 'tblTempUsageDetail_20' ) end [2025-01-11 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227043', 'tblTempVendorCDR_20' ) start [2025-01-11 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227043', 'tblTempVendorCDR_20' ) end [2025-01-11 21:35:17] Production.INFO: ProcessCDR(1,14227043,1,1,2) [2025-01-11 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227043', 'tblTempUsageDetail_20' ) start [2025-01-11 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227043', 'tblTempUsageDetail_20' ) end [2025-01-11 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:35:22] Production.INFO: ==27920== Releasing lock... [2025-01-11 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:35:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:36:05 [end_date_ymd] => 2025-01-11 21:36:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:36:05' and `end` < '2025-01-11 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-11 21:36:18] Production.INFO: count ==1675 [2025-01-11 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:36:05 - End Time 2025-01-11 21:36:05 [2025-01-11 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227048', 'tblTempUsageDetail_20' ) start [2025-01-11 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227048', 'tblTempUsageDetail_20' ) end [2025-01-11 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227048', 'tblTempVendorCDR_20' ) start [2025-01-11 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227048', 'tblTempVendorCDR_20' ) end [2025-01-11 21:36:19] Production.INFO: ProcessCDR(1,14227048,1,1,2) [2025-01-11 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227048', 'tblTempUsageDetail_20' ) start [2025-01-11 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227048', 'tblTempUsageDetail_20' ) end [2025-01-11 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:36:23] Production.INFO: ==28062== Releasing lock... [2025-01-11 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:36:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:37:04 [end_date_ymd] => 2025-01-11 21:37:04 [RateCDR] => 1 ) [2025-01-11 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-11 18:37:04' and `end` < '2025-01-11 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-11 21:37:17] Production.INFO: count ==1674 [2025-01-11 21:37:17] Production.ERROR: pbx CDR StartTime 2025-01-11 18:37:04 - End Time 2025-01-11 21:37:04 [2025-01-11 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227053', 'tblTempUsageDetail_20' ) start [2025-01-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227053', 'tblTempUsageDetail_20' ) end [2025-01-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227053', 'tblTempVendorCDR_20' ) start [2025-01-11 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227053', 'tblTempVendorCDR_20' ) end [2025-01-11 21:37:17] Production.INFO: ProcessCDR(1,14227053,1,1,2) [2025-01-11 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227053', 'tblTempUsageDetail_20' ) start [2025-01-11 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227053', 'tblTempUsageDetail_20' ) end [2025-01-11 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:37:21] Production.INFO: ==28171== Releasing lock... [2025-01-11 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:37:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:38:04 [end_date_ymd] => 2025-01-11 21:38:04 [RateCDR] => 1 ) [2025-01-11 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:38:04' and `end` < '2025-01-11 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:38:18] Production.INFO: count ==1674 [2025-01-11 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:38:04 - End Time 2025-01-11 21:38:04 [2025-01-11 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227058', 'tblTempUsageDetail_20' ) start [2025-01-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227058', 'tblTempUsageDetail_20' ) end [2025-01-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227058', 'tblTempVendorCDR_20' ) start [2025-01-11 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227058', 'tblTempVendorCDR_20' ) end [2025-01-11 21:38:18] Production.INFO: ProcessCDR(1,14227058,1,1,2) [2025-01-11 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227058', 'tblTempUsageDetail_20' ) start [2025-01-11 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227058', 'tblTempUsageDetail_20' ) end [2025-01-11 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:38:21] Production.INFO: ==28275== Releasing lock... [2025-01-11 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:38:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:39:05 [end_date_ymd] => 2025-01-11 21:39:05 [RateCDR] => 1 ) [2025-01-11 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:39:05' and `end` < '2025-01-11 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:39:20] Production.INFO: count ==1675 [2025-01-11 21:39:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:39:05 - End Time 2025-01-11 21:39:05 [2025-01-11 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227063', 'tblTempUsageDetail_20' ) start [2025-01-11 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227063', 'tblTempUsageDetail_20' ) end [2025-01-11 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227063', 'tblTempVendorCDR_20' ) start [2025-01-11 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227063', 'tblTempVendorCDR_20' ) end [2025-01-11 21:39:20] Production.INFO: ProcessCDR(1,14227063,1,1,2) [2025-01-11 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227063', 'tblTempUsageDetail_20' ) start [2025-01-11 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227063', 'tblTempUsageDetail_20' ) end [2025-01-11 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:39:23] Production.INFO: ==28382== Releasing lock... [2025-01-11 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:39:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:40:05 [end_date_ymd] => 2025-01-11 21:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:40:05' and `end` < '2025-01-11 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-11 21:40:19] Production.INFO: count ==1676 [2025-01-11 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:40:05 - End Time 2025-01-11 21:40:05 [2025-01-11 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227069', 'tblTempUsageDetail_20' ) start [2025-01-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227069', 'tblTempUsageDetail_20' ) end [2025-01-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227069', 'tblTempVendorCDR_20' ) start [2025-01-11 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227069', 'tblTempVendorCDR_20' ) end [2025-01-11 21:40:19] Production.INFO: ProcessCDR(1,14227069,1,1,2) [2025-01-11 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227069', 'tblTempUsageDetail_20' ) start [2025-01-11 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227069', 'tblTempUsageDetail_20' ) end [2025-01-11 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:40:24] Production.INFO: ==28485== Releasing lock... [2025-01-11 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:40:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:41:05 [end_date_ymd] => 2025-01-11 21:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:41:05' and `end` < '2025-01-11 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-11 21:41:18] Production.INFO: count ==1650 [2025-01-11 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:41:05 - End Time 2025-01-11 21:41:05 [2025-01-11 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227074', 'tblTempUsageDetail_20' ) start [2025-01-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227074', 'tblTempUsageDetail_20' ) end [2025-01-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227074', 'tblTempVendorCDR_20' ) start [2025-01-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227074', 'tblTempVendorCDR_20' ) end [2025-01-11 21:41:18] Production.INFO: ProcessCDR(1,14227074,1,1,2) [2025-01-11 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227074', 'tblTempUsageDetail_20' ) start [2025-01-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227074', 'tblTempUsageDetail_20' ) end [2025-01-11 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:41:21] Production.INFO: ==28576== Releasing lock... [2025-01-11 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:41:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:42:04 [end_date_ymd] => 2025-01-11 21:42:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:42:04' and `end` < '2025-01-11 21: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-11 21:42:18] Production.INFO: count ==1648 [2025-01-11 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:42:04 - End Time 2025-01-11 21:42:04 [2025-01-11 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227079', 'tblTempUsageDetail_20' ) start [2025-01-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227079', 'tblTempUsageDetail_20' ) end [2025-01-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227079', 'tblTempVendorCDR_20' ) start [2025-01-11 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227079', 'tblTempVendorCDR_20' ) end [2025-01-11 21:42:18] Production.INFO: ProcessCDR(1,14227079,1,1,2) [2025-01-11 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227079', 'tblTempUsageDetail_20' ) start [2025-01-11 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227079', 'tblTempUsageDetail_20' ) end [2025-01-11 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:42:23] Production.INFO: ==28645== Releasing lock... [2025-01-11 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-11 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:43:05 [end_date_ymd] => 2025-01-11 21:43:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:43:05' and `end` < '2025-01-11 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-11 21:43:20] Production.INFO: count ==1644 [2025-01-11 21:43:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:43:05 - End Time 2025-01-11 21:43:05 [2025-01-11 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227084', 'tblTempUsageDetail_20' ) start [2025-01-11 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227084', 'tblTempUsageDetail_20' ) end [2025-01-11 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227084', 'tblTempVendorCDR_20' ) start [2025-01-11 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227084', 'tblTempVendorCDR_20' ) end [2025-01-11 21:43:20] Production.INFO: ProcessCDR(1,14227084,1,1,2) [2025-01-11 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227084', 'tblTempUsageDetail_20' ) start [2025-01-11 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227084', 'tblTempUsageDetail_20' ) end [2025-01-11 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:43:23] Production.INFO: ==28717== Releasing lock... [2025-01-11 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:44:05 [end_date_ymd] => 2025-01-11 21:44:05 [RateCDR] => 1 ) [2025-01-11 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 18:44:05' and `end` < '2025-01-11 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 21:44:18] Production.INFO: count ==1644 [2025-01-11 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:44:05 - End Time 2025-01-11 21:44:05 [2025-01-11 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227089', 'tblTempUsageDetail_20' ) start [2025-01-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227089', 'tblTempUsageDetail_20' ) end [2025-01-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227089', 'tblTempVendorCDR_20' ) start [2025-01-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227089', 'tblTempVendorCDR_20' ) end [2025-01-11 21:44:18] Production.INFO: ProcessCDR(1,14227089,1,1,2) [2025-01-11 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227089', 'tblTempUsageDetail_20' ) start [2025-01-11 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227089', 'tblTempUsageDetail_20' ) end [2025-01-11 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:44:21] Production.INFO: ==28790== Releasing lock... [2025-01-11 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:44:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:45:05 [end_date_ymd] => 2025-01-11 21:45:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:45:05' and `end` < '2025-01-11 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-11 21:45:18] Production.INFO: count ==1644 [2025-01-11 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:45:05 - End Time 2025-01-11 21:45:05 [2025-01-11 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227094', 'tblTempUsageDetail_20' ) start [2025-01-11 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227094', 'tblTempUsageDetail_20' ) end [2025-01-11 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227094', 'tblTempVendorCDR_20' ) start [2025-01-11 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227094', 'tblTempVendorCDR_20' ) end [2025-01-11 21:45:19] Production.INFO: ProcessCDR(1,14227094,1,1,2) [2025-01-11 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227094', 'tblTempUsageDetail_20' ) start [2025-01-11 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227094', 'tblTempUsageDetail_20' ) end [2025-01-11 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:45:23] Production.INFO: ==28868== Releasing lock... [2025-01-11 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:45:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:46:06 [end_date_ymd] => 2025-01-11 21:46:06 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:46:06' and `end` < '2025-01-11 21: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-11 21:46:19] Production.INFO: count ==1641 [2025-01-11 21:46:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:46:06 - End Time 2025-01-11 21:46:06 [2025-01-11 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227099', 'tblTempUsageDetail_20' ) start [2025-01-11 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227099', 'tblTempUsageDetail_20' ) end [2025-01-11 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227099', 'tblTempVendorCDR_20' ) start [2025-01-11 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227099', 'tblTempVendorCDR_20' ) end [2025-01-11 21:46:20] Production.INFO: ProcessCDR(1,14227099,1,1,2) [2025-01-11 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227099', 'tblTempUsageDetail_20' ) start [2025-01-11 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227099', 'tblTempUsageDetail_20' ) end [2025-01-11 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:46:23] Production.INFO: ==28946== Releasing lock... [2025-01-11 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:46:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:47:04 [end_date_ymd] => 2025-01-11 21:47:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:47:04' and `end` < '2025-01-11 21: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-11 21:47:18] Production.INFO: count ==1642 [2025-01-11 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:47:04 - End Time 2025-01-11 21:47:04 [2025-01-11 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227104', 'tblTempUsageDetail_20' ) start [2025-01-11 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227104', 'tblTempUsageDetail_20' ) end [2025-01-11 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227104', 'tblTempVendorCDR_20' ) start [2025-01-11 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227104', 'tblTempVendorCDR_20' ) end [2025-01-11 21:47:19] Production.INFO: ProcessCDR(1,14227104,1,1,2) [2025-01-11 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227104', 'tblTempUsageDetail_20' ) start [2025-01-11 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227104', 'tblTempUsageDetail_20' ) end [2025-01-11 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:47:23] Production.INFO: ==29020== Releasing lock... [2025-01-11 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:47:23] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:48:05 [end_date_ymd] => 2025-01-11 21:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:48:05' and `end` < '2025-01-11 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-11 21:48:18] Production.INFO: count ==1638 [2025-01-11 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:48:05 - End Time 2025-01-11 21:48:05 [2025-01-11 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227109', 'tblTempUsageDetail_20' ) start [2025-01-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227109', 'tblTempUsageDetail_20' ) end [2025-01-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227109', 'tblTempVendorCDR_20' ) start [2025-01-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227109', 'tblTempVendorCDR_20' ) end [2025-01-11 21:48:18] Production.INFO: ProcessCDR(1,14227109,1,1,2) [2025-01-11 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227109', 'tblTempUsageDetail_20' ) start [2025-01-11 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227109', 'tblTempUsageDetail_20' ) end [2025-01-11 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:48:22] Production.INFO: ==29093== Releasing lock... [2025-01-11 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:49:05 [end_date_ymd] => 2025-01-11 21:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:49:05' and `end` < '2025-01-11 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-11 21:49:18] Production.INFO: count ==1637 [2025-01-11 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:49:05 - End Time 2025-01-11 21:49:05 [2025-01-11 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227114', 'tblTempUsageDetail_20' ) start [2025-01-11 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227114', 'tblTempUsageDetail_20' ) end [2025-01-11 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227114', 'tblTempVendorCDR_20' ) start [2025-01-11 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227114', 'tblTempVendorCDR_20' ) end [2025-01-11 21:49:19] Production.INFO: ProcessCDR(1,14227114,1,1,2) [2025-01-11 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227114', 'tblTempUsageDetail_20' ) start [2025-01-11 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227114', 'tblTempUsageDetail_20' ) end [2025-01-11 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:49:24] Production.INFO: ==29163== Releasing lock... [2025-01-11 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:49:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:50:05 [end_date_ymd] => 2025-01-11 21:50:05 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:50:05' and `end` < '2025-01-11 21: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-11 21:50:19] Production.INFO: count ==1635 [2025-01-11 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:50:05 - End Time 2025-01-11 21:50:05 [2025-01-11 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227120', 'tblTempUsageDetail_20' ) start [2025-01-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227120', 'tblTempUsageDetail_20' ) end [2025-01-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227120', 'tblTempVendorCDR_20' ) start [2025-01-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227120', 'tblTempVendorCDR_20' ) end [2025-01-11 21:50:19] Production.INFO: ProcessCDR(1,14227120,1,1,2) [2025-01-11 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227120', 'tblTempUsageDetail_20' ) start [2025-01-11 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227120', 'tblTempUsageDetail_20' ) end [2025-01-11 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:50:22] Production.INFO: ==29240== Releasing lock... [2025-01-11 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:50:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:51:04 [end_date_ymd] => 2025-01-11 21:51:04 [RateCDR] => 1 ) [2025-01-11 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-11 18:51:04' and `end` < '2025-01-11 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-11 21:51:18] Production.INFO: count ==1627 [2025-01-11 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:51:04 - End Time 2025-01-11 21:51:04 [2025-01-11 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227125', 'tblTempUsageDetail_20' ) start [2025-01-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227125', 'tblTempUsageDetail_20' ) end [2025-01-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227125', 'tblTempVendorCDR_20' ) start [2025-01-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227125', 'tblTempVendorCDR_20' ) end [2025-01-11 21:51:18] Production.INFO: ProcessCDR(1,14227125,1,1,2) [2025-01-11 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227125', 'tblTempUsageDetail_20' ) start [2025-01-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227125', 'tblTempUsageDetail_20' ) end [2025-01-11 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:51:21] Production.INFO: ==29353== Releasing lock... [2025-01-11 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:51:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:52:05 [end_date_ymd] => 2025-01-11 21:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:52:05' and `end` < '2025-01-11 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-11 21:52:19] Production.INFO: count ==1627 [2025-01-11 21:52:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:52:05 - End Time 2025-01-11 21:52:05 [2025-01-11 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227130', 'tblTempUsageDetail_20' ) start [2025-01-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227130', 'tblTempUsageDetail_20' ) end [2025-01-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227130', 'tblTempVendorCDR_20' ) start [2025-01-11 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227130', 'tblTempVendorCDR_20' ) end [2025-01-11 21:52:19] Production.INFO: ProcessCDR(1,14227130,1,1,2) [2025-01-11 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227130', 'tblTempUsageDetail_20' ) start [2025-01-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227130', 'tblTempUsageDetail_20' ) end [2025-01-11 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:52:22] Production.INFO: ==29426== Releasing lock... [2025-01-11 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:52:22] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:53:05 [end_date_ymd] => 2025-01-11 21:53:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:53:05' and `end` < '2025-01-11 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-11 21:53:19] Production.INFO: count ==1626 [2025-01-11 21:53:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:53:05 - End Time 2025-01-11 21:53:05 [2025-01-11 21:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227135', 'tblTempUsageDetail_20' ) start [2025-01-11 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227135', 'tblTempUsageDetail_20' ) end [2025-01-11 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227135', 'tblTempVendorCDR_20' ) start [2025-01-11 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227135', 'tblTempVendorCDR_20' ) end [2025-01-11 21:53:20] Production.INFO: ProcessCDR(1,14227135,1,1,2) [2025-01-11 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227135', 'tblTempUsageDetail_20' ) start [2025-01-11 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227135', 'tblTempUsageDetail_20' ) end [2025-01-11 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:53:23] Production.INFO: ==29499== Releasing lock... [2025-01-11 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:53:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:54:04 [end_date_ymd] => 2025-01-11 21:54:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:54:04' and `end` < '2025-01-11 21: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-11 21:54:18] Production.INFO: count ==1629 [2025-01-11 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:54:04 - End Time 2025-01-11 21:54:04 [2025-01-11 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227140', 'tblTempUsageDetail_20' ) start [2025-01-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227140', 'tblTempUsageDetail_20' ) end [2025-01-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227140', 'tblTempVendorCDR_20' ) start [2025-01-11 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227140', 'tblTempVendorCDR_20' ) end [2025-01-11 21:54:18] Production.INFO: ProcessCDR(1,14227140,1,1,2) [2025-01-11 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227140', 'tblTempUsageDetail_20' ) start [2025-01-11 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227140', 'tblTempUsageDetail_20' ) end [2025-01-11 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:54:21] Production.INFO: ==29571== Releasing lock... [2025-01-11 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:55:05 [end_date_ymd] => 2025-01-11 21:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:55:05' and `end` < '2025-01-11 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-11 21:55:19] Production.INFO: count ==1631 [2025-01-11 21:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 18:55:05 - End Time 2025-01-11 21:55:05 [2025-01-11 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227145', 'tblTempUsageDetail_20' ) start [2025-01-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227145', 'tblTempUsageDetail_20' ) end [2025-01-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227145', 'tblTempVendorCDR_20' ) start [2025-01-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227145', 'tblTempVendorCDR_20' ) end [2025-01-11 21:55:19] Production.INFO: ProcessCDR(1,14227145,1,1,2) [2025-01-11 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227145', 'tblTempUsageDetail_20' ) start [2025-01-11 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227145', 'tblTempUsageDetail_20' ) end [2025-01-11 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:55:22] Production.INFO: ==29648== Releasing lock... [2025-01-11 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:56:04 [end_date_ymd] => 2025-01-11 21:56:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:56:04' and `end` < '2025-01-11 21: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-11 21:56:18] Production.INFO: count ==1630 [2025-01-11 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:56:04 - End Time 2025-01-11 21:56:04 [2025-01-11 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227150', 'tblTempUsageDetail_20' ) start [2025-01-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227150', 'tblTempUsageDetail_20' ) end [2025-01-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227150', 'tblTempVendorCDR_20' ) start [2025-01-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227150', 'tblTempVendorCDR_20' ) end [2025-01-11 21:56:18] Production.INFO: ProcessCDR(1,14227150,1,1,2) [2025-01-11 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227150', 'tblTempUsageDetail_20' ) start [2025-01-11 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227150', 'tblTempUsageDetail_20' ) end [2025-01-11 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:56:21] Production.INFO: ==29717== Releasing lock... [2025-01-11 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:56:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:57:05 [end_date_ymd] => 2025-01-11 21:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:57:05' and `end` < '2025-01-11 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-11 21:57:19] Production.INFO: count ==1631 [2025-01-11 21:57:20] Production.ERROR: pbx CDR StartTime 2025-01-11 18:57:05 - End Time 2025-01-11 21:57:05 [2025-01-11 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227155', 'tblTempUsageDetail_20' ) start [2025-01-11 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227155', 'tblTempUsageDetail_20' ) end [2025-01-11 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227155', 'tblTempVendorCDR_20' ) start [2025-01-11 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227155', 'tblTempVendorCDR_20' ) end [2025-01-11 21:57:20] Production.INFO: ProcessCDR(1,14227155,1,1,2) [2025-01-11 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227155', 'tblTempUsageDetail_20' ) start [2025-01-11 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227155', 'tblTempUsageDetail_20' ) end [2025-01-11 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:57:23] Production.INFO: ==29789== Releasing lock... [2025-01-11 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:57:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:58:04 [end_date_ymd] => 2025-01-11 21:58:04 [RateCDR] => 1 ) [2025-01-11 21: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-11 18:58:04' and `end` < '2025-01-11 21: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-11 21:58:18] Production.INFO: count ==1629 [2025-01-11 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:58:04 - End Time 2025-01-11 21:58:04 [2025-01-11 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227160', 'tblTempUsageDetail_20' ) start [2025-01-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227160', 'tblTempUsageDetail_20' ) end [2025-01-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227160', 'tblTempVendorCDR_20' ) start [2025-01-11 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227160', 'tblTempVendorCDR_20' ) end [2025-01-11 21:58:18] Production.INFO: ProcessCDR(1,14227160,1,1,2) [2025-01-11 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227160', 'tblTempUsageDetail_20' ) start [2025-01-11 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227160', 'tblTempUsageDetail_20' ) end [2025-01-11 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:58:21] Production.INFO: ==29859== Releasing lock... [2025-01-11 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:58:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 18:59:05 [end_date_ymd] => 2025-01-11 21:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 18:59:05' and `end` < '2025-01-11 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-11 21:59:18] Production.INFO: count ==1628 [2025-01-11 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 18:59:05 - End Time 2025-01-11 21:59:05 [2025-01-11 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227165', 'tblTempUsageDetail_20' ) start [2025-01-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227165', 'tblTempUsageDetail_20' ) end [2025-01-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227165', 'tblTempVendorCDR_20' ) start [2025-01-11 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227165', 'tblTempVendorCDR_20' ) end [2025-01-11 21:59:18] Production.INFO: ProcessCDR(1,14227165,1,1,2) [2025-01-11 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227165', 'tblTempUsageDetail_20' ) start [2025-01-11 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227165', 'tblTempUsageDetail_20' ) end [2025-01-11 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 21:59:21] Production.INFO: ==29937== Releasing lock... [2025-01-11 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 21:59:21] Production.INFO: 40 MB #Memory Used# [2025-01-11 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:00:06 [end_date_ymd] => 2025-01-11 22:00:06 [RateCDR] => 1 ) [2025-01-11 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-11 19:00:06' and `end` < '2025-01-11 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-11 22:00:19] Production.INFO: count ==1628 [2025-01-11 22:00:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:00:06 - End Time 2025-01-11 22:00:06 [2025-01-11 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227171', 'tblTempUsageDetail_20' ) start [2025-01-11 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227171', 'tblTempUsageDetail_20' ) end [2025-01-11 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227171', 'tblTempVendorCDR_20' ) start [2025-01-11 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227171', 'tblTempVendorCDR_20' ) end [2025-01-11 22:00:20] Production.INFO: ProcessCDR(1,14227171,1,1,2) [2025-01-11 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227171', 'tblTempUsageDetail_20' ) start [2025-01-11 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227171', 'tblTempUsageDetail_20' ) end [2025-01-11 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:00:23] Production.INFO: ==30017== Releasing lock... [2025-01-11 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:00:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-11 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:01:05 [end_date_ymd] => 2025-01-11 22:01:05 [RateCDR] => 1 ) [2025-01-11 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:01:05' and `end` < '2025-01-11 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:01:18] Production.INFO: count ==1597 [2025-01-11 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:01:05 - End Time 2025-01-11 22:01:05 [2025-01-11 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227176', 'tblTempUsageDetail_20' ) start [2025-01-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227176', 'tblTempUsageDetail_20' ) end [2025-01-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227176', 'tblTempVendorCDR_20' ) start [2025-01-11 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227176', 'tblTempVendorCDR_20' ) end [2025-01-11 22:01:18] Production.INFO: ProcessCDR(1,14227176,1,1,2) [2025-01-11 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227176', 'tblTempUsageDetail_20' ) start [2025-01-11 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227176', 'tblTempUsageDetail_20' ) end [2025-01-11 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:01:21] Production.INFO: ==30102== Releasing lock... [2025-01-11 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:01:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:02:05 [end_date_ymd] => 2025-01-11 22:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:02:05' and `end` < '2025-01-11 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-11 22:02:18] Production.INFO: count ==1597 [2025-01-11 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:02:05 - End Time 2025-01-11 22:02:05 [2025-01-11 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227181', 'tblTempUsageDetail_20' ) start [2025-01-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227181', 'tblTempUsageDetail_20' ) end [2025-01-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227181', 'tblTempVendorCDR_20' ) start [2025-01-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227181', 'tblTempVendorCDR_20' ) end [2025-01-11 22:02:18] Production.INFO: ProcessCDR(1,14227181,1,1,2) [2025-01-11 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227181', 'tblTempUsageDetail_20' ) start [2025-01-11 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227181', 'tblTempUsageDetail_20' ) end [2025-01-11 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:02:21] Production.INFO: ==30176== Releasing lock... [2025-01-11 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:02:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:03:05 [end_date_ymd] => 2025-01-11 22:03:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:03:05' and `end` < '2025-01-11 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-11 22:03:18] Production.INFO: count ==1593 [2025-01-11 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:03:05 - End Time 2025-01-11 22:03:05 [2025-01-11 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227186', 'tblTempUsageDetail_20' ) start [2025-01-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227186', 'tblTempUsageDetail_20' ) end [2025-01-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227186', 'tblTempVendorCDR_20' ) start [2025-01-11 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227186', 'tblTempVendorCDR_20' ) end [2025-01-11 22:03:18] Production.INFO: ProcessCDR(1,14227186,1,1,2) [2025-01-11 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227186', 'tblTempUsageDetail_20' ) start [2025-01-11 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227186', 'tblTempUsageDetail_20' ) end [2025-01-11 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:03:22] Production.INFO: ==30248== Releasing lock... [2025-01-11 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:03:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:04:05 [end_date_ymd] => 2025-01-11 22:04:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:04:05' and `end` < '2025-01-11 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-11 22:04:20] Production.INFO: count ==1592 [2025-01-11 22:04:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:04:05 - End Time 2025-01-11 22:04:05 [2025-01-11 22:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227191', 'tblTempUsageDetail_20' ) start [2025-01-11 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227191', 'tblTempUsageDetail_20' ) end [2025-01-11 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227191', 'tblTempVendorCDR_20' ) start [2025-01-11 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227191', 'tblTempVendorCDR_20' ) end [2025-01-11 22:04:20] Production.INFO: ProcessCDR(1,14227191,1,1,2) [2025-01-11 22:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227191', 'tblTempUsageDetail_20' ) start [2025-01-11 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227191', 'tblTempUsageDetail_20' ) end [2025-01-11 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:04:23] Production.INFO: ==30321== Releasing lock... [2025-01-11 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:04:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:05:05 [end_date_ymd] => 2025-01-11 22:05:05 [RateCDR] => 1 ) [2025-01-11 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:05:05' and `end` < '2025-01-11 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:05:19] Production.INFO: count ==1593 [2025-01-11 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:05:05 - End Time 2025-01-11 22:05:05 [2025-01-11 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227196', 'tblTempUsageDetail_20' ) start [2025-01-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227196', 'tblTempUsageDetail_20' ) end [2025-01-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227196', 'tblTempVendorCDR_20' ) start [2025-01-11 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227196', 'tblTempVendorCDR_20' ) end [2025-01-11 22:05:19] Production.INFO: ProcessCDR(1,14227196,1,1,2) [2025-01-11 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227196', 'tblTempUsageDetail_20' ) start [2025-01-11 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227196', 'tblTempUsageDetail_20' ) end [2025-01-11 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:05:23] Production.INFO: ==30393== Releasing lock... [2025-01-11 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:06:05 [end_date_ymd] => 2025-01-11 22:06:05 [RateCDR] => 1 ) [2025-01-11 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:06:05' and `end` < '2025-01-11 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:06:18] Production.INFO: count ==1592 [2025-01-11 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:06:05 - End Time 2025-01-11 22:06:05 [2025-01-11 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227201', 'tblTempUsageDetail_20' ) start [2025-01-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227201', 'tblTempUsageDetail_20' ) end [2025-01-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227201', 'tblTempVendorCDR_20' ) start [2025-01-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227201', 'tblTempVendorCDR_20' ) end [2025-01-11 22:06:18] Production.INFO: ProcessCDR(1,14227201,1,1,2) [2025-01-11 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227201', 'tblTempUsageDetail_20' ) start [2025-01-11 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227201', 'tblTempUsageDetail_20' ) end [2025-01-11 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:06:23] Production.INFO: ==30463== Releasing lock... [2025-01-11 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:07:04 [end_date_ymd] => 2025-01-11 22:07:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:07:04' and `end` < '2025-01-11 22: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-11 22:07:19] Production.INFO: count ==1591 [2025-01-11 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:07:04 - End Time 2025-01-11 22:07:04 [2025-01-11 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227206', 'tblTempUsageDetail_20' ) start [2025-01-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227206', 'tblTempUsageDetail_20' ) end [2025-01-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227206', 'tblTempVendorCDR_20' ) start [2025-01-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227206', 'tblTempVendorCDR_20' ) end [2025-01-11 22:07:19] Production.INFO: ProcessCDR(1,14227206,1,1,2) [2025-01-11 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227206', 'tblTempUsageDetail_20' ) start [2025-01-11 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227206', 'tblTempUsageDetail_20' ) end [2025-01-11 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:07:23] Production.INFO: ==30575== Releasing lock... [2025-01-11 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:08:05 [end_date_ymd] => 2025-01-11 22:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:08:05' and `end` < '2025-01-11 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-11 22:08:18] Production.INFO: count ==1589 [2025-01-11 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:08:05 - End Time 2025-01-11 22:08:05 [2025-01-11 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227211', 'tblTempUsageDetail_20' ) start [2025-01-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227211', 'tblTempUsageDetail_20' ) end [2025-01-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227211', 'tblTempVendorCDR_20' ) start [2025-01-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227211', 'tblTempVendorCDR_20' ) end [2025-01-11 22:08:18] Production.INFO: ProcessCDR(1,14227211,1,1,2) [2025-01-11 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227211', 'tblTempUsageDetail_20' ) start [2025-01-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227211', 'tblTempUsageDetail_20' ) end [2025-01-11 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:08:22] Production.INFO: ==30645== Releasing lock... [2025-01-11 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:09:05 [end_date_ymd] => 2025-01-11 22:09:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:09:05' and `end` < '2025-01-11 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-11 22:09:19] Production.INFO: count ==1585 [2025-01-11 22:09:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:09:05 - End Time 2025-01-11 22:09:05 [2025-01-11 22:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227216', 'tblTempUsageDetail_20' ) start [2025-01-11 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227216', 'tblTempUsageDetail_20' ) end [2025-01-11 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227216', 'tblTempVendorCDR_20' ) start [2025-01-11 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227216', 'tblTempVendorCDR_20' ) end [2025-01-11 22:09:20] Production.INFO: ProcessCDR(1,14227216,1,1,2) [2025-01-11 22:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227216', 'tblTempUsageDetail_20' ) start [2025-01-11 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227216', 'tblTempUsageDetail_20' ) end [2025-01-11 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:09:23] Production.INFO: ==30718== Releasing lock... [2025-01-11 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:09:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:10:05 [end_date_ymd] => 2025-01-11 22:10:05 [RateCDR] => 1 ) [2025-01-11 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:10:05' and `end` < '2025-01-11 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:10:18] Production.INFO: count ==1581 [2025-01-11 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:10:05 - End Time 2025-01-11 22:10:05 [2025-01-11 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227221', 'tblTempUsageDetail_20' ) start [2025-01-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227221', 'tblTempUsageDetail_20' ) end [2025-01-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227221', 'tblTempVendorCDR_20' ) start [2025-01-11 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227221', 'tblTempVendorCDR_20' ) end [2025-01-11 22:10:18] Production.INFO: ProcessCDR(1,14227221,1,1,2) [2025-01-11 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227221', 'tblTempUsageDetail_20' ) start [2025-01-11 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227221', 'tblTempUsageDetail_20' ) end [2025-01-11 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:10:22] Production.INFO: ==30790== Releasing lock... [2025-01-11 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:10:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-11 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:11:05 [end_date_ymd] => 2025-01-11 22:11:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:11:05' and `end` < '2025-01-11 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-11 22:11:18] Production.INFO: count ==1531 [2025-01-11 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:11:05 - End Time 2025-01-11 22:11:05 [2025-01-11 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227227', 'tblTempUsageDetail_20' ) start [2025-01-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227227', 'tblTempUsageDetail_20' ) end [2025-01-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227227', 'tblTempVendorCDR_20' ) start [2025-01-11 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227227', 'tblTempVendorCDR_20' ) end [2025-01-11 22:11:19] Production.INFO: ProcessCDR(1,14227227,1,1,2) [2025-01-11 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227227', 'tblTempUsageDetail_20' ) start [2025-01-11 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227227', 'tblTempUsageDetail_20' ) end [2025-01-11 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:11:22] Production.INFO: ==30866== Releasing lock... [2025-01-11 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:11:22] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:12:05 [end_date_ymd] => 2025-01-11 22:12:05 [RateCDR] => 1 ) [2025-01-11 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:12:05' and `end` < '2025-01-11 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:12:19] Production.INFO: count ==1530 [2025-01-11 22:12:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:12:05 - End Time 2025-01-11 22:12:05 [2025-01-11 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227232', 'tblTempUsageDetail_20' ) start [2025-01-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227232', 'tblTempUsageDetail_20' ) end [2025-01-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227232', 'tblTempVendorCDR_20' ) start [2025-01-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227232', 'tblTempVendorCDR_20' ) end [2025-01-11 22:12:19] Production.INFO: ProcessCDR(1,14227232,1,1,2) [2025-01-11 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227232', 'tblTempUsageDetail_20' ) start [2025-01-11 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227232', 'tblTempUsageDetail_20' ) end [2025-01-11 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:12:22] Production.INFO: ==30942== Releasing lock... [2025-01-11 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:12:22] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:13:05 [end_date_ymd] => 2025-01-11 22:13:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:13:05' and `end` < '2025-01-11 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-11 22:13:20] Production.INFO: count ==1532 [2025-01-11 22:13:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:13:05 - End Time 2025-01-11 22:13:05 [2025-01-11 22:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227237', 'tblTempUsageDetail_20' ) start [2025-01-11 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227237', 'tblTempUsageDetail_20' ) end [2025-01-11 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227237', 'tblTempVendorCDR_20' ) start [2025-01-11 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227237', 'tblTempVendorCDR_20' ) end [2025-01-11 22:13:20] Production.INFO: ProcessCDR(1,14227237,1,1,2) [2025-01-11 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227237', 'tblTempUsageDetail_20' ) start [2025-01-11 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227237', 'tblTempUsageDetail_20' ) end [2025-01-11 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:13:23] Production.INFO: ==31019== Releasing lock... [2025-01-11 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:13:23] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:14:05 [end_date_ymd] => 2025-01-11 22:14:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:14:05' and `end` < '2025-01-11 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-11 22:14:19] Production.INFO: count ==1531 [2025-01-11 22:14:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:14:05 - End Time 2025-01-11 22:14:05 [2025-01-11 22:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227242', 'tblTempUsageDetail_20' ) start [2025-01-11 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227242', 'tblTempUsageDetail_20' ) end [2025-01-11 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227242', 'tblTempVendorCDR_20' ) start [2025-01-11 22:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227242', 'tblTempVendorCDR_20' ) end [2025-01-11 22:14:20] Production.INFO: ProcessCDR(1,14227242,1,1,2) [2025-01-11 22:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227242', 'tblTempUsageDetail_20' ) start [2025-01-11 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227242', 'tblTempUsageDetail_20' ) end [2025-01-11 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:14:23] Production.INFO: ==31091== Releasing lock... [2025-01-11 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:14:23] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:15:04 [end_date_ymd] => 2025-01-11 22:15:04 [RateCDR] => 1 ) [2025-01-11 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-11 19:15:04' and `end` < '2025-01-11 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-11 22:15:18] Production.INFO: count ==1522 [2025-01-11 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:15:04 - End Time 2025-01-11 22:15:04 [2025-01-11 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227247', 'tblTempUsageDetail_20' ) start [2025-01-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227247', 'tblTempUsageDetail_20' ) end [2025-01-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227247', 'tblTempVendorCDR_20' ) start [2025-01-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227247', 'tblTempVendorCDR_20' ) end [2025-01-11 22:15:18] Production.INFO: ProcessCDR(1,14227247,1,1,2) [2025-01-11 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227247', 'tblTempUsageDetail_20' ) start [2025-01-11 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227247', 'tblTempUsageDetail_20' ) end [2025-01-11 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:15:21] Production.INFO: ==31167== Releasing lock... [2025-01-11 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:15:21] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:16:05 [end_date_ymd] => 2025-01-11 22:16:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:16:05' and `end` < '2025-01-11 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-11 22:16:21] Production.INFO: count ==1509 [2025-01-11 22:16:21] Production.ERROR: pbx CDR StartTime 2025-01-11 19:16:05 - End Time 2025-01-11 22:16:05 [2025-01-11 22:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227252', 'tblTempUsageDetail_20' ) start [2025-01-11 22:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227252', 'tblTempUsageDetail_20' ) end [2025-01-11 22:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227252', 'tblTempVendorCDR_20' ) start [2025-01-11 22:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227252', 'tblTempVendorCDR_20' ) end [2025-01-11 22:16:21] Production.INFO: ProcessCDR(1,14227252,1,1,2) [2025-01-11 22:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227252', 'tblTempUsageDetail_20' ) start [2025-01-11 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227252', 'tblTempUsageDetail_20' ) end [2025-01-11 22:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:16:25] Production.INFO: ==31264== Releasing lock... [2025-01-11 22:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:16:25] Production.INFO: 39 MB #Memory Used# [2025-01-11 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:17:05 [end_date_ymd] => 2025-01-11 22:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:17:05' and `end` < '2025-01-11 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-11 22:17:18] Production.INFO: count ==1472 [2025-01-11 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:17:05 - End Time 2025-01-11 22:17:05 [2025-01-11 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227257', 'tblTempUsageDetail_20' ) start [2025-01-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227257', 'tblTempUsageDetail_20' ) end [2025-01-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227257', 'tblTempVendorCDR_20' ) start [2025-01-11 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227257', 'tblTempVendorCDR_20' ) end [2025-01-11 22:17:18] Production.INFO: ProcessCDR(1,14227257,1,1,2) [2025-01-11 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227257', 'tblTempUsageDetail_20' ) start [2025-01-11 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227257', 'tblTempUsageDetail_20' ) end [2025-01-11 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:17:21] Production.INFO: ==31335== Releasing lock... [2025-01-11 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:17:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:18:05 [end_date_ymd] => 2025-01-11 22:18:05 [RateCDR] => 1 ) [2025-01-11 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:18:05' and `end` < '2025-01-11 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:18:18] Production.INFO: count ==1458 [2025-01-11 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:18:05 - End Time 2025-01-11 22:18:05 [2025-01-11 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227262', 'tblTempUsageDetail_20' ) start [2025-01-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227262', 'tblTempUsageDetail_20' ) end [2025-01-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227262', 'tblTempVendorCDR_20' ) start [2025-01-11 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227262', 'tblTempVendorCDR_20' ) end [2025-01-11 22:18:18] Production.INFO: ProcessCDR(1,14227262,1,1,2) [2025-01-11 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227262', 'tblTempUsageDetail_20' ) start [2025-01-11 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227262', 'tblTempUsageDetail_20' ) end [2025-01-11 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:18:23] Production.INFO: ==31410== Releasing lock... [2025-01-11 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:18:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:19:04 [end_date_ymd] => 2025-01-11 22:19:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:19:04' and `end` < '2025-01-11 22: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-11 22:19:19] Production.INFO: count ==1455 [2025-01-11 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:19:04 - End Time 2025-01-11 22:19:04 [2025-01-11 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227267', 'tblTempUsageDetail_20' ) start [2025-01-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227267', 'tblTempUsageDetail_20' ) end [2025-01-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227267', 'tblTempVendorCDR_20' ) start [2025-01-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227267', 'tblTempVendorCDR_20' ) end [2025-01-11 22:19:19] Production.INFO: ProcessCDR(1,14227267,1,1,2) [2025-01-11 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227267', 'tblTempUsageDetail_20' ) start [2025-01-11 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227267', 'tblTempUsageDetail_20' ) end [2025-01-11 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:19:22] Production.INFO: ==31482== Releasing lock... [2025-01-11 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:20:05 [end_date_ymd] => 2025-01-11 22:20:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:20:05' and `end` < '2025-01-11 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-11 22:20:19] Production.INFO: count ==1455 [2025-01-11 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:20:05 - End Time 2025-01-11 22:20:05 [2025-01-11 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227273', 'tblTempUsageDetail_20' ) start [2025-01-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227273', 'tblTempUsageDetail_20' ) end [2025-01-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227273', 'tblTempVendorCDR_20' ) start [2025-01-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227273', 'tblTempVendorCDR_20' ) end [2025-01-11 22:20:19] Production.INFO: ProcessCDR(1,14227273,1,1,2) [2025-01-11 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227273', 'tblTempUsageDetail_20' ) start [2025-01-11 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227273', 'tblTempUsageDetail_20' ) end [2025-01-11 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:20:22] Production.INFO: ==31559== Releasing lock... [2025-01-11 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:20:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-11 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:21:05 [end_date_ymd] => 2025-01-11 22:21:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:21:05' and `end` < '2025-01-11 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-11 22:21:19] Production.INFO: count ==1405 [2025-01-11 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:21:05 - End Time 2025-01-11 22:21:05 [2025-01-11 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227278', 'tblTempUsageDetail_20' ) start [2025-01-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227278', 'tblTempUsageDetail_20' ) end [2025-01-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227278', 'tblTempVendorCDR_20' ) start [2025-01-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227278', 'tblTempVendorCDR_20' ) end [2025-01-11 22:21:19] Production.INFO: ProcessCDR(1,14227278,1,1,2) [2025-01-11 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227278', 'tblTempUsageDetail_20' ) start [2025-01-11 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227278', 'tblTempUsageDetail_20' ) end [2025-01-11 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:21:22] Production.INFO: ==31633== Releasing lock... [2025-01-11 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:21:22] Production.INFO: 38 MB #Memory Used# [2025-01-11 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:22:04 [end_date_ymd] => 2025-01-11 22:22:04 [RateCDR] => 1 ) [2025-01-11 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-11 19:22:04' and `end` < '2025-01-11 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-11 22:22:18] Production.INFO: count ==1404 [2025-01-11 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:22:04 - End Time 2025-01-11 22:22:04 [2025-01-11 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227283', 'tblTempUsageDetail_20' ) start [2025-01-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227283', 'tblTempUsageDetail_20' ) end [2025-01-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227283', 'tblTempVendorCDR_20' ) start [2025-01-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227283', 'tblTempVendorCDR_20' ) end [2025-01-11 22:22:19] Production.INFO: ProcessCDR(1,14227283,1,1,2) [2025-01-11 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227283', 'tblTempUsageDetail_20' ) start [2025-01-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227283', 'tblTempUsageDetail_20' ) end [2025-01-11 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:22:22] Production.INFO: ==31745== Releasing lock... [2025-01-11 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:22:22] Production.INFO: 38 MB #Memory Used# [2025-01-11 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:23:05 [end_date_ymd] => 2025-01-11 22:23:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:23:05' and `end` < '2025-01-11 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-11 22:23:19] Production.INFO: count ==1400 [2025-01-11 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:23:05 - End Time 2025-01-11 22:23:05 [2025-01-11 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227288', 'tblTempUsageDetail_20' ) start [2025-01-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227288', 'tblTempUsageDetail_20' ) end [2025-01-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227288', 'tblTempVendorCDR_20' ) start [2025-01-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227288', 'tblTempVendorCDR_20' ) end [2025-01-11 22:23:19] Production.INFO: ProcessCDR(1,14227288,1,1,2) [2025-01-11 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227288', 'tblTempUsageDetail_20' ) start [2025-01-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227288', 'tblTempUsageDetail_20' ) end [2025-01-11 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:23:22] Production.INFO: ==31844== Releasing lock... [2025-01-11 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:24:05 [end_date_ymd] => 2025-01-11 22:24:05 [RateCDR] => 1 ) [2025-01-11 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:24:05' and `end` < '2025-01-11 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:24:19] Production.INFO: count ==1400 [2025-01-11 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:24:05 - End Time 2025-01-11 22:24:05 [2025-01-11 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227293', 'tblTempUsageDetail_20' ) start [2025-01-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227293', 'tblTempUsageDetail_20' ) end [2025-01-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227293', 'tblTempVendorCDR_20' ) start [2025-01-11 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227293', 'tblTempVendorCDR_20' ) end [2025-01-11 22:24:19] Production.INFO: ProcessCDR(1,14227293,1,1,2) [2025-01-11 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227293', 'tblTempUsageDetail_20' ) start [2025-01-11 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227293', 'tblTempUsageDetail_20' ) end [2025-01-11 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:24:22] Production.INFO: ==31947== Releasing lock... [2025-01-11 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:24:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:25:05 [end_date_ymd] => 2025-01-11 22:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:25:05' and `end` < '2025-01-11 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-11 22:25:18] Production.INFO: count ==1400 [2025-01-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:25:05 - End Time 2025-01-11 22:25:05 [2025-01-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227298', 'tblTempUsageDetail_20' ) start [2025-01-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227298', 'tblTempUsageDetail_20' ) end [2025-01-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227298', 'tblTempVendorCDR_20' ) start [2025-01-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227298', 'tblTempVendorCDR_20' ) end [2025-01-11 22:25:18] Production.INFO: ProcessCDR(1,14227298,1,1,2) [2025-01-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227298', 'tblTempUsageDetail_20' ) start [2025-01-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227298', 'tblTempUsageDetail_20' ) end [2025-01-11 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:25:21] Production.INFO: ==32049== Releasing lock... [2025-01-11 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:26:05 [end_date_ymd] => 2025-01-11 22:26:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:26:05' and `end` < '2025-01-11 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:26:19] Production.INFO: count ==1400 [2025-01-11 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:26:05 - End Time 2025-01-11 22:26:05 [2025-01-11 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227303', 'tblTempUsageDetail_20' ) start [2025-01-11 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227303', 'tblTempUsageDetail_20' ) end [2025-01-11 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227303', 'tblTempVendorCDR_20' ) start [2025-01-11 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227303', 'tblTempVendorCDR_20' ) end [2025-01-11 22:26:19] Production.INFO: ProcessCDR(1,14227303,1,1,2) [2025-01-11 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227303', 'tblTempUsageDetail_20' ) start [2025-01-11 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227303', 'tblTempUsageDetail_20' ) end [2025-01-11 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:26:22] Production.INFO: ==32148== Releasing lock... [2025-01-11 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:26:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:27:05 [end_date_ymd] => 2025-01-11 22:27:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:27:05' and `end` < '2025-01-11 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-11 22:27:18] Production.INFO: count ==1400 [2025-01-11 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:27:05 - End Time 2025-01-11 22:27:05 [2025-01-11 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227308', 'tblTempUsageDetail_20' ) start [2025-01-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227308', 'tblTempUsageDetail_20' ) end [2025-01-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227308', 'tblTempVendorCDR_20' ) start [2025-01-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227308', 'tblTempVendorCDR_20' ) end [2025-01-11 22:27:18] Production.INFO: ProcessCDR(1,14227308,1,1,2) [2025-01-11 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227308', 'tblTempUsageDetail_20' ) start [2025-01-11 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227308', 'tblTempUsageDetail_20' ) end [2025-01-11 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:27:21] Production.INFO: ==32248== Releasing lock... [2025-01-11 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:27:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-11 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:28:04 [end_date_ymd] => 2025-01-11 22:28:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:28:04' and `end` < '2025-01-11 22: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-11 22:28:18] Production.INFO: count ==1397 [2025-01-11 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:28:04 - End Time 2025-01-11 22:28:04 [2025-01-11 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227313', 'tblTempUsageDetail_20' ) start [2025-01-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227313', 'tblTempUsageDetail_20' ) end [2025-01-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227313', 'tblTempVendorCDR_20' ) start [2025-01-11 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227313', 'tblTempVendorCDR_20' ) end [2025-01-11 22:28:18] Production.INFO: ProcessCDR(1,14227313,1,1,2) [2025-01-11 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227313', 'tblTempUsageDetail_20' ) start [2025-01-11 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227313', 'tblTempUsageDetail_20' ) end [2025-01-11 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:28:21] Production.INFO: ==32352== Releasing lock... [2025-01-11 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:28:21] Production.INFO: 38 MB #Memory Used# [2025-01-11 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:29:05 [end_date_ymd] => 2025-01-11 22:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:29:05' and `end` < '2025-01-11 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-11 22:29:19] Production.INFO: count ==1397 [2025-01-11 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:29:05 - End Time 2025-01-11 22:29:05 [2025-01-11 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227318', 'tblTempUsageDetail_20' ) start [2025-01-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227318', 'tblTempUsageDetail_20' ) end [2025-01-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227318', 'tblTempVendorCDR_20' ) start [2025-01-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227318', 'tblTempVendorCDR_20' ) end [2025-01-11 22:29:19] Production.INFO: ProcessCDR(1,14227318,1,1,2) [2025-01-11 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227318', 'tblTempUsageDetail_20' ) start [2025-01-11 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227318', 'tblTempUsageDetail_20' ) end [2025-01-11 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:29:22] Production.INFO: ==32453== Releasing lock... [2025-01-11 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:29:22] Production.INFO: 38 MB #Memory Used# [2025-01-11 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:30:06 [end_date_ymd] => 2025-01-11 22:30:06 [RateCDR] => 1 ) [2025-01-11 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-11 19:30:06' and `end` < '2025-01-11 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-11 22:30:19] Production.INFO: count ==1393 [2025-01-11 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:30:06 - End Time 2025-01-11 22:30:06 [2025-01-11 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227324', 'tblTempUsageDetail_20' ) start [2025-01-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227324', 'tblTempUsageDetail_20' ) end [2025-01-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227324', 'tblTempVendorCDR_20' ) start [2025-01-11 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227324', 'tblTempVendorCDR_20' ) end [2025-01-11 22:30:19] Production.INFO: ProcessCDR(1,14227324,1,1,2) [2025-01-11 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227324', 'tblTempUsageDetail_20' ) start [2025-01-11 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227324', 'tblTempUsageDetail_20' ) end [2025-01-11 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:30:23] Production.INFO: ==32556== Releasing lock... [2025-01-11 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:30:23] Production.INFO: 38 MB #Memory Used# [2025-01-11 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:31:04 [end_date_ymd] => 2025-01-11 22:31:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:31:04' and `end` < '2025-01-11 22: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-11 22:31:18] Production.INFO: count ==1351 [2025-01-11 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:31:04 - End Time 2025-01-11 22:31:04 [2025-01-11 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227329', 'tblTempUsageDetail_20' ) start [2025-01-11 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227329', 'tblTempUsageDetail_20' ) end [2025-01-11 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227329', 'tblTempVendorCDR_20' ) start [2025-01-11 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227329', 'tblTempVendorCDR_20' ) end [2025-01-11 22:31:19] Production.INFO: ProcessCDR(1,14227329,1,1,2) [2025-01-11 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227329', 'tblTempUsageDetail_20' ) start [2025-01-11 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227329', 'tblTempUsageDetail_20' ) end [2025-01-11 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:31:22] Production.INFO: ==32658== Releasing lock... [2025-01-11 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:31:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:32:05 [end_date_ymd] => 2025-01-11 22:32:05 [RateCDR] => 1 ) [2025-01-11 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:32:05' and `end` < '2025-01-11 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:32:19] Production.INFO: count ==1337 [2025-01-11 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:32:05 - End Time 2025-01-11 22:32:05 [2025-01-11 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227334', 'tblTempUsageDetail_20' ) start [2025-01-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227334', 'tblTempUsageDetail_20' ) end [2025-01-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227334', 'tblTempVendorCDR_20' ) start [2025-01-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227334', 'tblTempVendorCDR_20' ) end [2025-01-11 22:32:19] Production.INFO: ProcessCDR(1,14227334,1,1,2) [2025-01-11 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227334', 'tblTempUsageDetail_20' ) start [2025-01-11 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227334', 'tblTempUsageDetail_20' ) end [2025-01-11 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:32:22] Production.INFO: ==32758== Releasing lock... [2025-01-11 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:32:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:33:06 [end_date_ymd] => 2025-01-11 22:33:06 [RateCDR] => 1 ) [2025-01-11 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:33:06' and `end` < '2025-01-11 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:33:19] Production.INFO: count ==1324 [2025-01-11 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:33:06 - End Time 2025-01-11 22:33:06 [2025-01-11 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227339', 'tblTempUsageDetail_20' ) start [2025-01-11 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227339', 'tblTempUsageDetail_20' ) end [2025-01-11 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227339', 'tblTempVendorCDR_20' ) start [2025-01-11 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227339', 'tblTempVendorCDR_20' ) end [2025-01-11 22:33:19] Production.INFO: ProcessCDR(1,14227339,1,1,2) [2025-01-11 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227339', 'tblTempUsageDetail_20' ) start [2025-01-11 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227339', 'tblTempUsageDetail_20' ) end [2025-01-11 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:33:22] Production.INFO: ==412== Releasing lock... [2025-01-11 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:34:05 [end_date_ymd] => 2025-01-11 22:34:05 [RateCDR] => 1 ) [2025-01-11 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:34:05' and `end` < '2025-01-11 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:34:18] Production.INFO: count ==1315 [2025-01-11 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:34:05 - End Time 2025-01-11 22:34:05 [2025-01-11 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227344', 'tblTempUsageDetail_20' ) start [2025-01-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227344', 'tblTempUsageDetail_20' ) end [2025-01-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227344', 'tblTempVendorCDR_20' ) start [2025-01-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227344', 'tblTempVendorCDR_20' ) end [2025-01-11 22:34:18] Production.INFO: ProcessCDR(1,14227344,1,1,2) [2025-01-11 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227344', 'tblTempUsageDetail_20' ) start [2025-01-11 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227344', 'tblTempUsageDetail_20' ) end [2025-01-11 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:34:23] Production.INFO: ==511== Releasing lock... [2025-01-11 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:34:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:35:05 [end_date_ymd] => 2025-01-11 22:35:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:35:05' and `end` < '2025-01-11 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-11 22:35:18] Production.INFO: count ==1311 [2025-01-11 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:35:05 - End Time 2025-01-11 22:35:05 [2025-01-11 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227349', 'tblTempUsageDetail_20' ) start [2025-01-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227349', 'tblTempUsageDetail_20' ) end [2025-01-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227349', 'tblTempVendorCDR_20' ) start [2025-01-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227349', 'tblTempVendorCDR_20' ) end [2025-01-11 22:35:18] Production.INFO: ProcessCDR(1,14227349,1,1,2) [2025-01-11 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227349', 'tblTempUsageDetail_20' ) start [2025-01-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227349', 'tblTempUsageDetail_20' ) end [2025-01-11 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:35:21] Production.INFO: ==620== Releasing lock... [2025-01-11 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:35:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:36:04 [end_date_ymd] => 2025-01-11 22:36:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:36:04' and `end` < '2025-01-11 22: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-11 22:36:18] Production.INFO: count ==1311 [2025-01-11 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:36:04 - End Time 2025-01-11 22:36:04 [2025-01-11 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227354', 'tblTempUsageDetail_20' ) start [2025-01-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227354', 'tblTempUsageDetail_20' ) end [2025-01-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227354', 'tblTempVendorCDR_20' ) start [2025-01-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227354', 'tblTempVendorCDR_20' ) end [2025-01-11 22:36:18] Production.INFO: ProcessCDR(1,14227354,1,1,2) [2025-01-11 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227354', 'tblTempUsageDetail_20' ) start [2025-01-11 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227354', 'tblTempUsageDetail_20' ) end [2025-01-11 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:36:21] Production.INFO: ==743== Releasing lock... [2025-01-11 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:36:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:37:05 [end_date_ymd] => 2025-01-11 22:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:37:05' and `end` < '2025-01-11 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-11 22:37:19] Production.INFO: count ==1308 [2025-01-11 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:37:05 - End Time 2025-01-11 22:37:05 [2025-01-11 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227359', 'tblTempUsageDetail_20' ) start [2025-01-11 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227359', 'tblTempUsageDetail_20' ) end [2025-01-11 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227359', 'tblTempVendorCDR_20' ) start [2025-01-11 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227359', 'tblTempVendorCDR_20' ) end [2025-01-11 22:37:19] Production.INFO: ProcessCDR(1,14227359,1,1,2) [2025-01-11 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227359', 'tblTempUsageDetail_20' ) start [2025-01-11 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227359', 'tblTempUsageDetail_20' ) end [2025-01-11 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:37:22] Production.INFO: ==850== Releasing lock... [2025-01-11 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-11 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:38:05 [end_date_ymd] => 2025-01-11 22:38:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:38:05' and `end` < '2025-01-11 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-11 22:38:18] Production.INFO: count ==1311 [2025-01-11 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:38:05 - End Time 2025-01-11 22:38:05 [2025-01-11 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227364', 'tblTempUsageDetail_20' ) start [2025-01-11 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227364', 'tblTempUsageDetail_20' ) end [2025-01-11 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227364', 'tblTempVendorCDR_20' ) start [2025-01-11 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227364', 'tblTempVendorCDR_20' ) end [2025-01-11 22:38:19] Production.INFO: ProcessCDR(1,14227364,1,1,2) [2025-01-11 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227364', 'tblTempUsageDetail_20' ) start [2025-01-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227364', 'tblTempUsageDetail_20' ) end [2025-01-11 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:38:23] Production.INFO: ==988== Releasing lock... [2025-01-11 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-11 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:39:05 [end_date_ymd] => 2025-01-11 22:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:39:05' and `end` < '2025-01-11 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-11 22:39:18] Production.INFO: count ==1305 [2025-01-11 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:39:05 - End Time 2025-01-11 22:39:05 [2025-01-11 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227369', 'tblTempUsageDetail_20' ) start [2025-01-11 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227369', 'tblTempUsageDetail_20' ) end [2025-01-11 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227369', 'tblTempVendorCDR_20' ) start [2025-01-11 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227369', 'tblTempVendorCDR_20' ) end [2025-01-11 22:39:18] Production.INFO: ProcessCDR(1,14227369,1,1,2) [2025-01-11 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227369', 'tblTempUsageDetail_20' ) start [2025-01-11 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227369', 'tblTempUsageDetail_20' ) end [2025-01-11 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:39:23] Production.INFO: ==1087== Releasing lock... [2025-01-11 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:39:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-11 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:40:06 [end_date_ymd] => 2025-01-11 22:40:06 [RateCDR] => 1 ) [2025-01-11 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-11 19:40:06' and `end` < '2025-01-11 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-11 22:40:19] Production.INFO: count ==1294 [2025-01-11 22:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:40:06 - End Time 2025-01-11 22:40:06 [2025-01-11 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227374', 'tblTempUsageDetail_20' ) start [2025-01-11 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227374', 'tblTempUsageDetail_20' ) end [2025-01-11 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227374', 'tblTempVendorCDR_20' ) start [2025-01-11 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227374', 'tblTempVendorCDR_20' ) end [2025-01-11 22:40:20] Production.INFO: ProcessCDR(1,14227374,1,1,2) [2025-01-11 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227374', 'tblTempUsageDetail_20' ) start [2025-01-11 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227374', 'tblTempUsageDetail_20' ) end [2025-01-11 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:40:23] Production.INFO: ==1176== Releasing lock... [2025-01-11 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-11 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:41:05 [end_date_ymd] => 2025-01-11 22:41:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:41:05' and `end` < '2025-01-11 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-11 22:41:19] Production.INFO: count ==1239 [2025-01-11 22:41:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:41:05 - End Time 2025-01-11 22:41:05 [2025-01-11 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227380', 'tblTempUsageDetail_20' ) start [2025-01-11 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227380', 'tblTempUsageDetail_20' ) end [2025-01-11 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227380', 'tblTempVendorCDR_20' ) start [2025-01-11 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227380', 'tblTempVendorCDR_20' ) end [2025-01-11 22:41:19] Production.INFO: ProcessCDR(1,14227380,1,1,2) [2025-01-11 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227380', 'tblTempUsageDetail_20' ) start [2025-01-11 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227380', 'tblTempUsageDetail_20' ) end [2025-01-11 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:41:22] Production.INFO: ==1264== Releasing lock... [2025-01-11 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:42:06 [end_date_ymd] => 2025-01-11 22:42:06 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:42:06' and `end` < '2025-01-11 22: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-11 22:42:19] Production.INFO: count ==1230 [2025-01-11 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:42:06 - End Time 2025-01-11 22:42:06 [2025-01-11 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227385', 'tblTempUsageDetail_20' ) start [2025-01-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227385', 'tblTempUsageDetail_20' ) end [2025-01-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227385', 'tblTempVendorCDR_20' ) start [2025-01-11 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227385', 'tblTempVendorCDR_20' ) end [2025-01-11 22:42:19] Production.INFO: ProcessCDR(1,14227385,1,1,2) [2025-01-11 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227385', 'tblTempUsageDetail_20' ) start [2025-01-11 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227385', 'tblTempUsageDetail_20' ) end [2025-01-11 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:42:22] Production.INFO: ==1337== Releasing lock... [2025-01-11 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:43:05 [end_date_ymd] => 2025-01-11 22:43:05 [RateCDR] => 1 ) [2025-01-11 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:43:05' and `end` < '2025-01-11 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:43:20] Production.INFO: count ==1230 [2025-01-11 22:43:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:43:05 - End Time 2025-01-11 22:43:05 [2025-01-11 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227390', 'tblTempUsageDetail_20' ) start [2025-01-11 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227390', 'tblTempUsageDetail_20' ) end [2025-01-11 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227390', 'tblTempVendorCDR_20' ) start [2025-01-11 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227390', 'tblTempVendorCDR_20' ) end [2025-01-11 22:43:20] Production.INFO: ProcessCDR(1,14227390,1,1,2) [2025-01-11 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227390', 'tblTempUsageDetail_20' ) start [2025-01-11 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227390', 'tblTempUsageDetail_20' ) end [2025-01-11 22:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:43:24] Production.INFO: ==1407== Releasing lock... [2025-01-11 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:43:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:44:05 [end_date_ymd] => 2025-01-11 22:44:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:44:05' and `end` < '2025-01-11 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-11 22:44:18] Production.INFO: count ==1226 [2025-01-11 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:44:05 - End Time 2025-01-11 22:44:05 [2025-01-11 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227395', 'tblTempUsageDetail_20' ) start [2025-01-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227395', 'tblTempUsageDetail_20' ) end [2025-01-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227395', 'tblTempVendorCDR_20' ) start [2025-01-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227395', 'tblTempVendorCDR_20' ) end [2025-01-11 22:44:18] Production.INFO: ProcessCDR(1,14227395,1,1,2) [2025-01-11 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227395', 'tblTempUsageDetail_20' ) start [2025-01-11 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227395', 'tblTempUsageDetail_20' ) end [2025-01-11 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:44:21] Production.INFO: ==1478== Releasing lock... [2025-01-11 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:44:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:45:05 [end_date_ymd] => 2025-01-11 22:45:05 [RateCDR] => 1 ) [2025-01-11 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:45:05' and `end` < '2025-01-11 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:45:18] Production.INFO: count ==1220 [2025-01-11 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:45:05 - End Time 2025-01-11 22:45:05 [2025-01-11 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227400', 'tblTempUsageDetail_20' ) start [2025-01-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227400', 'tblTempUsageDetail_20' ) end [2025-01-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227400', 'tblTempVendorCDR_20' ) start [2025-01-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227400', 'tblTempVendorCDR_20' ) end [2025-01-11 22:45:18] Production.INFO: ProcessCDR(1,14227400,1,1,2) [2025-01-11 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227400', 'tblTempUsageDetail_20' ) start [2025-01-11 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227400', 'tblTempUsageDetail_20' ) end [2025-01-11 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:45:21] Production.INFO: ==1588== Releasing lock... [2025-01-11 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:46:05 [end_date_ymd] => 2025-01-11 22:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:46:05' and `end` < '2025-01-11 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-11 22:46:19] Production.INFO: count ==1218 [2025-01-11 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:46:05 - End Time 2025-01-11 22:46:05 [2025-01-11 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227405', 'tblTempUsageDetail_20' ) start [2025-01-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227405', 'tblTempUsageDetail_20' ) end [2025-01-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227405', 'tblTempVendorCDR_20' ) start [2025-01-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227405', 'tblTempVendorCDR_20' ) end [2025-01-11 22:46:19] Production.INFO: ProcessCDR(1,14227405,1,1,2) [2025-01-11 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227405', 'tblTempUsageDetail_20' ) start [2025-01-11 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227405', 'tblTempUsageDetail_20' ) end [2025-01-11 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:46:22] Production.INFO: ==1664== Releasing lock... [2025-01-11 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:47:05 [end_date_ymd] => 2025-01-11 22:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:47:05' and `end` < '2025-01-11 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-11 22:47:20] Production.INFO: count ==1216 [2025-01-11 22:47:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:47:05 - End Time 2025-01-11 22:47:05 [2025-01-11 22:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227410', 'tblTempUsageDetail_20' ) start [2025-01-11 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227410', 'tblTempUsageDetail_20' ) end [2025-01-11 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227410', 'tblTempVendorCDR_20' ) start [2025-01-11 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227410', 'tblTempVendorCDR_20' ) end [2025-01-11 22:47:20] Production.INFO: ProcessCDR(1,14227410,1,1,2) [2025-01-11 22:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227410', 'tblTempUsageDetail_20' ) start [2025-01-11 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227410', 'tblTempUsageDetail_20' ) end [2025-01-11 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:47:24] Production.INFO: ==1739== Releasing lock... [2025-01-11 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:47:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:48:06 [end_date_ymd] => 2025-01-11 22:48:06 [RateCDR] => 1 ) [2025-01-11 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:48:06' and `end` < '2025-01-11 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:48:19] Production.INFO: count ==1216 [2025-01-11 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:48:06 - End Time 2025-01-11 22:48:06 [2025-01-11 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227415', 'tblTempUsageDetail_20' ) start [2025-01-11 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227415', 'tblTempUsageDetail_20' ) end [2025-01-11 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227415', 'tblTempVendorCDR_20' ) start [2025-01-11 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227415', 'tblTempVendorCDR_20' ) end [2025-01-11 22:48:19] Production.INFO: ProcessCDR(1,14227415,1,1,2) [2025-01-11 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227415', 'tblTempUsageDetail_20' ) start [2025-01-11 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227415', 'tblTempUsageDetail_20' ) end [2025-01-11 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:48:22] Production.INFO: ==1828== Releasing lock... [2025-01-11 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:49:05 [end_date_ymd] => 2025-01-11 22:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:49:05' and `end` < '2025-01-11 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-11 22:49:21] Production.INFO: count ==1214 [2025-01-11 22:49:21] Production.ERROR: pbx CDR StartTime 2025-01-11 19:49:05 - End Time 2025-01-11 22:49:05 [2025-01-11 22:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227420', 'tblTempUsageDetail_20' ) start [2025-01-11 22:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227420', 'tblTempUsageDetail_20' ) end [2025-01-11 22:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227420', 'tblTempVendorCDR_20' ) start [2025-01-11 22:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227420', 'tblTempVendorCDR_20' ) end [2025-01-11 22:49:21] Production.INFO: ProcessCDR(1,14227420,1,1,2) [2025-01-11 22:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227420', 'tblTempUsageDetail_20' ) start [2025-01-11 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227420', 'tblTempUsageDetail_20' ) end [2025-01-11 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:49:24] Production.INFO: ==1909== Releasing lock... [2025-01-11 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:49:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:50:05 [end_date_ymd] => 2025-01-11 22:50:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:50:05' and `end` < '2025-01-11 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-11 22:50:18] Production.INFO: count ==1218 [2025-01-11 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:50:05 - End Time 2025-01-11 22:50:05 [2025-01-11 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227425', 'tblTempUsageDetail_20' ) start [2025-01-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227425', 'tblTempUsageDetail_20' ) end [2025-01-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227425', 'tblTempVendorCDR_20' ) start [2025-01-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227425', 'tblTempVendorCDR_20' ) end [2025-01-11 22:50:19] Production.INFO: ProcessCDR(1,14227425,1,1,2) [2025-01-11 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227425', 'tblTempUsageDetail_20' ) start [2025-01-11 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227425', 'tblTempUsageDetail_20' ) end [2025-01-11 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:50:22] Production.INFO: ==1996== Releasing lock... [2025-01-11 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-11 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:51:04 [end_date_ymd] => 2025-01-11 22:51:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:51:04' and `end` < '2025-01-11 22: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-11 22:51:19] Production.INFO: count ==1163 [2025-01-11 22:51:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:51:04 - End Time 2025-01-11 22:51:04 [2025-01-11 22:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227431', 'tblTempUsageDetail_20' ) start [2025-01-11 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227431', 'tblTempUsageDetail_20' ) end [2025-01-11 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227431', 'tblTempVendorCDR_20' ) start [2025-01-11 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227431', 'tblTempVendorCDR_20' ) end [2025-01-11 22:51:20] Production.INFO: ProcessCDR(1,14227431,1,1,2) [2025-01-11 22:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227431', 'tblTempUsageDetail_20' ) start [2025-01-11 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227431', 'tblTempUsageDetail_20' ) end [2025-01-11 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:51:23] Production.INFO: ==2079== Releasing lock... [2025-01-11 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:52:05 [end_date_ymd] => 2025-01-11 22:52:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:52:05' and `end` < '2025-01-11 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-11 22:52:20] Production.INFO: count ==1161 [2025-01-11 22:52:20] Production.ERROR: pbx CDR StartTime 2025-01-11 19:52:05 - End Time 2025-01-11 22:52:05 [2025-01-11 22:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227436', 'tblTempUsageDetail_20' ) start [2025-01-11 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227436', 'tblTempUsageDetail_20' ) end [2025-01-11 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227436', 'tblTempVendorCDR_20' ) start [2025-01-11 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227436', 'tblTempVendorCDR_20' ) end [2025-01-11 22:52:20] Production.INFO: ProcessCDR(1,14227436,1,1,2) [2025-01-11 22:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227436', 'tblTempUsageDetail_20' ) start [2025-01-11 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227436', 'tblTempUsageDetail_20' ) end [2025-01-11 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:52:23] Production.INFO: ==2170== Releasing lock... [2025-01-11 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:52:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:53:04 [end_date_ymd] => 2025-01-11 22:53:04 [RateCDR] => 1 ) [2025-01-11 22: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-11 19:53:04' and `end` < '2025-01-11 22: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-11 22:53:18] Production.INFO: count ==1160 [2025-01-11 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:53:04 - End Time 2025-01-11 22:53:04 [2025-01-11 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227441', 'tblTempUsageDetail_20' ) start [2025-01-11 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227441', 'tblTempUsageDetail_20' ) end [2025-01-11 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227441', 'tblTempVendorCDR_20' ) start [2025-01-11 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227441', 'tblTempVendorCDR_20' ) end [2025-01-11 22:53:18] Production.INFO: ProcessCDR(1,14227441,1,1,2) [2025-01-11 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227441', 'tblTempUsageDetail_20' ) start [2025-01-11 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227441', 'tblTempUsageDetail_20' ) end [2025-01-11 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:53:21] Production.INFO: ==2252== Releasing lock... [2025-01-11 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:54:05 [end_date_ymd] => 2025-01-11 22:54:05 [RateCDR] => 1 ) [2025-01-11 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:54:05' and `end` < '2025-01-11 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:54:19] Production.INFO: count ==1152 [2025-01-11 22:54:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:54:05 - End Time 2025-01-11 22:54:05 [2025-01-11 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227446', 'tblTempUsageDetail_20' ) start [2025-01-11 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227446', 'tblTempUsageDetail_20' ) end [2025-01-11 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227446', 'tblTempVendorCDR_20' ) start [2025-01-11 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227446', 'tblTempVendorCDR_20' ) end [2025-01-11 22:54:19] Production.INFO: ProcessCDR(1,14227446,1,1,2) [2025-01-11 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227446', 'tblTempUsageDetail_20' ) start [2025-01-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227446', 'tblTempUsageDetail_20' ) end [2025-01-11 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:54:22] Production.INFO: ==2377== Releasing lock... [2025-01-11 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:55:05 [end_date_ymd] => 2025-01-11 22:55:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:55:05' and `end` < '2025-01-11 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-11 22:55:18] Production.INFO: count ==1142 [2025-01-11 22:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:55:05 - End Time 2025-01-11 22:55:05 [2025-01-11 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227451', 'tblTempUsageDetail_20' ) start [2025-01-11 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227451', 'tblTempUsageDetail_20' ) end [2025-01-11 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227451', 'tblTempVendorCDR_20' ) start [2025-01-11 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227451', 'tblTempVendorCDR_20' ) end [2025-01-11 22:55:19] Production.INFO: ProcessCDR(1,14227451,1,1,2) [2025-01-11 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227451', 'tblTempUsageDetail_20' ) start [2025-01-11 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227451', 'tblTempUsageDetail_20' ) end [2025-01-11 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:55:22] Production.INFO: ==2460== Releasing lock... [2025-01-11 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:56:05 [end_date_ymd] => 2025-01-11 22:56:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:56:05' and `end` < '2025-01-11 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-11 22:56:19] Production.INFO: count ==1142 [2025-01-11 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:56:05 - End Time 2025-01-11 22:56:05 [2025-01-11 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227456', 'tblTempUsageDetail_20' ) start [2025-01-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227456', 'tblTempUsageDetail_20' ) end [2025-01-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227456', 'tblTempVendorCDR_20' ) start [2025-01-11 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227456', 'tblTempVendorCDR_20' ) end [2025-01-11 22:56:19] Production.INFO: ProcessCDR(1,14227456,1,1,2) [2025-01-11 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227456', 'tblTempUsageDetail_20' ) start [2025-01-11 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227456', 'tblTempUsageDetail_20' ) end [2025-01-11 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:56:22] Production.INFO: ==2564== Releasing lock... [2025-01-11 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:56:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:57:05 [end_date_ymd] => 2025-01-11 22:57:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:57:05' and `end` < '2025-01-11 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-11 22:57:19] Production.INFO: count ==1137 [2025-01-11 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 19:57:05 - End Time 2025-01-11 22:57:05 [2025-01-11 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227461', 'tblTempUsageDetail_20' ) start [2025-01-11 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227461', 'tblTempUsageDetail_20' ) end [2025-01-11 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227461', 'tblTempVendorCDR_20' ) start [2025-01-11 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227461', 'tblTempVendorCDR_20' ) end [2025-01-11 22:57:19] Production.INFO: ProcessCDR(1,14227461,1,1,2) [2025-01-11 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227461', 'tblTempUsageDetail_20' ) start [2025-01-11 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227461', 'tblTempUsageDetail_20' ) end [2025-01-11 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:57:22] Production.INFO: ==2663== Releasing lock... [2025-01-11 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:57:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:58:05 [end_date_ymd] => 2025-01-11 22:58:05 [RateCDR] => 1 ) [2025-01-11 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 19:58:05' and `end` < '2025-01-11 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 22:58:18] Production.INFO: count ==1133 [2025-01-11 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:58:05 - End Time 2025-01-11 22:58:05 [2025-01-11 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227466', 'tblTempUsageDetail_20' ) start [2025-01-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227466', 'tblTempUsageDetail_20' ) end [2025-01-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227466', 'tblTempVendorCDR_20' ) start [2025-01-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227466', 'tblTempVendorCDR_20' ) end [2025-01-11 22:58:18] Production.INFO: ProcessCDR(1,14227466,1,1,2) [2025-01-11 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227466', 'tblTempUsageDetail_20' ) start [2025-01-11 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227466', 'tblTempUsageDetail_20' ) end [2025-01-11 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:58:21] Production.INFO: ==2765== Releasing lock... [2025-01-11 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-11 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 19:59:05 [end_date_ymd] => 2025-01-11 22:59:05 [RateCDR] => 1 ) [2025-01-11 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-11 19:59:05' and `end` < '2025-01-11 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-11 22:59:18] Production.INFO: count ==1130 [2025-01-11 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-11 19:59:05 - End Time 2025-01-11 22:59:05 [2025-01-11 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227471', 'tblTempUsageDetail_20' ) start [2025-01-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227471', 'tblTempUsageDetail_20' ) end [2025-01-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227471', 'tblTempVendorCDR_20' ) start [2025-01-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227471', 'tblTempVendorCDR_20' ) end [2025-01-11 22:59:18] Production.INFO: ProcessCDR(1,14227471,1,1,2) [2025-01-11 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227471', 'tblTempUsageDetail_20' ) start [2025-01-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227471', 'tblTempUsageDetail_20' ) end [2025-01-11 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 22:59:21] Production.INFO: ==2865== Releasing lock... [2025-01-11 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 22:59:21] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:00:05 [end_date_ymd] => 2025-01-11 23:00:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:00:05' and `end` < '2025-01-11 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-11 23:00:18] Production.INFO: count ==1126 [2025-01-11 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:00:05 - End Time 2025-01-11 23:00:05 [2025-01-11 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227476', 'tblTempUsageDetail_20' ) start [2025-01-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227476', 'tblTempUsageDetail_20' ) end [2025-01-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227476', 'tblTempVendorCDR_20' ) start [2025-01-11 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227476', 'tblTempVendorCDR_20' ) end [2025-01-11 23:00:18] Production.INFO: ProcessCDR(1,14227476,1,1,2) [2025-01-11 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227476', 'tblTempUsageDetail_20' ) start [2025-01-11 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227476', 'tblTempUsageDetail_20' ) end [2025-01-11 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:00:21] Production.INFO: ==2969== Releasing lock... [2025-01-11 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:00:21] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:01:05 [end_date_ymd] => 2025-01-11 23:01:05 [RateCDR] => 1 ) [2025-01-11 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:01:05' and `end` < '2025-01-11 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:01:19] Production.INFO: count ==1115 [2025-01-11 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:01:05 - End Time 2025-01-11 23:01:05 [2025-01-11 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227482', 'tblTempUsageDetail_20' ) start [2025-01-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227482', 'tblTempUsageDetail_20' ) end [2025-01-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227482', 'tblTempVendorCDR_20' ) start [2025-01-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227482', 'tblTempVendorCDR_20' ) end [2025-01-11 23:01:19] Production.INFO: ProcessCDR(1,14227482,1,1,2) [2025-01-11 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227482', 'tblTempUsageDetail_20' ) start [2025-01-11 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227482', 'tblTempUsageDetail_20' ) end [2025-01-11 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:01:22] Production.INFO: ==3162== Releasing lock... [2025-01-11 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:01:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:02:05 [end_date_ymd] => 2025-01-11 23:02:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:02:05' and `end` < '2025-01-11 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-11 23:02:19] Production.INFO: count ==1112 [2025-01-11 23:02:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:02:05 - End Time 2025-01-11 23:02:05 [2025-01-11 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227487', 'tblTempUsageDetail_20' ) start [2025-01-11 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227487', 'tblTempUsageDetail_20' ) end [2025-01-11 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227487', 'tblTempVendorCDR_20' ) start [2025-01-11 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227487', 'tblTempVendorCDR_20' ) end [2025-01-11 23:02:19] Production.INFO: ProcessCDR(1,14227487,1,1,2) [2025-01-11 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227487', 'tblTempUsageDetail_20' ) start [2025-01-11 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227487', 'tblTempUsageDetail_20' ) end [2025-01-11 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:02:22] Production.INFO: ==3265== Releasing lock... [2025-01-11 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:02:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:03:04 [end_date_ymd] => 2025-01-11 23:03:04 [RateCDR] => 1 ) [2025-01-11 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:03:04' and `end` < '2025-01-11 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:03:19] Production.INFO: count ==1111 [2025-01-11 23:03:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:03:04 - End Time 2025-01-11 23:03:04 [2025-01-11 23:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227492', 'tblTempUsageDetail_20' ) start [2025-01-11 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227492', 'tblTempUsageDetail_20' ) end [2025-01-11 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227492', 'tblTempVendorCDR_20' ) start [2025-01-11 23:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227492', 'tblTempVendorCDR_20' ) end [2025-01-11 23:03:20] Production.INFO: ProcessCDR(1,14227492,1,1,2) [2025-01-11 23:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227492', 'tblTempUsageDetail_20' ) start [2025-01-11 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227492', 'tblTempUsageDetail_20' ) end [2025-01-11 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:03:23] Production.INFO: ==3370== Releasing lock... [2025-01-11 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:03:23] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:04:04 [end_date_ymd] => 2025-01-11 23:04:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:04:04' and `end` < '2025-01-11 23: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-11 23:04:17] Production.INFO: count ==1111 [2025-01-11 23:04:17] Production.ERROR: pbx CDR StartTime 2025-01-11 20:04:04 - End Time 2025-01-11 23:04:04 [2025-01-11 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227497', 'tblTempUsageDetail_20' ) start [2025-01-11 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227497', 'tblTempUsageDetail_20' ) end [2025-01-11 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227497', 'tblTempVendorCDR_20' ) start [2025-01-11 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227497', 'tblTempVendorCDR_20' ) end [2025-01-11 23:04:17] Production.INFO: ProcessCDR(1,14227497,1,1,2) [2025-01-11 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227497', 'tblTempUsageDetail_20' ) start [2025-01-11 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227497', 'tblTempUsageDetail_20' ) end [2025-01-11 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:04:21] Production.INFO: ==3468== Releasing lock... [2025-01-11 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:04:21] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:05:05 [end_date_ymd] => 2025-01-11 23:05:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:05:05' and `end` < '2025-01-11 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-11 23:05:19] Production.INFO: count ==1111 [2025-01-11 23:05:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:05:05 - End Time 2025-01-11 23:05:05 [2025-01-11 23:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227502', 'tblTempUsageDetail_20' ) start [2025-01-11 23:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227502', 'tblTempUsageDetail_20' ) end [2025-01-11 23:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227502', 'tblTempVendorCDR_20' ) start [2025-01-11 23:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227502', 'tblTempVendorCDR_20' ) end [2025-01-11 23:05:20] Production.INFO: ProcessCDR(1,14227502,1,1,2) [2025-01-11 23:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227502', 'tblTempUsageDetail_20' ) start [2025-01-11 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227502', 'tblTempUsageDetail_20' ) end [2025-01-11 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:05:23] Production.INFO: ==3647== Releasing lock... [2025-01-11 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:05:23] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:06:04 [end_date_ymd] => 2025-01-11 23:06:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:06:04' and `end` < '2025-01-11 23: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-11 23:06:18] Production.INFO: count ==1110 [2025-01-11 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:06:04 - End Time 2025-01-11 23:06:04 [2025-01-11 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227507', 'tblTempUsageDetail_20' ) start [2025-01-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227507', 'tblTempUsageDetail_20' ) end [2025-01-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227507', 'tblTempVendorCDR_20' ) start [2025-01-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227507', 'tblTempVendorCDR_20' ) end [2025-01-11 23:06:18] Production.INFO: ProcessCDR(1,14227507,1,1,2) [2025-01-11 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227507', 'tblTempUsageDetail_20' ) start [2025-01-11 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227507', 'tblTempUsageDetail_20' ) end [2025-01-11 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:06:21] Production.INFO: ==3752== Releasing lock... [2025-01-11 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:06:21] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:07:04 [end_date_ymd] => 2025-01-11 23:07:04 [RateCDR] => 1 ) [2025-01-11 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-11 20:07:04' and `end` < '2025-01-11 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-11 23:07:19] Production.INFO: count ==1110 [2025-01-11 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:07:04 - End Time 2025-01-11 23:07:04 [2025-01-11 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227512', 'tblTempUsageDetail_20' ) start [2025-01-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227512', 'tblTempUsageDetail_20' ) end [2025-01-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227512', 'tblTempVendorCDR_20' ) start [2025-01-11 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227512', 'tblTempVendorCDR_20' ) end [2025-01-11 23:07:19] Production.INFO: ProcessCDR(1,14227512,1,1,2) [2025-01-11 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227512', 'tblTempUsageDetail_20' ) start [2025-01-11 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227512', 'tblTempUsageDetail_20' ) end [2025-01-11 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:07:22] Production.INFO: ==3856== Releasing lock... [2025-01-11 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:07:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:08:05 [end_date_ymd] => 2025-01-11 23:08:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:08:05' and `end` < '2025-01-11 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-11 23:08:19] Production.INFO: count ==1112 [2025-01-11 23:08:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:08:05 - End Time 2025-01-11 23:08:05 [2025-01-11 23:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227517', 'tblTempUsageDetail_20' ) start [2025-01-11 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227517', 'tblTempUsageDetail_20' ) end [2025-01-11 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227517', 'tblTempVendorCDR_20' ) start [2025-01-11 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227517', 'tblTempVendorCDR_20' ) end [2025-01-11 23:08:20] Production.INFO: ProcessCDR(1,14227517,1,1,2) [2025-01-11 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227517', 'tblTempUsageDetail_20' ) start [2025-01-11 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227517', 'tblTempUsageDetail_20' ) end [2025-01-11 23:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:08:24] Production.INFO: ==4030== Releasing lock... [2025-01-11 23:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:08:24] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:09:04 [end_date_ymd] => 2025-01-11 23:09:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:09:04' and `end` < '2025-01-11 23: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-11 23:09:17] Production.INFO: count ==1112 [2025-01-11 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:09:04 - End Time 2025-01-11 23:09:04 [2025-01-11 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227522', 'tblTempUsageDetail_20' ) start [2025-01-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227522', 'tblTempUsageDetail_20' ) end [2025-01-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227522', 'tblTempVendorCDR_20' ) start [2025-01-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227522', 'tblTempVendorCDR_20' ) end [2025-01-11 23:09:18] Production.INFO: ProcessCDR(1,14227522,1,1,2) [2025-01-11 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227522', 'tblTempUsageDetail_20' ) start [2025-01-11 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227522', 'tblTempUsageDetail_20' ) end [2025-01-11 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:09:22] Production.INFO: ==4173== Releasing lock... [2025-01-11 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:09:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:10:05 [end_date_ymd] => 2025-01-11 23:10:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:10:05' and `end` < '2025-01-11 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-11 23:10:18] Production.INFO: count ==1108 [2025-01-11 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:10:05 - End Time 2025-01-11 23:10:05 [2025-01-11 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227528', 'tblTempUsageDetail_20' ) start [2025-01-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227528', 'tblTempUsageDetail_20' ) end [2025-01-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227528', 'tblTempVendorCDR_20' ) start [2025-01-11 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227528', 'tblTempVendorCDR_20' ) end [2025-01-11 23:10:18] Production.INFO: ProcessCDR(1,14227528,1,1,2) [2025-01-11 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227528', 'tblTempUsageDetail_20' ) start [2025-01-11 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227528', 'tblTempUsageDetail_20' ) end [2025-01-11 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:10:22] Production.INFO: ==4277== Releasing lock... [2025-01-11 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:10:22] Production.INFO: 36 MB #Memory Used# [2025-01-11 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:11:04 [end_date_ymd] => 2025-01-11 23:11:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:11:04' and `end` < '2025-01-11 23: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-11 23:11:17] Production.INFO: count ==1072 [2025-01-11 23:11:17] Production.ERROR: pbx CDR StartTime 2025-01-11 20:11:04 - End Time 2025-01-11 23:11:04 [2025-01-11 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227533', 'tblTempUsageDetail_20' ) start [2025-01-11 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227533', 'tblTempUsageDetail_20' ) end [2025-01-11 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227533', 'tblTempVendorCDR_20' ) start [2025-01-11 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227533', 'tblTempVendorCDR_20' ) end [2025-01-11 23:11:17] Production.INFO: ProcessCDR(1,14227533,1,1,2) [2025-01-11 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227533', 'tblTempUsageDetail_20' ) start [2025-01-11 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227533', 'tblTempUsageDetail_20' ) end [2025-01-11 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:11:20] Production.INFO: ==4388== Releasing lock... [2025-01-11 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:11:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:12:05 [end_date_ymd] => 2025-01-11 23:12:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:12:05' and `end` < '2025-01-11 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-11 23:12:20] Production.INFO: count ==1071 [2025-01-11 23:12:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:12:05 - End Time 2025-01-11 23:12:05 [2025-01-11 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227538', 'tblTempUsageDetail_20' ) start [2025-01-11 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227538', 'tblTempUsageDetail_20' ) end [2025-01-11 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227538', 'tblTempVendorCDR_20' ) start [2025-01-11 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227538', 'tblTempVendorCDR_20' ) end [2025-01-11 23:12:20] Production.INFO: ProcessCDR(1,14227538,1,1,2) [2025-01-11 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227538', 'tblTempUsageDetail_20' ) start [2025-01-11 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227538', 'tblTempUsageDetail_20' ) end [2025-01-11 23:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:12:24] Production.INFO: ==4582== Releasing lock... [2025-01-11 23:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:12:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:13:05 [end_date_ymd] => 2025-01-11 23:13:05 [RateCDR] => 1 ) [2025-01-11 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:13:05' and `end` < '2025-01-11 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:13:21] Production.INFO: count ==1070 [2025-01-11 23:13:21] Production.ERROR: pbx CDR StartTime 2025-01-11 20:13:05 - End Time 2025-01-11 23:13:05 [2025-01-11 23:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227543', 'tblTempUsageDetail_20' ) start [2025-01-11 23:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227543', 'tblTempUsageDetail_20' ) end [2025-01-11 23:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227543', 'tblTempVendorCDR_20' ) start [2025-01-11 23:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227543', 'tblTempVendorCDR_20' ) end [2025-01-11 23:13:21] Production.INFO: ProcessCDR(1,14227543,1,1,2) [2025-01-11 23:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227543', 'tblTempUsageDetail_20' ) start [2025-01-11 23:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227543', 'tblTempUsageDetail_20' ) end [2025-01-11 23:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:13:24] Production.INFO: ==4686== Releasing lock... [2025-01-11 23:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:13:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:14:04 [end_date_ymd] => 2025-01-11 23:14:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:14:04' and `end` < '2025-01-11 23: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-11 23:14:19] Production.INFO: count ==1068 [2025-01-11 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:14:04 - End Time 2025-01-11 23:14:04 [2025-01-11 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227548', 'tblTempUsageDetail_20' ) start [2025-01-11 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227548', 'tblTempUsageDetail_20' ) end [2025-01-11 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227548', 'tblTempVendorCDR_20' ) start [2025-01-11 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227548', 'tblTempVendorCDR_20' ) end [2025-01-11 23:14:19] Production.INFO: ProcessCDR(1,14227548,1,1,2) [2025-01-11 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227548', 'tblTempUsageDetail_20' ) start [2025-01-11 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227548', 'tblTempUsageDetail_20' ) end [2025-01-11 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:14:22] Production.INFO: ==4779== Releasing lock... [2025-01-11 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:14:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:15:05 [end_date_ymd] => 2025-01-11 23:15:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:15:05' and `end` < '2025-01-11 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-11 23:15:19] Production.INFO: count ==1070 [2025-01-11 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:15:05 - End Time 2025-01-11 23:15:05 [2025-01-11 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227553', 'tblTempUsageDetail_20' ) start [2025-01-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227553', 'tblTempUsageDetail_20' ) end [2025-01-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227553', 'tblTempVendorCDR_20' ) start [2025-01-11 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227553', 'tblTempVendorCDR_20' ) end [2025-01-11 23:15:19] Production.INFO: ProcessCDR(1,14227553,1,1,2) [2025-01-11 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227553', 'tblTempUsageDetail_20' ) start [2025-01-11 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227553', 'tblTempUsageDetail_20' ) end [2025-01-11 23:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:15:24] Production.INFO: ==4950== Releasing lock... [2025-01-11 23:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:15:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:16:04 [end_date_ymd] => 2025-01-11 23:16:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:16:04' and `end` < '2025-01-11 23: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-11 23:16:18] Production.INFO: count ==1074 [2025-01-11 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:16:04 - End Time 2025-01-11 23:16:04 [2025-01-11 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227558', 'tblTempUsageDetail_20' ) start [2025-01-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227558', 'tblTempUsageDetail_20' ) end [2025-01-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227558', 'tblTempVendorCDR_20' ) start [2025-01-11 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227558', 'tblTempVendorCDR_20' ) end [2025-01-11 23:16:18] Production.INFO: ProcessCDR(1,14227558,1,1,2) [2025-01-11 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227558', 'tblTempUsageDetail_20' ) start [2025-01-11 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227558', 'tblTempUsageDetail_20' ) end [2025-01-11 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:16:21] Production.INFO: ==5037== Releasing lock... [2025-01-11 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:16:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:17:05 [end_date_ymd] => 2025-01-11 23:17:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:17:05' and `end` < '2025-01-11 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-11 23:17:18] Production.INFO: count ==1074 [2025-01-11 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:17:05 - End Time 2025-01-11 23:17:05 [2025-01-11 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227563', 'tblTempUsageDetail_20' ) start [2025-01-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227563', 'tblTempUsageDetail_20' ) end [2025-01-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227563', 'tblTempVendorCDR_20' ) start [2025-01-11 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227563', 'tblTempVendorCDR_20' ) end [2025-01-11 23:17:18] Production.INFO: ProcessCDR(1,14227563,1,1,2) [2025-01-11 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227563', 'tblTempUsageDetail_20' ) start [2025-01-11 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227563', 'tblTempUsageDetail_20' ) end [2025-01-11 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:17:21] Production.INFO: ==5127== Releasing lock... [2025-01-11 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:18:05 [end_date_ymd] => 2025-01-11 23:18:05 [RateCDR] => 1 ) [2025-01-11 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:18:05' and `end` < '2025-01-11 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:18:18] Production.INFO: count ==1075 [2025-01-11 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:18:05 - End Time 2025-01-11 23:18:05 [2025-01-11 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227568', 'tblTempUsageDetail_20' ) start [2025-01-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227568', 'tblTempUsageDetail_20' ) end [2025-01-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227568', 'tblTempVendorCDR_20' ) start [2025-01-11 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227568', 'tblTempVendorCDR_20' ) end [2025-01-11 23:18:19] Production.INFO: ProcessCDR(1,14227568,1,1,2) [2025-01-11 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227568', 'tblTempUsageDetail_20' ) start [2025-01-11 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227568', 'tblTempUsageDetail_20' ) end [2025-01-11 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:18:23] Production.INFO: ==5211== Releasing lock... [2025-01-11 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:18:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-11 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:19:04 [end_date_ymd] => 2025-01-11 23:19:04 [RateCDR] => 1 ) [2025-01-11 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:19:04' and `end` < '2025-01-11 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:19:17] Production.INFO: count ==1072 [2025-01-11 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-11 20:19:04 - End Time 2025-01-11 23:19:04 [2025-01-11 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227573', 'tblTempUsageDetail_20' ) start [2025-01-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227573', 'tblTempUsageDetail_20' ) end [2025-01-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227573', 'tblTempVendorCDR_20' ) start [2025-01-11 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227573', 'tblTempVendorCDR_20' ) end [2025-01-11 23:19:17] Production.INFO: ProcessCDR(1,14227573,1,1,2) [2025-01-11 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227573', 'tblTempUsageDetail_20' ) start [2025-01-11 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227573', 'tblTempUsageDetail_20' ) end [2025-01-11 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:19:22] Production.INFO: ==5295== Releasing lock... [2025-01-11 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:20:06 [end_date_ymd] => 2025-01-11 23:20:06 [RateCDR] => 1 ) [2025-01-11 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:20:06' and `end` < '2025-01-11 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:20:19] Production.INFO: count ==1071 [2025-01-11 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:20:06 - End Time 2025-01-11 23:20:06 [2025-01-11 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227578', 'tblTempUsageDetail_20' ) start [2025-01-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227578', 'tblTempUsageDetail_20' ) end [2025-01-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227578', 'tblTempVendorCDR_20' ) start [2025-01-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227578', 'tblTempVendorCDR_20' ) end [2025-01-11 23:20:19] Production.INFO: ProcessCDR(1,14227578,1,1,2) [2025-01-11 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227578', 'tblTempUsageDetail_20' ) start [2025-01-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227578', 'tblTempUsageDetail_20' ) end [2025-01-11 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:20:23] Production.INFO: ==5380== Releasing lock... [2025-01-11 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:21:04 [end_date_ymd] => 2025-01-11 23:21:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:21:04' and `end` < '2025-01-11 23: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-11 23:21:18] Production.INFO: count ==1067 [2025-01-11 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:21:04 - End Time 2025-01-11 23:21:04 [2025-01-11 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227584', 'tblTempUsageDetail_20' ) start [2025-01-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227584', 'tblTempUsageDetail_20' ) end [2025-01-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227584', 'tblTempVendorCDR_20' ) start [2025-01-11 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227584', 'tblTempVendorCDR_20' ) end [2025-01-11 23:21:18] Production.INFO: ProcessCDR(1,14227584,1,1,2) [2025-01-11 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227584', 'tblTempUsageDetail_20' ) start [2025-01-11 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227584', 'tblTempUsageDetail_20' ) end [2025-01-11 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:21:21] Production.INFO: ==5464== Releasing lock... [2025-01-11 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:21:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:22:05 [end_date_ymd] => 2025-01-11 23:22:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:22:05' and `end` < '2025-01-11 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-11 23:22:21] Production.INFO: count ==1061 [2025-01-11 23:22:21] Production.ERROR: pbx CDR StartTime 2025-01-11 20:22:05 - End Time 2025-01-11 23:22:05 [2025-01-11 23:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227589', 'tblTempUsageDetail_20' ) start [2025-01-11 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227589', 'tblTempUsageDetail_20' ) end [2025-01-11 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227589', 'tblTempVendorCDR_20' ) start [2025-01-11 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227589', 'tblTempVendorCDR_20' ) end [2025-01-11 23:22:21] Production.INFO: ProcessCDR(1,14227589,1,1,2) [2025-01-11 23:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227589', 'tblTempUsageDetail_20' ) start [2025-01-11 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227589', 'tblTempUsageDetail_20' ) end [2025-01-11 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:22:24] Production.INFO: ==5549== Releasing lock... [2025-01-11 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:22:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:23:04 [end_date_ymd] => 2025-01-11 23:23:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:23:04' and `end` < '2025-01-11 23: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-11 23:23:18] Production.INFO: count ==1058 [2025-01-11 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:23:04 - End Time 2025-01-11 23:23:04 [2025-01-11 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227594', 'tblTempUsageDetail_20' ) start [2025-01-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227594', 'tblTempUsageDetail_20' ) end [2025-01-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227594', 'tblTempVendorCDR_20' ) start [2025-01-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227594', 'tblTempVendorCDR_20' ) end [2025-01-11 23:23:19] Production.INFO: ProcessCDR(1,14227594,1,1,2) [2025-01-11 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227594', 'tblTempUsageDetail_20' ) start [2025-01-11 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227594', 'tblTempUsageDetail_20' ) end [2025-01-11 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:23:22] Production.INFO: ==5634== Releasing lock... [2025-01-11 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:23:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:24:05 [end_date_ymd] => 2025-01-11 23:24:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:24:05' and `end` < '2025-01-11 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-11 23:24:18] Production.INFO: count ==1046 [2025-01-11 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:24:05 - End Time 2025-01-11 23:24:05 [2025-01-11 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227599', 'tblTempUsageDetail_20' ) start [2025-01-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227599', 'tblTempUsageDetail_20' ) end [2025-01-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227599', 'tblTempVendorCDR_20' ) start [2025-01-11 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227599', 'tblTempVendorCDR_20' ) end [2025-01-11 23:24:18] Production.INFO: ProcessCDR(1,14227599,1,1,2) [2025-01-11 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227599', 'tblTempUsageDetail_20' ) start [2025-01-11 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227599', 'tblTempUsageDetail_20' ) end [2025-01-11 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:24:21] Production.INFO: ==5719== Releasing lock... [2025-01-11 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-11 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:25:05 [end_date_ymd] => 2025-01-11 23:25:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:25:05' and `end` < '2025-01-11 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-11 23:25:19] Production.INFO: count ==1035 [2025-01-11 23:25:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:25:05 - End Time 2025-01-11 23:25:05 [2025-01-11 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227604', 'tblTempUsageDetail_20' ) start [2025-01-11 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227604', 'tblTempUsageDetail_20' ) end [2025-01-11 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227604', 'tblTempVendorCDR_20' ) start [2025-01-11 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227604', 'tblTempVendorCDR_20' ) end [2025-01-11 23:25:19] Production.INFO: ProcessCDR(1,14227604,1,1,2) [2025-01-11 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227604', 'tblTempUsageDetail_20' ) start [2025-01-11 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227604', 'tblTempUsageDetail_20' ) end [2025-01-11 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:25:22] Production.INFO: ==5843== Releasing lock... [2025-01-11 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:26:04 [end_date_ymd] => 2025-01-11 23:26:04 [RateCDR] => 1 ) [2025-01-11 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:26:04' and `end` < '2025-01-11 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:26:18] Production.INFO: count ==1031 [2025-01-11 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:26:04 - End Time 2025-01-11 23:26:04 [2025-01-11 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227609', 'tblTempUsageDetail_20' ) start [2025-01-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227609', 'tblTempUsageDetail_20' ) end [2025-01-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227609', 'tblTempVendorCDR_20' ) start [2025-01-11 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227609', 'tblTempVendorCDR_20' ) end [2025-01-11 23:26:19] Production.INFO: ProcessCDR(1,14227609,1,1,2) [2025-01-11 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227609', 'tblTempUsageDetail_20' ) start [2025-01-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227609', 'tblTempUsageDetail_20' ) end [2025-01-11 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:26:22] Production.INFO: ==5923== Releasing lock... [2025-01-11 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:27:05 [end_date_ymd] => 2025-01-11 23:27:05 [RateCDR] => 1 ) [2025-01-11 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:27:05' and `end` < '2025-01-11 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:27:18] Production.INFO: count ==1023 [2025-01-11 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:27:05 - End Time 2025-01-11 23:27:05 [2025-01-11 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227614', 'tblTempUsageDetail_20' ) start [2025-01-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227614', 'tblTempUsageDetail_20' ) end [2025-01-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227614', 'tblTempVendorCDR_20' ) start [2025-01-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227614', 'tblTempVendorCDR_20' ) end [2025-01-11 23:27:18] Production.INFO: ProcessCDR(1,14227614,1,1,2) [2025-01-11 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227614', 'tblTempUsageDetail_20' ) start [2025-01-11 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227614', 'tblTempUsageDetail_20' ) end [2025-01-11 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:27:23] Production.INFO: ==6008== Releasing lock... [2025-01-11 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:27:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:28:04 [end_date_ymd] => 2025-01-11 23:28:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:28:04' and `end` < '2025-01-11 23: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-11 23:28:19] Production.INFO: count ==1022 [2025-01-11 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:28:04 - End Time 2025-01-11 23:28:04 [2025-01-11 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227619', 'tblTempUsageDetail_20' ) start [2025-01-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227619', 'tblTempUsageDetail_20' ) end [2025-01-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227619', 'tblTempVendorCDR_20' ) start [2025-01-11 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227619', 'tblTempVendorCDR_20' ) end [2025-01-11 23:28:19] Production.INFO: ProcessCDR(1,14227619,1,1,2) [2025-01-11 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227619', 'tblTempUsageDetail_20' ) start [2025-01-11 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227619', 'tblTempUsageDetail_20' ) end [2025-01-11 23:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:28:24] Production.INFO: ==6089== Releasing lock... [2025-01-11 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:28:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:29:05 [end_date_ymd] => 2025-01-11 23:29:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:29:05' and `end` < '2025-01-11 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-11 23:29:20] Production.INFO: count ==1021 [2025-01-11 23:29:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:29:05 - End Time 2025-01-11 23:29:05 [2025-01-11 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227624', 'tblTempUsageDetail_20' ) start [2025-01-11 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227624', 'tblTempUsageDetail_20' ) end [2025-01-11 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227624', 'tblTempVendorCDR_20' ) start [2025-01-11 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227624', 'tblTempVendorCDR_20' ) end [2025-01-11 23:29:20] Production.INFO: ProcessCDR(1,14227624,1,1,2) [2025-01-11 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227624', 'tblTempUsageDetail_20' ) start [2025-01-11 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227624', 'tblTempUsageDetail_20' ) end [2025-01-11 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:29:23] Production.INFO: ==6176== Releasing lock... [2025-01-11 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:29:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:30:06 [end_date_ymd] => 2025-01-11 23:30:06 [RateCDR] => 1 ) [2025-01-11 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:30:06' and `end` < '2025-01-11 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:30:19] Production.INFO: count ==1020 [2025-01-11 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:30:06 - End Time 2025-01-11 23:30:06 [2025-01-11 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227630', 'tblTempUsageDetail_20' ) start [2025-01-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227630', 'tblTempUsageDetail_20' ) end [2025-01-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227630', 'tblTempVendorCDR_20' ) start [2025-01-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227630', 'tblTempVendorCDR_20' ) end [2025-01-11 23:30:19] Production.INFO: ProcessCDR(1,14227630,1,1,2) [2025-01-11 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227630', 'tblTempUsageDetail_20' ) start [2025-01-11 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227630', 'tblTempUsageDetail_20' ) end [2025-01-11 23:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:30:24] Production.INFO: ==6262== Releasing lock... [2025-01-11 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:30:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-11 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:31:05 [end_date_ymd] => 2025-01-11 23:31:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:31:05' and `end` < '2025-01-11 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-11 23:31:21] Production.INFO: count ==989 [2025-01-11 23:31:21] Production.ERROR: pbx CDR StartTime 2025-01-11 20:31:05 - End Time 2025-01-11 23:31:05 [2025-01-11 23:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227635', 'tblTempUsageDetail_20' ) start [2025-01-11 23:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227635', 'tblTempUsageDetail_20' ) end [2025-01-11 23:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227635', 'tblTempVendorCDR_20' ) start [2025-01-11 23:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227635', 'tblTempVendorCDR_20' ) end [2025-01-11 23:31:21] Production.INFO: ProcessCDR(1,14227635,1,1,2) [2025-01-11 23:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227635', 'tblTempUsageDetail_20' ) start [2025-01-11 23:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227635', 'tblTempUsageDetail_20' ) end [2025-01-11 23:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:31:25] Production.INFO: ==6346== Releasing lock... [2025-01-11 23:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:31:25] Production.INFO: 35 MB #Memory Used# [2025-01-11 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:32:05 [end_date_ymd] => 2025-01-11 23:32:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:32:05' and `end` < '2025-01-11 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-11 23:32:18] Production.INFO: count ==986 [2025-01-11 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:32:05 - End Time 2025-01-11 23:32:05 [2025-01-11 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227640', 'tblTempUsageDetail_20' ) start [2025-01-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227640', 'tblTempUsageDetail_20' ) end [2025-01-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227640', 'tblTempVendorCDR_20' ) start [2025-01-11 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227640', 'tblTempVendorCDR_20' ) end [2025-01-11 23:32:18] Production.INFO: ProcessCDR(1,14227640,1,1,2) [2025-01-11 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227640', 'tblTempUsageDetail_20' ) start [2025-01-11 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227640', 'tblTempUsageDetail_20' ) end [2025-01-11 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:32:23] Production.INFO: ==6429== Releasing lock... [2025-01-11 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:32:23] Production.INFO: 35 MB #Memory Used# [2025-01-11 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:33:04 [end_date_ymd] => 2025-01-11 23:33:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:33:04' and `end` < '2025-01-11 23: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-11 23:33:20] Production.INFO: count ==978 [2025-01-11 23:33:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:33:04 - End Time 2025-01-11 23:33:04 [2025-01-11 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227645', 'tblTempUsageDetail_20' ) start [2025-01-11 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227645', 'tblTempUsageDetail_20' ) end [2025-01-11 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227645', 'tblTempVendorCDR_20' ) start [2025-01-11 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227645', 'tblTempVendorCDR_20' ) end [2025-01-11 23:33:20] Production.INFO: ProcessCDR(1,14227645,1,1,2) [2025-01-11 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227645', 'tblTempUsageDetail_20' ) start [2025-01-11 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227645', 'tblTempUsageDetail_20' ) end [2025-01-11 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:33:23] Production.INFO: ==6512== Releasing lock... [2025-01-11 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:33:23] Production.INFO: 35 MB #Memory Used# [2025-01-11 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:34:05 [end_date_ymd] => 2025-01-11 23:34:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:34:05' and `end` < '2025-01-11 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-11 23:34:18] Production.INFO: count ==974 [2025-01-11 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:34:05 - End Time 2025-01-11 23:34:05 [2025-01-11 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227650', 'tblTempUsageDetail_20' ) start [2025-01-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227650', 'tblTempUsageDetail_20' ) end [2025-01-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227650', 'tblTempVendorCDR_20' ) start [2025-01-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227650', 'tblTempVendorCDR_20' ) end [2025-01-11 23:34:18] Production.INFO: ProcessCDR(1,14227650,1,1,2) [2025-01-11 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227650', 'tblTempUsageDetail_20' ) start [2025-01-11 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227650', 'tblTempUsageDetail_20' ) end [2025-01-11 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:34:21] Production.INFO: ==6595== Releasing lock... [2025-01-11 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:35:04 [end_date_ymd] => 2025-01-11 23:35:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:35:04' and `end` < '2025-01-11 23: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-11 23:35:19] Production.INFO: count ==966 [2025-01-11 23:35:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:35:04 - End Time 2025-01-11 23:35:04 [2025-01-11 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227655', 'tblTempUsageDetail_20' ) start [2025-01-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227655', 'tblTempUsageDetail_20' ) end [2025-01-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227655', 'tblTempVendorCDR_20' ) start [2025-01-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227655', 'tblTempVendorCDR_20' ) end [2025-01-11 23:35:19] Production.INFO: ProcessCDR(1,14227655,1,1,2) [2025-01-11 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227655', 'tblTempUsageDetail_20' ) start [2025-01-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227655', 'tblTempUsageDetail_20' ) end [2025-01-11 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:35:22] Production.INFO: ==6678== Releasing lock... [2025-01-11 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:36:05 [end_date_ymd] => 2025-01-11 23:36:05 [RateCDR] => 1 ) [2025-01-11 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:36:05' and `end` < '2025-01-11 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:36:21] Production.INFO: count ==960 [2025-01-11 23:36:21] Production.ERROR: pbx CDR StartTime 2025-01-11 20:36:05 - End Time 2025-01-11 23:36:05 [2025-01-11 23:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227660', 'tblTempUsageDetail_20' ) start [2025-01-11 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227660', 'tblTempUsageDetail_20' ) end [2025-01-11 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227660', 'tblTempVendorCDR_20' ) start [2025-01-11 23:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227660', 'tblTempVendorCDR_20' ) end [2025-01-11 23:36:21] Production.INFO: ProcessCDR(1,14227660,1,1,2) [2025-01-11 23:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227660', 'tblTempUsageDetail_20' ) start [2025-01-11 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227660', 'tblTempUsageDetail_20' ) end [2025-01-11 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:36:24] Production.INFO: ==6760== Releasing lock... [2025-01-11 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:36:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:37:05 [end_date_ymd] => 2025-01-11 23:37:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:37:05' and `end` < '2025-01-11 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-11 23:37:19] Production.INFO: count ==958 [2025-01-11 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:37:05 - End Time 2025-01-11 23:37:05 [2025-01-11 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227665', 'tblTempUsageDetail_20' ) start [2025-01-11 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227665', 'tblTempUsageDetail_20' ) end [2025-01-11 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227665', 'tblTempVendorCDR_20' ) start [2025-01-11 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227665', 'tblTempVendorCDR_20' ) end [2025-01-11 23:37:19] Production.INFO: ProcessCDR(1,14227665,1,1,2) [2025-01-11 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227665', 'tblTempUsageDetail_20' ) start [2025-01-11 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227665', 'tblTempUsageDetail_20' ) end [2025-01-11 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:37:23] Production.INFO: ==6842== Releasing lock... [2025-01-11 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:38:04 [end_date_ymd] => 2025-01-11 23:38:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:38:04' and `end` < '2025-01-11 23: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-11 23:38:20] Production.INFO: count ==958 [2025-01-11 23:38:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:38:04 - End Time 2025-01-11 23:38:04 [2025-01-11 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227670', 'tblTempUsageDetail_20' ) start [2025-01-11 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227670', 'tblTempUsageDetail_20' ) end [2025-01-11 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227670', 'tblTempVendorCDR_20' ) start [2025-01-11 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227670', 'tblTempVendorCDR_20' ) end [2025-01-11 23:38:20] Production.INFO: ProcessCDR(1,14227670,1,1,2) [2025-01-11 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227670', 'tblTempUsageDetail_20' ) start [2025-01-11 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227670', 'tblTempUsageDetail_20' ) end [2025-01-11 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:38:23] Production.INFO: ==6931== Releasing lock... [2025-01-11 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:38:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:39:05 [end_date_ymd] => 2025-01-11 23:39:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:39:05' and `end` < '2025-01-11 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-11 23:39:19] Production.INFO: count ==958 [2025-01-11 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:39:05 - End Time 2025-01-11 23:39:05 [2025-01-11 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227675', 'tblTempUsageDetail_20' ) start [2025-01-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227675', 'tblTempUsageDetail_20' ) end [2025-01-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227675', 'tblTempVendorCDR_20' ) start [2025-01-11 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227675', 'tblTempVendorCDR_20' ) end [2025-01-11 23:39:19] Production.INFO: ProcessCDR(1,14227675,1,1,2) [2025-01-11 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227675', 'tblTempUsageDetail_20' ) start [2025-01-11 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227675', 'tblTempUsageDetail_20' ) end [2025-01-11 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:39:24] Production.INFO: ==7013== Releasing lock... [2025-01-11 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:39:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:40:05 [end_date_ymd] => 2025-01-11 23:40:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:40:05' and `end` < '2025-01-11 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-11 23:40:20] Production.INFO: count ==962 [2025-01-11 23:40:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:40:05 - End Time 2025-01-11 23:40:05 [2025-01-11 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227681', 'tblTempUsageDetail_20' ) start [2025-01-11 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227681', 'tblTempUsageDetail_20' ) end [2025-01-11 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227681', 'tblTempVendorCDR_20' ) start [2025-01-11 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227681', 'tblTempVendorCDR_20' ) end [2025-01-11 23:40:20] Production.INFO: ProcessCDR(1,14227681,1,1,2) [2025-01-11 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227681', 'tblTempUsageDetail_20' ) start [2025-01-11 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227681', 'tblTempUsageDetail_20' ) end [2025-01-11 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:40:23] Production.INFO: ==7137== Releasing lock... [2025-01-11 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-11 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:41:04 [end_date_ymd] => 2025-01-11 23:41:04 [RateCDR] => 1 ) [2025-01-11 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:41:04' and `end` < '2025-01-11 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:41:18] Production.INFO: count ==909 [2025-01-11 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:41:04 - End Time 2025-01-11 23:41:04 [2025-01-11 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227686', 'tblTempUsageDetail_20' ) start [2025-01-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227686', 'tblTempUsageDetail_20' ) end [2025-01-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227686', 'tblTempVendorCDR_20' ) start [2025-01-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227686', 'tblTempVendorCDR_20' ) end [2025-01-11 23:41:18] Production.INFO: ProcessCDR(1,14227686,1,1,2) [2025-01-11 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227686', 'tblTempUsageDetail_20' ) start [2025-01-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227686', 'tblTempUsageDetail_20' ) end [2025-01-11 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:41:21] Production.INFO: ==7225== Releasing lock... [2025-01-11 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:41:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:42:05 [end_date_ymd] => 2025-01-11 23:42:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:42:05' and `end` < '2025-01-11 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-11 23:42:18] Production.INFO: count ==909 [2025-01-11 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:42:05 - End Time 2025-01-11 23:42:05 [2025-01-11 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227691', 'tblTempUsageDetail_20' ) start [2025-01-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227691', 'tblTempUsageDetail_20' ) end [2025-01-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227691', 'tblTempVendorCDR_20' ) start [2025-01-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227691', 'tblTempVendorCDR_20' ) end [2025-01-11 23:42:18] Production.INFO: ProcessCDR(1,14227691,1,1,2) [2025-01-11 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227691', 'tblTempUsageDetail_20' ) start [2025-01-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227691', 'tblTempUsageDetail_20' ) end [2025-01-11 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:42:21] Production.INFO: ==7313== Releasing lock... [2025-01-11 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:42:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:43:04 [end_date_ymd] => 2025-01-11 23:43:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:43:04' and `end` < '2025-01-11 23: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-11 23:43:17] Production.INFO: count ==909 [2025-01-11 23:43:17] Production.ERROR: pbx CDR StartTime 2025-01-11 20:43:04 - End Time 2025-01-11 23:43:04 [2025-01-11 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227696', 'tblTempUsageDetail_20' ) start [2025-01-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227696', 'tblTempUsageDetail_20' ) end [2025-01-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227696', 'tblTempVendorCDR_20' ) start [2025-01-11 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227696', 'tblTempVendorCDR_20' ) end [2025-01-11 23:43:17] Production.INFO: ProcessCDR(1,14227696,1,1,2) [2025-01-11 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227696', 'tblTempUsageDetail_20' ) start [2025-01-11 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227696', 'tblTempUsageDetail_20' ) end [2025-01-11 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:43:20] Production.INFO: ==7394== Releasing lock... [2025-01-11 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:43:20] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:44:04 [end_date_ymd] => 2025-01-11 23:44:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:44:04' and `end` < '2025-01-11 23: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-11 23:44:18] Production.INFO: count ==908 [2025-01-11 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:44:04 - End Time 2025-01-11 23:44:04 [2025-01-11 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227701', 'tblTempUsageDetail_20' ) start [2025-01-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227701', 'tblTempUsageDetail_20' ) end [2025-01-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227701', 'tblTempVendorCDR_20' ) start [2025-01-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227701', 'tblTempVendorCDR_20' ) end [2025-01-11 23:44:18] Production.INFO: ProcessCDR(1,14227701,1,1,2) [2025-01-11 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227701', 'tblTempUsageDetail_20' ) start [2025-01-11 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227701', 'tblTempUsageDetail_20' ) end [2025-01-11 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:44:21] Production.INFO: ==7480== Releasing lock... [2025-01-11 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:45:04 [end_date_ymd] => 2025-01-11 23:45:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:45:04' and `end` < '2025-01-11 23: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-11 23:45:17] Production.INFO: count ==908 [2025-01-11 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-11 20:45:04 - End Time 2025-01-11 23:45:04 [2025-01-11 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227706', 'tblTempUsageDetail_20' ) start [2025-01-11 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227706', 'tblTempUsageDetail_20' ) end [2025-01-11 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227706', 'tblTempVendorCDR_20' ) start [2025-01-11 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227706', 'tblTempVendorCDR_20' ) end [2025-01-11 23:45:17] Production.INFO: ProcessCDR(1,14227706,1,1,2) [2025-01-11 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227706', 'tblTempUsageDetail_20' ) start [2025-01-11 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227706', 'tblTempUsageDetail_20' ) end [2025-01-11 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:45:20] Production.INFO: ==7572== Releasing lock... [2025-01-11 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:45:20] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:46:05 [end_date_ymd] => 2025-01-11 23:46:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:46:05' and `end` < '2025-01-11 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-11 23:46:20] Production.INFO: count ==905 [2025-01-11 23:46:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:46:05 - End Time 2025-01-11 23:46:05 [2025-01-11 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227711', 'tblTempUsageDetail_20' ) start [2025-01-11 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227711', 'tblTempUsageDetail_20' ) end [2025-01-11 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227711', 'tblTempVendorCDR_20' ) start [2025-01-11 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227711', 'tblTempVendorCDR_20' ) end [2025-01-11 23:46:20] Production.INFO: ProcessCDR(1,14227711,1,1,2) [2025-01-11 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227711', 'tblTempUsageDetail_20' ) start [2025-01-11 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227711', 'tblTempUsageDetail_20' ) end [2025-01-11 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:46:23] Production.INFO: ==7655== Releasing lock... [2025-01-11 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:46:23] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:47:05 [end_date_ymd] => 2025-01-11 23:47:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:47:05' and `end` < '2025-01-11 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-11 23:47:18] Production.INFO: count ==899 [2025-01-11 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:47:05 - End Time 2025-01-11 23:47:05 [2025-01-11 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227716', 'tblTempUsageDetail_20' ) start [2025-01-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227716', 'tblTempUsageDetail_20' ) end [2025-01-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227716', 'tblTempVendorCDR_20' ) start [2025-01-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227716', 'tblTempVendorCDR_20' ) end [2025-01-11 23:47:18] Production.INFO: ProcessCDR(1,14227716,1,1,2) [2025-01-11 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227716', 'tblTempUsageDetail_20' ) start [2025-01-11 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227716', 'tblTempUsageDetail_20' ) end [2025-01-11 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:47:21] Production.INFO: ==7739== Releasing lock... [2025-01-11 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:47:21] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:48:05 [end_date_ymd] => 2025-01-11 23:48:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:48:05' and `end` < '2025-01-11 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-11 23:48:18] Production.INFO: count ==899 [2025-01-11 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:48:05 - End Time 2025-01-11 23:48:05 [2025-01-11 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227721', 'tblTempUsageDetail_20' ) start [2025-01-11 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227721', 'tblTempUsageDetail_20' ) end [2025-01-11 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227721', 'tblTempVendorCDR_20' ) start [2025-01-11 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227721', 'tblTempVendorCDR_20' ) end [2025-01-11 23:48:18] Production.INFO: ProcessCDR(1,14227721,1,1,2) [2025-01-11 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227721', 'tblTempUsageDetail_20' ) start [2025-01-11 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227721', 'tblTempUsageDetail_20' ) end [2025-01-11 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:48:23] Production.INFO: ==7821== Releasing lock... [2025-01-11 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:48:23] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:49:05 [end_date_ymd] => 2025-01-11 23:49:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:49:05' and `end` < '2025-01-11 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-11 23:49:18] Production.INFO: count ==900 [2025-01-11 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:49:05 - End Time 2025-01-11 23:49:05 [2025-01-11 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227726', 'tblTempUsageDetail_20' ) start [2025-01-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227726', 'tblTempUsageDetail_20' ) end [2025-01-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227726', 'tblTempVendorCDR_20' ) start [2025-01-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227726', 'tblTempVendorCDR_20' ) end [2025-01-11 23:49:18] Production.INFO: ProcessCDR(1,14227726,1,1,2) [2025-01-11 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227726', 'tblTempUsageDetail_20' ) start [2025-01-11 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227726', 'tblTempUsageDetail_20' ) end [2025-01-11 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:49:23] Production.INFO: ==7907== Releasing lock... [2025-01-11 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:49:23] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:50:05 [end_date_ymd] => 2025-01-11 23:50:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:50:05' and `end` < '2025-01-11 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-11 23:50:18] Production.INFO: count ==904 [2025-01-11 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:50:05 - End Time 2025-01-11 23:50:05 [2025-01-11 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227732', 'tblTempUsageDetail_20' ) start [2025-01-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227732', 'tblTempUsageDetail_20' ) end [2025-01-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227732', 'tblTempVendorCDR_20' ) start [2025-01-11 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227732', 'tblTempVendorCDR_20' ) end [2025-01-11 23:50:18] Production.INFO: ProcessCDR(1,14227732,1,1,2) [2025-01-11 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227732', 'tblTempUsageDetail_20' ) start [2025-01-11 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227732', 'tblTempUsageDetail_20' ) end [2025-01-11 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:50:23] Production.INFO: ==7991== Releasing lock... [2025-01-11 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:50:23] Production.INFO: 34 MB #Memory Used# [2025-01-11 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:51:05 [end_date_ymd] => 2025-01-11 23:51:05 [RateCDR] => 1 ) [2025-01-11 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-11 20:51:05' and `end` < '2025-01-11 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-11 23:51:20] Production.INFO: count ==874 [2025-01-11 23:51:20] Production.ERROR: pbx CDR StartTime 2025-01-11 20:51:05 - End Time 2025-01-11 23:51:05 [2025-01-11 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227737', 'tblTempUsageDetail_20' ) start [2025-01-11 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227737', 'tblTempUsageDetail_20' ) end [2025-01-11 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227737', 'tblTempVendorCDR_20' ) start [2025-01-11 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227737', 'tblTempVendorCDR_20' ) end [2025-01-11 23:51:20] Production.INFO: ProcessCDR(1,14227737,1,1,2) [2025-01-11 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227737', 'tblTempUsageDetail_20' ) start [2025-01-11 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227737', 'tblTempUsageDetail_20' ) end [2025-01-11 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:51:23] Production.INFO: ==8079== Releasing lock... [2025-01-11 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:51:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:52:06 [end_date_ymd] => 2025-01-11 23:52:06 [RateCDR] => 1 ) [2025-01-11 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:52:06' and `end` < '2025-01-11 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:52:21] Production.INFO: count ==874 [2025-01-11 23:52:21] Production.ERROR: pbx CDR StartTime 2025-01-11 20:52:06 - End Time 2025-01-11 23:52:06 [2025-01-11 23:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227742', 'tblTempUsageDetail_20' ) start [2025-01-11 23:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227742', 'tblTempUsageDetail_20' ) end [2025-01-11 23:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227742', 'tblTempVendorCDR_20' ) start [2025-01-11 23:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227742', 'tblTempVendorCDR_20' ) end [2025-01-11 23:52:21] Production.INFO: ProcessCDR(1,14227742,1,1,2) [2025-01-11 23:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227742', 'tblTempUsageDetail_20' ) start [2025-01-11 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227742', 'tblTempUsageDetail_20' ) end [2025-01-11 23:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:52:24] Production.INFO: ==8177== Releasing lock... [2025-01-11 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:52:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:53:05 [end_date_ymd] => 2025-01-11 23:53:05 [RateCDR] => 1 ) [2025-01-11 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:53:05' and `end` < '2025-01-11 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:53:18] Production.INFO: count ==876 [2025-01-11 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:53:05 - End Time 2025-01-11 23:53:05 [2025-01-11 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227747', 'tblTempUsageDetail_20' ) start [2025-01-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227747', 'tblTempUsageDetail_20' ) end [2025-01-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227747', 'tblTempVendorCDR_20' ) start [2025-01-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227747', 'tblTempVendorCDR_20' ) end [2025-01-11 23:53:18] Production.INFO: ProcessCDR(1,14227747,1,1,2) [2025-01-11 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227747', 'tblTempUsageDetail_20' ) start [2025-01-11 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227747', 'tblTempUsageDetail_20' ) end [2025-01-11 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:53:23] Production.INFO: ==8260== Releasing lock... [2025-01-11 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:54:04 [end_date_ymd] => 2025-01-11 23:54:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:54:04' and `end` < '2025-01-11 23: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-11 23:54:18] Production.INFO: count ==875 [2025-01-11 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:54:04 - End Time 2025-01-11 23:54:04 [2025-01-11 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227752', 'tblTempUsageDetail_20' ) start [2025-01-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227752', 'tblTempUsageDetail_20' ) end [2025-01-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227752', 'tblTempVendorCDR_20' ) start [2025-01-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227752', 'tblTempVendorCDR_20' ) end [2025-01-11 23:54:18] Production.INFO: ProcessCDR(1,14227752,1,1,2) [2025-01-11 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227752', 'tblTempUsageDetail_20' ) start [2025-01-11 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227752', 'tblTempUsageDetail_20' ) end [2025-01-11 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:54:22] Production.INFO: ==8345== Releasing lock... [2025-01-11 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:55:04 [end_date_ymd] => 2025-01-11 23:55:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:55:04' and `end` < '2025-01-11 23: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-11 23:55:19] Production.INFO: count ==875 [2025-01-11 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:55:04 - End Time 2025-01-11 23:55:04 [2025-01-11 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227757', 'tblTempUsageDetail_20' ) start [2025-01-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227757', 'tblTempUsageDetail_20' ) end [2025-01-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227757', 'tblTempVendorCDR_20' ) start [2025-01-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227757', 'tblTempVendorCDR_20' ) end [2025-01-11 23:55:19] Production.INFO: ProcessCDR(1,14227757,1,1,2) [2025-01-11 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227757', 'tblTempUsageDetail_20' ) start [2025-01-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227757', 'tblTempUsageDetail_20' ) end [2025-01-11 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:55:22] Production.INFO: ==8429== Releasing lock... [2025-01-11 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:56:04 [end_date_ymd] => 2025-01-11 23:56:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:56:04' and `end` < '2025-01-11 23: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-11 23:56:18] Production.INFO: count ==875 [2025-01-11 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-11 20:56:04 - End Time 2025-01-11 23:56:04 [2025-01-11 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227762', 'tblTempUsageDetail_20' ) start [2025-01-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227762', 'tblTempUsageDetail_20' ) end [2025-01-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227762', 'tblTempVendorCDR_20' ) start [2025-01-11 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227762', 'tblTempVendorCDR_20' ) end [2025-01-11 23:56:18] Production.INFO: ProcessCDR(1,14227762,1,1,2) [2025-01-11 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227762', 'tblTempUsageDetail_20' ) start [2025-01-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227762', 'tblTempUsageDetail_20' ) end [2025-01-11 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:56:22] Production.INFO: ==8552== Releasing lock... [2025-01-11 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:57:04 [end_date_ymd] => 2025-01-11 23:57:04 [RateCDR] => 1 ) [2025-01-11 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:57:04' and `end` < '2025-01-11 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:57:19] Production.INFO: count ==871 [2025-01-11 23:57:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:57:04 - End Time 2025-01-11 23:57:04 [2025-01-11 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227767', 'tblTempUsageDetail_20' ) start [2025-01-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227767', 'tblTempUsageDetail_20' ) end [2025-01-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227767', 'tblTempVendorCDR_20' ) start [2025-01-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227767', 'tblTempVendorCDR_20' ) end [2025-01-11 23:57:19] Production.INFO: ProcessCDR(1,14227767,1,1,2) [2025-01-11 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227767', 'tblTempUsageDetail_20' ) start [2025-01-11 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227767', 'tblTempUsageDetail_20' ) end [2025-01-11 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:57:22] Production.INFO: ==8634== Releasing lock... [2025-01-11 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:58:04 [end_date_ymd] => 2025-01-11 23:58:04 [RateCDR] => 1 ) [2025-01-11 23: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-11 20:58:04' and `end` < '2025-01-11 23: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-11 23:58:19] Production.INFO: count ==871 [2025-01-11 23:58:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:58:04 - End Time 2025-01-11 23:58:04 [2025-01-11 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227772', 'tblTempUsageDetail_20' ) start [2025-01-11 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227772', 'tblTempUsageDetail_20' ) end [2025-01-11 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227772', 'tblTempVendorCDR_20' ) start [2025-01-11 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227772', 'tblTempVendorCDR_20' ) end [2025-01-11 23:58:19] Production.INFO: ProcessCDR(1,14227772,1,1,2) [2025-01-11 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227772', 'tblTempUsageDetail_20' ) start [2025-01-11 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227772', 'tblTempUsageDetail_20' ) end [2025-01-11 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:58:22] Production.INFO: ==8717== Releasing lock... [2025-01-11 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-11 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-11 20:59:05 [end_date_ymd] => 2025-01-11 23:59:05 [RateCDR] => 1 ) [2025-01-11 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-11 20:59:05' and `end` < '2025-01-11 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-11 23:59:19] Production.INFO: count ==868 [2025-01-11 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-11 20:59:05 - End Time 2025-01-11 23:59:05 [2025-01-11 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227777', 'tblTempUsageDetail_20' ) start [2025-01-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14227777', 'tblTempUsageDetail_20' ) end [2025-01-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227777', 'tblTempVendorCDR_20' ) start [2025-01-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14227777', 'tblTempVendorCDR_20' ) end [2025-01-11 23:59:19] Production.INFO: ProcessCDR(1,14227777,1,1,2) [2025-01-11 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14227777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14227777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-11 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14227777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14227777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-11 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227777', 'tblTempUsageDetail_20' ) start [2025-01-11 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14227777', 'tblTempUsageDetail_20' ) end [2025-01-11 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-11 23:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-11 23:59:24] Production.INFO: ==8800== Releasing lock... [2025-01-11 23:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-11 23:59:24] Production.INFO: 33.75 MB #Memory Used#